fix: Skip prune shrinkwrap if no "npm-shrinkwrap.json"
MODIFY
package.json
package.json
"prepublish": "gulp prepublish",
"prepublishOnly": "npm run prune-shrinkwrap && gulp fixShrinkwrap",
"postpublish": "npm run restore-shrinkwrap",
- "prune-shrinkwrap": "npm ci --production --ignore-scripts && npm shrinkwrap && npm install --only=dev --no-shrinkwrap",
+ "prune-shrinkwrap": "!(test -e npm-shrinkwrap.json) || (npm ci --production --ignore-scripts && npm shrinkwrap && npm install --only=dev --no-shrinkwrap)",
"restore-shrinkwrap": "git checkout HEAD -- npm-shrinkwrap.json",
"test": "gulp once",
"e2e-test": "gulp e2e-test",

fix: Skip prune shrinkwrap if no "npm-shrinkwrap.json" (#12253)