Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions scripts/create-standalone-bundle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,14 @@ async function main(): Promise< void > {
// prod build, but `package:standalone` stamps `__IS_PACKAGED_FOR_STANDALONE__` so the
// curl-installed CLI identifies itself at runtime (update notifier + launch stats).
console.log( '==> Step 1/4: Building CLI package...' );
// install:bundle can run twice per CI job (the desktop make's forge hook runs
// it first). npm's --install-links re-resolves the changed data-liberation
// file: dep from the registry (E404) when reinstalling over that tree, so
// start from a clean node_modules, same as forge.config.ts does.
fs.rmSync( path.join( repoRoot, 'apps', 'cli', 'node_modules' ), {
recursive: true,
force: true,
} );
run( 'npm run cli:package:standalone' );

// Step 2: Assemble the bundle layout in a staging dir
Expand Down
Loading