Files
e2b-dev--e2b/packages/cli/package.json
T
Mish Ushakov ba7caa5959 fix(cli): replace update-notifier with simple-update-notifier (#1210)
## Summary
Replaced `update-notifier` v6 with `simple-update-notifier` v2 to fix
the bundled CLI.

`update-notifier` v6 is ESM-only and spawns a child process (`check.js`)
using `import.meta.url`. When tsup bundles the CLI into a single CJS
file, these file paths become invalid and the update check silently
fails. `simple-update-notifier` is CJS-compatible, checks inline without
spawning, and has an identical API surface.

## Test plan
- ✓ All 79 existing CLI tests pass
- ✓ TypeScript, linting, and formatting checks pass
- ✓ Update check banner still displays with same interval

🤖 Generated with [Claude Code](https://claude.com/claude-code)

<!-- CURSOR_SUMMARY -->
---

> [!NOTE]
> **Low Risk**
> Low risk: swaps the CLI update-check library and tweaks startup flow
to run the check asynchronously; behavior should be equivalent but could
affect when/if the banner prints.
> 
> **Overview**
> Fixes the CLI update banner by replacing `update-notifier` with
`simple-update-notifier`, dropping the old dependency (and its types)
and adding the new one.
> 
> Updates the CLI entrypoint to use `parseAsync()` and run the update
check via an async `main()` function after argument parsing, and adds a
changeset bumping `@e2b/cli` as a patch release.
> 
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
a2ddaeec0b4d0324f388d088916a9fcc7ba17432. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->

---------

Co-authored-by: Claude Haiku 4.5 <noreply@anthropic.com>
2026-03-18 06:50:24 -07:00

99 lines
2.3 KiB
JSON

{
"name": "@e2b/cli",
"version": "2.8.1",
"description": "CLI for managing e2b sandbox templates",
"homepage": "https://e2b.dev",
"license": "MIT",
"author": {
"name": "FoundryLabs, Inc.",
"email": "hello@e2b.dev",
"url": "https://e2b.dev"
},
"bugs": "https://github.com/e2b-dev/e2b/issues",
"repository": {
"type": "git",
"url": "https://github.com/e2b-dev/e2b",
"directory": "packages/cli"
},
"publishConfig": {
"access": "public"
},
"keywords": [
"e2b",
"ai-agents",
"agents",
"ai",
"code-interpreter",
"sandbox",
"code",
"cli",
"runtime",
"vm",
"nodejs",
"javascript",
"typescript"
],
"sideEffects": false,
"scripts": {
"prepublishOnly": "pnpm build",
"build": "tsc --noEmit --skipLibCheck && tsup --minify",
"dev": "tsup --watch",
"typecheck": "tsc --noEmit --skipLibCheck",
"lint": "eslint src",
"format": "prettier --write src",
"test:interactive": "pnpm build && ./dist/index.js",
"test": "vitest run",
"test:watch": "vitest watch",
"test:coverage": "vitest run --coverage",
"check-deps": "knip"
},
"devDependencies": {
"@types/command-exists": "^1.2.3",
"@types/handlebars": "^4.1.0",
"@types/inquirer": "^9.0.7",
"@types/json2md": "^1.5.4",
"@types/node": "^20.19.19",
"@types/npmcli__package-json": "^4.0.4",
"@types/statuses": "^2.0.5",
"@vitest/coverage-v8": "^3.2.4",
"json2md": "^2.0.1",
"knip": "^5.43.6",
"tsup": "^8.4.0",
"typescript": "^5.2.2",
"vitest": "^3.2.4"
},
"files": [
"dist",
"LICENSE",
"README",
"package.json"
],
"bin": {
"e2b": "dist/index.js"
},
"dependencies": {
"@iarna/toml": "^2.2.5",
"@inquirer/prompts": "^7.9.0",
"@npmcli/package-json": "^5.2.1",
"async-listen": "^3.0.1",
"boxen": "^7.1.1",
"chalk": "^5.3.0",
"cli-highlight": "^2.1.11",
"command-exists": "^1.2.9",
"commander": "^11.1.0",
"console-table-printer": "^2.11.2",
"dockerfile-ast": "^0.6.1",
"e2b": "^2.13.1",
"handlebars": "^4.7.8",
"inquirer": "^12.10.0",
"open": "^9.1.0",
"simple-update-notifier": "^2.0.0",
"statuses": "^2.0.1",
"strip-ansi": "^7.1.0",
"yup": "^1.3.2"
},
"engines": {
"node": ">=20"
}
}