diff --git a/CHANGELOG.md b/CHANGELOG.md index 4e28e4f3f5..c8e5934417 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # Changelog +## Unreleased + +### Fixes + +- Use node directly in the postinstall script, instead of using `npm run` ([#3030](https://github.com/getsentry/sentry-cli/pull/3030)). This change ensures the postinstall script remains compatible with package managers other than `npm`. + ## 2.58.3 ### Improvements diff --git a/package.json b/package.json index 89c9bdd2d9..08e6f64334 100644 --- a/package.json +++ b/package.json @@ -42,7 +42,7 @@ "@sentry/cli-win32-arm64": "2.58.3" }, "scripts": { - "postinstall": "npm run install-cli", + "postinstall": "node ./scripts/install.js", "build": "tsc", "install-cli": "node ./scripts/install.js", "prepack": "npm run build",