Skip to content

don't run for dependencies #11

Open
@milahu

Description

@milahu

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)
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @milahu

        Issue actions

          don't run for dependencies · Issue #11 · milahu/patch-package