What / Why
We're using yarn to manage workspaces, I thought I'd be nice to avoid any related overhead in the manual and just override install with yarn. It works and does not go into recursion, but npm still definitely does the installation before it fires yarn.
{
"scripts": {
"install": "yarn install --ignore-scripts"
},
"devDependencies": {
"yarn": "^1.22.4"
}
}
When
example above
Where
in scripts
How
{
"scripts": {
"install": "echo install"
},
"devDependencies": {
"yarn": "^1.22.4"
}
}
Current Behavior
npm install still installs and then echoes
Steps to Reproduce
npm install
Expected Behavior
npm install only echoes
Who
me?
References
didn't find any
What / Why
We're using
yarnto manage workspaces, I thought I'd be nice to avoid any related overhead in the manual and just overrideinstallwithyarn. It works and does not go into recursion, butnpmstill definitely does the installation before it firesyarn.{ "scripts": { "install": "yarn install --ignore-scripts" }, "devDependencies": { "yarn": "^1.22.4" } }When
example above
Where
in scripts
How
{ "scripts": { "install": "echo install" }, "devDependencies": { "yarn": "^1.22.4" } }Current Behavior
npm installstill installs and then echoesSteps to Reproduce
npm installExpected Behavior
npm installonly echoesWho
me?
References
didn't find any