Files
e2b-dev--e2b/package.json
T
Mish Ushakov 26ee42c10a chore: upgrade pnpm to 10.34.5 and delay fresh releases by 3 days (#1644)
Bumps pnpm 9.15.5 → 10.34.5 in all three places it is pinned
(`.tool-versions`, the root `packageManager` field, and
`codegen.Dockerfile` — pnpm 10 self-manages from `packageManager`, so a
mismatched Docker pin would make it re-download itself on every `make
generate`) and sets `minimumReleaseAge: 4320` in `pnpm-workspace.yaml`,
so a freshly published version is not resolved until it is 3 days old;
CI is unaffected because every workflow installs with
`--frozen-lockfile` and nothing installs a just-published package.

Two pnpm 10 breaking changes needed handling: dependency lifecycle
scripts no longer run by default, so `esbuild` and `workerd` are
allowlisted via `pnpm.onlyBuiltDependencies` for binary resolution while
`bufferutil`, `msw`, and `utf-8-validate` are explicitly declined via
`pnpm.ignoredBuiltDependencies` (which also keeps the "Ignored build
scripts" warning off every install); and pnpm 10 stopped public-hoisting
`*prettier*`/`*eslint*`, which broke `pnpm run format` in both JS
packages with `prettier: command not found` — prettier was never
declared anywhere and only resolved because pnpm 9 hoisted it out of
`json-schema-to-typescript`, so it is now a root devDependency alongside
`oxlint`, resolved to the 3.6.2 already in the lockfile for zero
formatting churn.

`engines.pnpm` moves to `>=10.16.0 <11` so, with `engine-strict`, pnpm 9
fails with an actionable "install the required pnpm version globally"
message instead of silently installing.

Verified with a clean `node_modules` + `--frozen-lockfile` install and
green `lint`, `typecheck`, `format`, and both JS builds, plus a
from-scratch re-resolve of the whole tree to confirm
`minimumReleaseAgeStrict` (which silently defaults to `true` once the
age is set explicitly) does not trap any current range; enforcement was
checked empirically — with the setting, `wrangler@^4` resolves to
4.118.0 (6d old) rather than 4.119.0 (1d old). The lockfile diff is
limited to the prettier entry plus pnpm 10's importer-section reordering
and new `libc:` fields, with no dependency version drift.

No changeset: nothing in a published package changed. A follow-up to
pnpm 11 is deliberately out of scope — it removes both build-script
fields in favor of `allowBuilds`, restricts `.npmrc` to auth/registry
settings, and replaces the npm-delegating `pnpm publish`, which the
release flow depends on.

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

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-06 16:29:18 +02:00

66 lines
2.2 KiB
JSON

{
"name": "e2b",
"private": true,
"scripts": {
"version": "pnpm changeset version && pnpm run -r postVersion",
"publish": "pnpm changeset publish && pnpm run -r postPublish",
"test": "pnpm test --recursive --if-present",
"rm-node-modules": "find . -name 'node_modules' -type d -prune -exec rm -rf '{}' +",
"pnpm-install-hack": "cd packages/js-sdk && sed -i '' 's/\"version\": \".*\"/\"version\": \"9.9.9\"/g' package.json && cd ../.. && pnpm i && git checkout -- packages/js-sdk/package.json",
"fetch:api-spec": "./scripts/fetch-spec.sh api-spec",
"fetch:envd-spec": "./scripts/fetch-spec.sh envd-spec",
"fetch:volume-spec": "./scripts/fetch-spec.sh volume-api-spec",
"lint": "pnpm --if-present --recursive run lint",
"typecheck": "pnpm --if-present --recursive run typecheck",
"format": "pnpm --if-present --recursive run format",
"changeset": "pnpm dlx @changesets/cli"
},
"packageManager": "pnpm@10.34.5",
"dependencies": {
"@changesets/read": "^0.6.2"
},
"devDependencies": {
"changeset": "^0.2.6",
"oxlint": "^1.72.0",
"prettier": "^3.6.2"
},
"engines": {
"pnpm": ">=10.16.0 <11"
},
"pnpm": {
"onlyBuiltDependencies": [
"esbuild",
"workerd"
],
"ignoredBuiltDependencies": [
"bufferutil",
"msw",
"utf-8-validate"
],
"overrides": {
"rollup@>=4": ">=4.59.0",
"postcss@<8.5.10": "^8.5.10",
"vite@>=6.0.0 <6.4.3": "^6.4.3",
"lodash@<4.18.0": "^4.18.0",
"brace-expansion@<1.1.13": "^1.1.13",
"brace-expansion@>=2.0.0 <2.1.2": "^2.1.2",
"brace-expansion@>=5.0.0 <5.0.6": "^5.0.6",
"underscore@<1.13.8": "^1.13.8",
"js-yaml@<3.15.0": "^3.15.0",
"js-yaml@>=4.0.0 <4.2.0": "^4.2.0",
"@babel/core@<7.29.6": "^7.29.6",
"picomatch@<2.3.2": "^2.3.2",
"picomatch@>=4.0.0 <4.0.4": "^4.0.4",
"smol-toml@<1.6.1": "^1.6.1",
"minimatch@<3.1.3": "^3.1.3",
"minimatch@>=5.0.0 <5.1.8": "^5.1.8",
"minimatch@>=9.0.0 <9.0.7": "^9.0.7",
"minimatch@>=10.0.0 <10.2.3": "^10.2.3",
"ws@>=8.0.0 <8.20.1": "^8.20.1",
"shell-quote@<1.9.0": "^1.9.0",
"sharp@<0.35.0": "^0.35.0",
"tar@<7.5.19": "^7.5.19"
}
}
}