Skip to content

Commit 4483a32

Browse files
authored
fix(instr-perf-hooks): avoid 'prepare' npm script because that runs on 'npm install' (open-telemetry#1955)
Having a prepare script in the monorepo means that it runs during 'npm ci' which, I think, can break if some needed deps for that script haven't yet been installed.
1 parent 882fb4b commit 4483a32

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: plugins/node/instrumentation-perf-hooks/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"lint:fix": "eslint . --ext .ts --fix",
1414
"precompile": "tsc --version && lerna run version:update --scope @opentelemetry/instrumentation-perf-hooks --include-dependencies",
1515
"prewatch": "npm run precompile",
16-
"prepare": "npm run compile",
16+
"prepublishOnly": "npm run compile",
1717
"test": "nyc ts-mocha -p tsconfig.json 'test/**/*.test.ts'",
1818
"version:update": "node ../../../scripts/version-update.js"
1919
},

0 commit comments

Comments
 (0)