From 653d31ce82a75c7bd3f901b0aa1979988b3d694b Mon Sep 17 00:00:00 2001 From: Turadg Aleahmad Date: Fri, 19 Apr 2024 07:47:11 -0700 Subject: [PATCH 1/2] build: replace 'yarn' in NPM lifecycle scripts https://docs.npmjs.com/cli/v10/using-npm/scripts#life-cycle-operation-order --- packages/xsnap/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/xsnap/package.json b/packages/xsnap/package.json index d24c1320d6d..63714f36c77 100644 --- a/packages/xsnap/package.json +++ b/packages/xsnap/package.json @@ -16,7 +16,7 @@ "build:env": "node src/build.js --show-env > build.env", "build:from-env": "{ cat build.env; echo node src/build.js; } | xargs env", "build": "yarn build:bin && yarn build:env", - "postinstall": "yarn build:from-env", + "postinstall": "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", From 3f64e430dacda69e19d234809dfcf2bac248d4be Mon Sep 17 00:00:00 2001 From: Turadg Aleahmad Date: Fri, 19 Apr 2024 07:47:22 -0700 Subject: [PATCH 2/2] build: remove superfluous 'yarn' --- packages/cosmic-proto/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/cosmic-proto/package.json b/packages/cosmic-proto/package.json index 187fc6e59c0..2c11280998d 100644 --- a/packages/cosmic-proto/package.json +++ b/packages/cosmic-proto/package.json @@ -72,7 +72,7 @@ "!CHANGELOG.md" ], "scripts": { - "build": "yarn tsc --project tsconfig.build.json", + "build": "tsc --project tsconfig.build.json", "clean": "rimraf dist", "codegen": "yarn protos-update && node scripts/codegen.cjs", "prepare": "npm run build",