Repository navigation
Commit 2c7369d
authored
feat(pacquet-cli): port the
Ports pnpm's `pack-app` command into pacquet. It packs a CommonJS entry
file into a standalone executable for one or more target platforms,
embedding a Node.js binary through the Node.js Single Executable
Applications API.
Reuses pacquet's node-version resolution, network client, detect-libc,
and `node@runtime:` installs. Two intentional divergences from pnpm,
both forced by pacquet being a Rust binary rather than a Node.js script:
the SEA builder is always downloaded (pnpm reuses its running
interpreter), and the runtime install spawns the pacquet binary
(mirroring pnpm's runPnpmCli).
Ports the upstream Jest validation suite (17 tests) covering the
fail-fast branches. The download / SEA-injection / signing paths need
network, Node.js, and subprocesses and are out of unit-test scope,
matching upstream coverage.
Ported from 9f3df6b9b4.pack-app command (#12669)1 parent 6312916 commit 2c7369d
8 files changed
Lines changed: 1566 additions & 8 deletions
File tree
- .changeset
- pacquet/crates/cli
- src
- cli_args
- pack_app
- pnpm11/releasing/commands
- src/pack-app
- test/pack-app
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
| 22 | + | |
21 | 23 | | |
22 | 24 | | |
23 | 25 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
| |||
67 | 68 | | |
68 | 69 | | |
69 | 70 | | |
| 71 | + | |
70 | 72 | | |
71 | 73 | | |
72 | 74 | | |
| |||
251 | 253 | | |
252 | 254 | | |
253 | 255 | | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
254 | 259 | | |
255 | 260 | | |
256 | 261 | | |
| |||
841 | 846 | | |
842 | 847 | | |
843 | 848 | | |
| 849 | + | |
| 850 | + | |
| 851 | + | |
| 852 | + | |
| 853 | + | |
| 854 | + | |
| 855 | + | |
| 856 | + | |
| 857 | + | |
| 858 | + | |
844 | 859 | | |
845 | 860 | | |
846 | 861 | | |
| |||
0 commit comments