Skip to content

Commit 511a228

Browse files
authored
fix(release): allow cli-entry.js in standalone dist allowlist (#5153)
The OOM-prevention work in #4914 added a dist/cli-entry.js bin wrapper (re-spawns node --expose-gc cli.js) via prepare-package.js, but did not register it in the standalone packager's strict dist allowlist. The release job then fails with: Error: Unexpected dist asset: .../dist/cli-entry.js Add cli-entry.js to DIST_ALLOWED_ENTRIES, same fix as #5049 did for fzfWorker.js.
1 parent d219cfd commit 511a228

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

scripts/create-standalone-package.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@ const DIST_REQUIRED_PATHS = [
4444
];
4545
const DIST_ALLOWED_ENTRIES = new Set([
4646
'cli.js',
47+
// bin wrapper emitted by prepare-package.js that re-spawns `node --expose-gc
48+
// cli.js`; ships in dist/ as the package `bin` entry (#4914).
49+
'cli-entry.js',
4750
// fzf fuzzy-search worker; esbuild emits it as a standalone entry that must
4851
// sit next to cli.js so `new URL('./fzfWorker.js', ...)` resolves at runtime.
4952
'fzfWorker.js',

0 commit comments

Comments
 (0)