From 02e2ac31cf88692f35804243b7369ed1ef9428a6 Mon Sep 17 00:00:00 2001 From: Trent Mick Date: Fri, 23 Feb 2024 11:42:36 -0800 Subject: [PATCH] fix(instr-perf-hooks): avoid 'prepare' npm script because that runs on 'npm install' Having a prepare script in the monorepo means that it runs during 'npm ci' which can break if some needed deps for that script haven't yet been installed. --- plugins/node/instrumentation-perf-hooks/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/node/instrumentation-perf-hooks/package.json b/plugins/node/instrumentation-perf-hooks/package.json index 6e40c2aeb5..a48ae1ce1a 100644 --- a/plugins/node/instrumentation-perf-hooks/package.json +++ b/plugins/node/instrumentation-perf-hooks/package.json @@ -13,7 +13,7 @@ "lint:fix": "eslint . --ext .ts --fix", "precompile": "tsc --version && lerna run version:update --scope @opentelemetry/instrumentation-perf-hooks --include-dependencies", "prewatch": "npm run precompile", - "prepare": "npm run compile", + "prepublishOnly": "npm run compile", "test": "nyc ts-mocha -p tsconfig.json 'test/**/*.test.ts'", "version:update": "node ../../../scripts/version-update.js" },