-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbin.cjs
More file actions
14 lines (14 loc) · 759 Bytes
/
Copy pathbin.cjs
File metadata and controls
14 lines (14 loc) · 759 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/usr/bin/env node
// The `ship` binary, forwarded.
//
// Loaded IN-PROCESS, never spawned. `@shipstatic/ship`'s command tree
// deliberately avoids `process.exit` so buffered stdout survives a pipe; a
// spawning trampoline would reintroduce exactly the truncation class that
// design exists to prevent, and would have to re-plumb exit codes and signals
// besides. Requiring it means this process IS the CLI.
//
// `@shipstatic/ship/cli` is a declared subpath (added in ship 1.1.0). Before
// that it did not exist, and reaching `dist/cli.cjs` meant path-joining off
// the resolved main entry — past the exports map whose whole job is to say
// what is reachable. Do not reintroduce that; raise the dependency instead.
require('@shipstatic/ship/cli');