Skip to content

The open alternative to Salesforce, designed for AI.

fix: replace npm pkg set with node script in set-local-version target (#19344)

Charles Bochetf25e0407121b
diff --git a/nx.json b/nx.json
index f5288157a0c..2d0b277451b 100644
--- a/nx.json
+++ b/nx.json
@@ -141,7 +141,7 @@
"cache": false,
"options": {
"cwd": "{projectRoot}",
- "command": "npm pkg set version={args.releaseVersion}"
+ "command": "node -e \"const fs=require('fs'),p=JSON.parse(fs.readFileSync('package.json','utf8'));p.version='{args.releaseVersion}';fs.writeFileSync('package.json',JSON.stringify(p,null,2)+'\\n');\""
}
},
"storybook:build": {