@exodus/stasis 1.0.0-beta.0 → 1.0.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/bin/stasis.js +4 -2
  2. package/package.json +3 -3
package/bin/stasis.js CHANGED
@@ -6,6 +6,7 @@ import { once } from 'node:events'
6
6
  import { fileURLToPath } from 'node:url'
7
7
  import { basename, dirname, resolve } from 'node:path'
8
8
  import { existsSync, realpathSync } from 'node:fs'
9
+ import { constants as osConstants } from 'node:os'
9
10
  import assert from 'node:assert/strict'
10
11
  import pkg from '../package.json' with { type: 'json' }
11
12
 
@@ -167,8 +168,9 @@ if (command === '-v' || command === '--version') {
167
168
  const loaderEntry = values.mock ? '../src/loader-mock.js' : '@exodus/stasis-core/loader'
168
169
  nodeArgs.push('--import', import.meta.resolve(loaderEntry))
169
170
  const child = spawn(process.execPath, [...nodeArgs, ...argv], { stdio: 'inherit' })
170
- const [code] = await once(child, 'close')
171
- process.exitCode = code
171
+ const [code, signal] = await once(child, 'close')
172
+ // code is null when the child died from a signal; report 128+signo (shell convention) instead of the implicit 0
173
+ process.exitCode = code ?? 128 + (osConstants.signals[signal] ?? 0)
172
174
  } else if (command === 'bundle') {
173
175
  const flags = []
174
176
  const valueFlags = new Set(['--mapping', '--output', '--scope', '--lockfile', '--conditions', '--mainFields', '--platforms', '-o'])
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@exodus/stasis",
3
- "version": "1.0.0-beta.0",
3
+ "version": "1.0.0-beta.1",
4
4
  "description": "File-level source bundles and lockfiles",
5
5
  "type": "module",
6
6
  "exports": {
@@ -68,8 +68,8 @@
68
68
  },
69
69
  "homepage": "https://github.com/ExodusOSS/stasis#readme",
70
70
  "dependencies": {
71
- "@exodus/stasis-core": "1.0.0-beta.0",
72
- "@exodus/stasis-plugins": "1.0.0-beta.0",
71
+ "@exodus/stasis-core": "1.0.0-beta.1",
72
+ "@exodus/stasis-plugins": "1.0.0-beta.1",
73
73
  "oxc-parser": "^0.94.0"
74
74
  },
75
75
  "peerDependencies": {