fix: preinstall scripts bug (#331)

* 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>
This commit is contained in:
turbodog03
2021-11-17 21:13:20 +08:00
committed by GitHub
parent 64fc810359
commit 1394dce306

View File

@ -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"