Skip to content

--ignore-scripts ignores lifecycle scripts in dependencies? #3230

Open

Description

@olalonde

Do you want to request a feature or report a bug?

Both

What is the current behavior?

yarn install --ignore-scripts ignores lifecycle scripts of dependencies.

What is the expected behavior?

yarn install --ignore-scripts should only ignore lifecycle scripts of package being installed. I am not sure if this is intentional but if it is, having a separate flag for just ignoring the "postinstall" of the local package would be very useful (esp. in Dockerfile).

Please mention your node.js, yarn and operating system version.

node v7
yarn v0.22.0

Activity

  1. bestander commented on Jun 29, 2017

    @bestander
    Member

    Yeah, afaik there is no way to ignore only script of top level package.

  2. BYK commented on Oct 26, 2017

    @BYK
    Member

    I think this is by design so I'm marking this as a feature request. Also see yarnpkg/rfcs#76 which is related.

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions