Skip to content

Commit

Permalink
build: patch-package in post-install
Browse files Browse the repository at this point in the history
UNTIL #451
  • Loading branch information
turadg committed Jul 1, 2024
1 parent 4f70e66 commit 5653e30
Show file tree
Hide file tree
Showing 50 changed files with 54 additions and 3 deletions.
1 change: 1 addition & 0 deletions golang/cosmos/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"prepack": "git rev-parse --short HEAD > git-revision.txt && rm -rf build",
"postpack": "git clean -f git-revision.txt",
"build": "exit 0",
"postinstall": "patch-package",
"lint-fix": "yarn lint:eslint --fix",
"lint": "exit 0"
},
Expand Down
1 change: 1 addition & 0 deletions multichain-testing/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"type": "module",
"scripts": {
"build": "exit 0",
"postinstall": "patch-package",
"lint": "yarn lint:eslint",
"lint:eslint": "eslint .",
"lint:types": "tsc --noEmit",
Expand Down
1 change: 1 addition & 0 deletions packages/ERTP/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
},
"scripts": {
"build": "exit 0",
"postinstall": "patch-package",
"prepack": "tsc --build tsconfig.build.json",
"postpack": "git clean -f '*.d.ts*'",
"test": "ava",
Expand Down
1 change: 1 addition & 0 deletions packages/SwingSet/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
},
"scripts": {
"build": "exit 0",
"postinstall": "patch-package",
"test": "ava",
"test:xs": "SWINGSET_WORKER_TYPE=xs-worker ava",
"test:xs-worker": "ava test/workers -m 'xsnap vat manager'",
Expand Down
1 change: 1 addition & 0 deletions packages/access-token/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"license": "Apache-2.0",
"scripts": {
"build": "exit 0",
"postinstall": "patch-package",
"test": "ava",
"test:c8": "c8 $C8_OPTIONS ava --config=ava-nesm.config.js",
"test:xs": "exit 0",
Expand Down
1 change: 1 addition & 0 deletions packages/agoric-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
],
"scripts": {
"build": "node ./scripts/get-sdk-package-names.js > src/sdk-package-names.js",
"postinstall": "patch-package",
"test": "ava",
"test:c8": "c8 $C8_OPTIONS ava --config=ava-nesm.config.js",
"test:xs": "exit 0",
Expand Down
1 change: 1 addition & 0 deletions packages/assert/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
},
"scripts": {
"build": "exit 0",
"postinstall": "patch-package",
"test": "ava",
"test:nyc": "exit 0",
"test:xs": "exit 0",
Expand Down
1 change: 1 addition & 0 deletions packages/async-flow/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"main": "./index.js",
"scripts": {
"build": "exit 0",
"postinstall": "patch-package",
"prepack": "tsc --build tsconfig.build.json",
"postpack": "git clean -f '*.d.ts*'",
"test": "ava",
Expand Down
1 change: 1 addition & 0 deletions packages/base-zone/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"main": "./src/index.js",
"scripts": {
"build": "exit 0",
"postinstall": "patch-package",
"prepack": "tsc --build tsconfig.build.json",
"postpack": "git clean -f '*.d.ts*'",
"test": "ava",
Expand Down
1 change: 1 addition & 0 deletions packages/benchmark/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"repository": "https://github.com/Agoric/agoric-sdk",
"scripts": {
"build": "exit 0",
"postinstall": "patch-package",
"test": "exit 0",
"test:xs": "exit 0",
"lint-fix": "yarn lint:eslint --fix",
Expand Down
1 change: 1 addition & 0 deletions packages/boot/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"repository": "https://github.com/Agoric/agoric-sdk",
"scripts": {
"build": "exit 0",
"postinstall": "patch-package",
"test": "ava",
"test:xs": "SWINGSET_WORKER_TYPE=xs-worker ava test/bootstrapTests test/upgrading",
"lint-fix": "yarn lint:eslint --fix",
Expand Down
2 changes: 2 additions & 0 deletions packages/builders/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,11 @@
"repository": "https://github.com/Agoric/agoric-sdk",
"scripts": {
"build": "exit 0",
"postinstall": "patch-package",
"build:add-STARS-proposal": "echo This command has been deprecated. Please run this instead: agoric run scripts/inter-protocol/add-STARS.js",
"build:restart-vats-proposal": "echo This command has been deprecated. Please run this instead: agoric run scripts/vats/restart-vats.js",
"build:zcf-proposal": "echo This command has been deprecated. Please run this instead: agoric run scripts/vats/replace-zoe.js",
"postinstall": "patch-package",
"prepack": "tsc --build tsconfig.build.json",
"postpack": "git clean -f '*.d.ts*'",
"test": "ava",
Expand Down
1 change: 1 addition & 0 deletions packages/cache/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"repository": "https://github.com/Agoric/agoric-sdk",
"scripts": {
"build": "exit 0",
"postinstall": "patch-package",
"test": "ava",
"test:c8": "c8 $C8_OPTIONS ava --config=ava-nesm.config.js",
"test:xs": "exit 0",
Expand Down
1 change: 1 addition & 0 deletions packages/casting/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"repository": "https://github.com/Agoric/agoric-sdk",
"scripts": {
"build": "exit 0",
"postinstall": "patch-package",
"prepack": "tsc --build tsconfig.build.json",
"postpack": "git clean -f '*.d.ts*'",
"demo": "node -e 'import(\"./test/fake-rpc-server.js\").then(ns => ns.develop())'",
Expand Down
1 change: 1 addition & 0 deletions packages/cosmic-proto/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@
"build": "tsc --project tsconfig.build.json",
"clean": "rimraf dist",
"codegen": "./update-protos.sh && node scripts/codegen.cjs",
"postinstall": "patch-package",
"prepare": "npm run build",
"lint-fix": "yarn lint:eslint --fix",
"lint": "tsc",
Expand Down
1 change: 1 addition & 0 deletions packages/cosmic-swingset/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"repository": "https://github.com/Agoric/agoric-sdk",
"scripts": {
"build": "exit 0",
"postinstall": "patch-package",
"test": "ava",
"test:c8": "c8 $C8_OPTIONS ava --config=ava-nesm.config.js",
"test:xs": "exit 0",
Expand Down
1 change: 1 addition & 0 deletions packages/create-dapp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
],
"scripts": {
"build": "exit 0",
"postinstall": "patch-package",
"test": "ava",
"test:c8": "c8 $C8_OPTIONS ava --config=ava-nesm.config.js",
"test:xs": "exit 0",
Expand Down
1 change: 1 addition & 0 deletions packages/deploy-script-support/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
},
"scripts": {
"build": "exit 0",
"postinstall": "patch-package",
"test": "ava",
"test:xs": "exit 0",
"lint-fix": "yarn lint:eslint --fix",
Expand Down
1 change: 1 addition & 0 deletions packages/deployment/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"test": "exit 0",
"test:xs": "exit 0",
"build": "exit 0",
"postinstall": "patch-package",
"lint-fix": "yarn lint:eslint --fix",
"lint:eslint": "eslint ."
},
Expand Down
1 change: 1 addition & 0 deletions packages/eslint-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"test:nyc": "exit 0",
"test:xs": "exit 0",
"build": "exit 0",
"postinstall": "patch-package",
"lint-fix": "exit 0",
"lint": "exit 0"
},
Expand Down
1 change: 1 addition & 0 deletions packages/governance/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"scripts": {
"build": "yarn build:bundles",
"build:bundles": "node ./scripts/build-bundles.js",
"postinstall": "patch-package",
"prepack": "tsc --build tsconfig.build.json",
"postpack": "git clean -f '*.d.ts*'",
"test": "ava",
Expand Down
1 change: 1 addition & 0 deletions packages/import-manager/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
},
"scripts": {
"build": "exit 0",
"postinstall": "patch-package",
"test": "ava",
"test:c8": "c8 $C8_OPTIONS ava --config=ava-nesm.config.js",
"test:xs": "exit 0",
Expand Down
1 change: 1 addition & 0 deletions packages/inter-protocol/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"scripts": {
"build": "yarn build:bundles",
"build:bundles": "node ./scripts/build-bundles.js",
"postinstall": "patch-package",
"prepack": "tsc --build tsconfig.build.json",
"postpack": "git clean -f '*.d.ts*'",
"test": "ava",
Expand Down
1 change: 1 addition & 0 deletions packages/internal/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
},
"scripts": {
"build": "exit 0",
"postinstall": "patch-package",
"prepack": "tsc --build tsconfig.build.json",
"postpack": "git clean -f '*.d.ts*'",
"test": "ava",
Expand Down
1 change: 1 addition & 0 deletions packages/kmarshal/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"license": "Apache-2.0",
"scripts": {
"build": "exit 0",
"postinstall": "patch-package",
"test": "ava",
"test:c8": "c8 $C8_OPTIONS ava --config=ava-nesm.config.js",
"test:xs": "exit 0",
Expand Down
1 change: 1 addition & 0 deletions packages/network/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"repository": "https://github.com/Agoric/agoric-sdk",
"scripts": {
"build": "exit 0",
"postinstall": "patch-package",
"prepack": "tsc --build tsconfig.build.json",
"postpack": "git clean -f '*.d.ts*'",
"test": "ava",
Expand Down
1 change: 1 addition & 0 deletions packages/notifier/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
},
"scripts": {
"build": "exit 0",
"postinstall": "patch-package",
"prepack": "tsc --build tsconfig.build.json",
"postpack": "git clean -f '*.d.ts*'",
"test": "ava",
Expand Down
2 changes: 2 additions & 0 deletions packages/orchestration/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@
},
"scripts": {
"build": "exit 0",
"postinstall": "patch-package",
"codegen": "scripts/fetch-chain-info.ts",
"postinstall": "patch-package",
"prepack": "tsc --build tsconfig.build.json",
"postpack": "git clean -f '*.d.ts*'",
"test": "ava",
Expand Down
1 change: 1 addition & 0 deletions packages/pegasus/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
},
"scripts": {
"build": "exit 0",
"postinstall": "patch-package",
"test": "ava",
"test:c8": "c8 $C8_OPTIONS ava --config=ava-nesm.config.js",
"test:xs": "exit 0",
Expand Down
1 change: 1 addition & 0 deletions packages/smart-wallet/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"scripts": {
"build": "yarn build:bundles",
"build:bundles": "node ./scripts/build-bundles.js",
"postinstall": "patch-package",
"prepack": "tsc --build tsconfig.build.json",
"postpack": "git clean -f '*.d.ts*'",
"test": "ava",
Expand Down
1 change: 1 addition & 0 deletions packages/solo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"repository": "https://github.com/Agoric/agoric-sdk",
"scripts": {
"build": "exit 0",
"postinstall": "patch-package",
"test": "ava",
"test:c8": "c8 $C8_OPTIONS ava --config=ava-nesm.config.js",
"test:xs": "exit 0",
Expand Down
1 change: 1 addition & 0 deletions packages/sparse-ints/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
},
"scripts": {
"build": "exit 0",
"postinstall": "patch-package",
"test": "exit 0",
"test:xs": "exit 0",
"lint": "run-s --continue-on-error lint:*",
Expand Down
1 change: 1 addition & 0 deletions packages/spawner/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"scripts": {
"build": "yarn build:bundles",
"build:bundles": "node scripts/build-bundles.js",
"postinstall": "patch-package",
"test": "ava",
"test:c8": "c8 $C8_OPTIONS ava --config=ava-nesm.config.js",
"test:xs": "exit 0",
Expand Down
1 change: 1 addition & 0 deletions packages/stat-logger/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"license": "Apache-2.0",
"scripts": {
"build": "exit 0",
"postinstall": "patch-package",
"test": "exit 0",
"test:xs": "exit 0",
"lint": "run-s --continue-on-error lint:*",
Expand Down
1 change: 1 addition & 0 deletions packages/store/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
},
"scripts": {
"build": "exit 0",
"postinstall": "patch-package",
"test": "ava",
"test:xs": "exit 0",
"lint-fix": "yarn lint:eslint --fix",
Expand Down
1 change: 1 addition & 0 deletions packages/swing-store/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"license": "Apache-2.0",
"scripts": {
"build": "exit 0",
"postinstall": "patch-package",
"test": "ava",
"test:c8": "c8 $C8_OPTIONS ava --config=ava-nesm.config.js",
"test:xs": "exit 0",
Expand Down
1 change: 1 addition & 0 deletions packages/swingset-liveslots/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
},
"scripts": {
"build": "exit 0",
"postinstall": "patch-package",
"test": "ava",
"test:xs": "exit 0",
"lint-fix": "yarn lint:eslint --fix",
Expand Down
1 change: 1 addition & 0 deletions packages/swingset-runner/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"license": "Apache-2.0",
"scripts": {
"build": "exit 0",
"postinstall": "patch-package",
"test": "ava",
"test:c8": "c8 $C8_OPTIONS ava --config=ava-nesm.config.js",
"test:xs": "exit 0",
Expand Down
1 change: 1 addition & 0 deletions packages/swingset-xsnap-supervisor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"scripts": {
"build:bundle": "node scripts/build-bundle.js",
"build": "yarn build:bundle",
"postinstall": "patch-package",
"clean": "rm -rf dist",
"lint": "run-s --continue-on-error lint:*",
"lint:js": "eslint 'lib/**/*.js' 'src/**/*.js' 'scripts/**/*.js' 'test/**/*.js'",
Expand Down
1 change: 1 addition & 0 deletions packages/telemetry/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"main": "./src/index.js",
"scripts": {
"build": "exit 0",
"postinstall": "patch-package",
"test": "ava",
"test:c8": "c8 $C8_OPTIONS ava --config=ava-nesm.config.js",
"test:xs": "exit 0",
Expand Down
1 change: 1 addition & 0 deletions packages/time/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
},
"scripts": {
"build": "exit 0",
"postinstall": "patch-package",
"test": "ava",
"test:xs": "exit 0",
"lint": "run-s --continue-on-error lint:*",
Expand Down
1 change: 1 addition & 0 deletions packages/vat-data/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"main": "./src/index.js",
"scripts": {
"build": "exit 0",
"postinstall": "patch-package",
"test": "ava",
"test:c8": "exit 0",
"test:xs": "exit 0",
Expand Down
1 change: 1 addition & 0 deletions packages/vats/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"scripts": {
"build": "yarn build:bundles",
"build:bundles": "node scripts/build-bundles.js",
"postinstall": "patch-package",
"prepack": "tsc --build tsconfig.build.json",
"postpack": "git clean -f '*.d.ts*'",
"test": "ava",
Expand Down
1 change: 1 addition & 0 deletions packages/vm-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"repository": "https://github.com/Agoric/agoric-sdk",
"scripts": {
"build": "exit 0",
"postinstall": "patch-package",
"test": "ava",
"test:c8": "c8 $C8_OPTIONS ava --config=ava-nesm.config.js",
"test:xs": "exit 0",
Expand Down
1 change: 1 addition & 0 deletions packages/vow/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
},
"scripts": {
"build": "exit 0",
"postinstall": "patch-package",
"prepack": "tsc --build tsconfig.build.json",
"postpack": "git clean -f '*.d.ts*'",
"test": "ava",
Expand Down
5 changes: 3 additions & 2 deletions packages/wallet/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,12 @@
]
},
"scripts": {
"build": "exit 0",
"postinstall": "patch-package",
"lint-fix": "exit 0",
"lint": "exit 0",
"test": "exit 0",
"test:xs": "exit 0",
"build": "exit 0"
"test:xs": "exit 0"
},
"dependencies": {
"@agoric/wallet-ui": "0.1.3-solo.0",
Expand Down
1 change: 1 addition & 0 deletions packages/xsnap-lockdown/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"build:bundle-rollup": "rollup --config rollup.config.js",
"build:bundle-source": "node scripts/build-bundle.js",
"build": "yarn build:bundle-rollup && yarn build:bundle-source",
"postinstall": "patch-package",
"clean": "rm -rf dist",
"lint": "run-s --continue-on-error lint:*",
"lint:js": "eslint 'src/**/*.js' 'lib/**/*.js' 'scripts/**/*.js' 'test/**/*.js'",
Expand Down
2 changes: 1 addition & 1 deletion packages/xsnap/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"build:from-env": "{ cat build.env; echo node src/build.js; } | xargs env",
"build": "yarn build:bin && yarn build:env",
"check-version": "xsnap_version=$(./scripts/get_xsnap_version.sh); if test \"${npm_package_version}\" != \"${xsnap_version}\"; then echo \"xsnap version mismatch; expected '${npm_package_version}', got '${xsnap_version}'\"; exit 1; fi",
"postinstall": "npm run build:from-env",
"postinstall": "patch-package && npm run build:from-env",
"clean": "rm -rf xsnap-native/xsnap/build",
"lint": "run-s --continue-on-error lint:*",
"lint:js": "eslint 'src/**/*.js' 'test/**/*.js' api.js",
Expand Down
Loading

0 comments on commit 5653e30

Please sign in to comment.