fix: create per-architecture versions of the npm module

This commit is contained in:
Michael Bolin
2025-09-24 08:37:32 -07:00
parent 639a6fd2f3
commit 98df710750
3 changed files with 174 additions and 3 deletions

View File

@@ -8,4 +8,13 @@ To build the 0.2.x or later version of the npm module, which runs the Rust versi
./codex-cli/scripts/build_npm_package.py --release-version 0.6.0
```
Note this will create `./codex-cli/vendor/` as a side-effect.
To produce per-platform "slice" tarballs in addition to the fat package, supply the
`--slice-pack-dir` flag to write the outputs. For example:
```bash
./codex-cli/scripts/build_npm_package.py --release-version 0.6.0 --slice-pack-dir dist/npm
```
The command above writes the full tarball plus the per-platform archives named with the
VS Code-style identifiers (for example, `codex-npm-0.6.0-darwin-arm64.tgz`). Note this will
create `./codex-cli/vendor/` as a side-effect.