Skip to content

Commit 9c83c3e

Browse files
fix: Use node directly in the postinstall script (#3030)
(closes #3028) (closes [CLI-247](https://linear.app/getsentry/issue/CLI-247/version-2583-includes-a-postinstall-script-that-is-incompatible-with)) This fixes the postinstall scripts for package managers other than NPM. --------- Co-authored-by: Daniel Szoke <[email protected]>
1 parent 34196c0 commit 9c83c3e

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Changelog
22

3+
## Unreleased
4+
5+
### Fixes
6+
7+
- 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`.
8+
39
## 2.58.3
410

511
### Improvements

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
"@sentry/cli-win32-arm64": "2.58.3"
4343
},
4444
"scripts": {
45-
"postinstall": "npm run install-cli",
45+
"postinstall": "node ./scripts/install.js",
4646
"build": "tsc",
4747
"install-cli": "node ./scripts/install.js",
4848
"prepack": "npm run build",

0 commit comments

Comments
 (0)