diff --git a/package.json b/package.json index 4d28ef3..0e49700 100644 --- a/package.json +++ b/package.json @@ -25,8 +25,8 @@ "fmt": "prettier --write \"src/**/*.ts\" \"tests/**/*.ts\" \"plugins/**/*.ts\" \"builtin-modules/**/*.js\"", "fmt:check": "prettier --check \"src/**/*.ts\" \"tests/**/*.ts\" \"plugins/**/*.ts\" \"builtin-modules/**/*.js\"", "check": "npm run fmt:check && npm run typecheck && npm run test", - "prepare": "npm run build:modules", - "postinstall": "node scripts/patch-vscode-jsonrpc.js && node scripts/check-native-runtime.js" + "prepare": "[ ! -f scripts/build-modules.js ] || npm run build:modules", + "postinstall": "[ ! -f scripts/patch-vscode-jsonrpc.js ] || (node scripts/patch-vscode-jsonrpc.js && node scripts/check-native-runtime.js)" }, "dependencies": { "@github/copilot-sdk": "^0.1.32",