Skip to content

Commit

Permalink
fix: preinstall scripts bug (#331)
Browse files Browse the repository at this point in the history
* feat: ban npm to solve potential bugs

Signed-off-by: turbodog03 <63595854+turbodog03@users.noreply.github.com>

* feat: fix preinstall scripts bug

Signed-off-by: turbodog03 <63595854+turbodog03@users.noreply.github.com>
  • Loading branch information
turbodog03 committed Nov 17, 2021
1 parent 64fc810 commit 1394dce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"test": "craco test",
"eject": "craco eject",
"crowdin:sync": "crowdin upload && crowdin download",
"preinstall": "npx use-yarn -m 'Please use yarn!'"
"preinstall": "node -e \"if (process.env.npm_execpath.indexOf('yarn') === -1) throw new Error('Use yarn for installing: https://yarnpkg.com/en/docs/install')\""
},
"eslintConfig": {
"extends": "react-app"
Expand Down

0 comments on commit 1394dce

Please sign in to comment.