@agoric/xsnap 0.14.3-dev-3c781f6.0 → 0.14.3-dev-046eb05.0

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/package.json +6 -5
  2. package/src/build.js +23 -14
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agoric/xsnap",
3
- "version": "0.14.3-dev-3c781f6.0+3c781f6",
3
+ "version": "0.14.3-dev-046eb05.0+046eb05",
4
4
  "description": "Description forthcoming.",
5
5
  "author": "Agoric",
6
6
  "license": "Apache-2.0",
@@ -16,6 +16,7 @@
16
16
  "build:env": "if git status >/dev/null 2>&1; then node src/build.js --show-env > build.env; fi",
17
17
  "build:from-env": "{ cat build.env; echo node src/build.js; } | xargs env",
18
18
  "build": "yarn build:bin && yarn build:env",
19
+ "postinstall": "yarn build:from-env",
19
20
  "clean": "rm -rf xsnap-native/xsnap/build",
20
21
  "lint": "run-s --continue-on-error lint:*",
21
22
  "lint:js": "eslint 'src/**/*.js' 'test/**/*.js' api.js",
@@ -26,9 +27,9 @@
26
27
  "test:xs": "exit 0"
27
28
  },
28
29
  "dependencies": {
29
- "@agoric/assert": "0.6.1-dev-3c781f6.0+3c781f6",
30
- "@agoric/internal": "0.3.3-dev-3c781f6.0+3c781f6",
31
- "@agoric/xsnap-lockdown": "0.14.1-dev-3c781f6.0+3c781f6",
30
+ "@agoric/assert": "0.6.1-dev-046eb05.0+046eb05",
31
+ "@agoric/internal": "0.3.3-dev-046eb05.0+046eb05",
32
+ "@agoric/xsnap-lockdown": "0.14.1-dev-046eb05.0+046eb05",
32
33
  "@endo/bundle-source": "^2.5.1",
33
34
  "@endo/eventual-send": "^0.17.2",
34
35
  "@endo/init": "^0.5.56",
@@ -60,5 +61,5 @@
60
61
  "timeout": "2m",
61
62
  "workerThreads": false
62
63
  },
63
- "gitHead": "3c781f643c6c321d676272060bdff04fc9dd0fd8"
64
+ "gitHead": "046eb05f824bddad6e1980c2bfab7b3f57f1e60f"
64
65
  }
package/src/build.js CHANGED
@@ -240,19 +240,28 @@ async function main(args, { env, stdout, spawn, fs, os }) {
240
240
  }
241
241
  }
242
242
 
243
- main(process.argv.slice(2), {
244
- env: { ...process.env },
245
- stdout: process.stdout,
246
- spawn: childProcessTop.spawn,
247
- fs: {
248
- readFile: fsTop.promises.readFile,
249
- existsSync: fsTop.existsSync,
250
- rmdirSync: fsTop.rmdirSync,
243
+ const run = () =>
244
+ main(process.argv.slice(2), {
245
+ env: { ...process.env },
246
+ stdout: process.stdout,
247
+ spawn: childProcessTop.spawn,
248
+ fs: {
249
+ readFile: fsTop.promises.readFile,
250
+ existsSync: fsTop.existsSync,
251
+ rmdirSync: fsTop.rmdirSync,
252
+ },
253
+ os: {
254
+ type: osTop.type,
255
+ },
256
+ });
257
+
258
+ process.exitCode = 1;
259
+ run().then(
260
+ () => {
261
+ process.exitCode = 0;
251
262
  },
252
- os: {
253
- type: osTop.type,
263
+ err => {
264
+ console.error('Failed with', err);
265
+ process.exit(process.exitCode || 1);
254
266
  },
255
- }).catch(e => {
256
- console.error(e);
257
- process.exit(1);
258
- });
267
+ );