Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): allow install scripts in npm-global provider updates #5646

Mergedhey-jj(GitHub profile, opens in a new tab)merged 1 commit intomain fromrefs/pull/5646/headmerged by juliusmarminge View on GitHub

Showing 2 changed files with 55 additions and 4 deletions.

x
0 of 2 viewed, 2 left
44 additions and 3 deletionsapps/server/src/provider/providerMaintenance.test.tsModified
View file
@@ -176,7 +176,8 @@
status: "behind_latest",
currentVersion: "2.1.110",
latestVersion: "2.1.117",
- updateCommand: "npm install -g @example/native-package-tool@latest",
+ updateCommand:
+ "npm install -g --allow-scripts=@example/native-package-tool @example/native-package-tool@latest",
canUpdate: true,
message: "Install the update now or review provider settings.",
});
@@ -482,11 +483,17 @@
provider: driver("packageTool"),
packageName: "@example/package-tool",
update: {
- command: "npm install -g @example/package-tool@latest",
+ command:
+ "npm install -g --allow-scripts=@example/package-tool @example/package-tool@latest",
​
executable: "npm",
​
- args: ["install", "-g", "@example/package-tool@latest"],
+ args: [
+ "install",
+ "-g",
+ "--allow-scripts=@example/package-tool",
+ "@example/package-tool@latest",
+ ],
​
lockKey: "npm-global",