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

don't run for dependencies #11

Open
milahu opened this issue Apr 14, 2022 · 0 comments
Open

don't run for dependencies #11

milahu opened this issue Apr 14, 2022 · 0 comments

Comments

@milahu
Copy link
Owner

milahu commented Apr 14, 2022

merge ds300#297

bump major or minor version

if (
  basename(resolve(process.cwd(), "../")) === "node_modules" &&
  existsSync(resolve(process.cwd(), "../../package.json"))
) {
  console.log(
    `patch-package seems to be running as part of a dependency's postinstall script and will not attempt to apply patches.`,
  )
  process.exit(0)
}
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