Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] npm install script override works like postinstall #1196

Closed
qwelias opened this issue Apr 22, 2020 · 1 comment
Closed

[BUG] npm install script override works like postinstall #1196

qwelias opened this issue Apr 22, 2020 · 1 comment

Comments

@qwelias
Copy link

qwelias commented Apr 22, 2020

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

@qwelias
Copy link
Author

qwelias commented Apr 22, 2020

please do not look at it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant