Skip to content

Commit

Permalink
fix: v3.0.4 throws error while installing in yarn workspaces
Browse files Browse the repository at this point in the history
  • Loading branch information
vineet kumar committed Jun 17, 2020
1 parent e23db88 commit be2c872
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -35,7 +35,7 @@
"node": ">= 8.0.0"
},
"scripts": {
"preinstall": "npx npm-force-resolutions",
"preinstall": "node safe-resolution-check.js",
"build": "grunt build",
"test": "grunt test",
"coverage": "grunt coverage",
Expand Down
5 changes: 5 additions & 0 deletions safe-resolution-check.js
@@ -0,0 +1,5 @@
const { spawn } = require( 'child_process' );

try {
spawn( 'npx', ['npm-force-resolutions']);
} catch(e) {}

0 comments on commit be2c872

Please sign in to comment.