Skip to content

[rush] postinstall config is not getting executed by default on "rush install/rush update" #1793

Open
@Sukesh-Gundoji

Description

@Sukesh-Gundoji

Please prefix the issue title with the project name i.e. [rush], [api-extractor] etc.

Is this a feature or a bug?

  • Feature
  • Bug

Please describe the actual behavior.
Need help: we are having a monorepo which contains multiple angular projects(libraries). Recently, we upgraded to angular V9. During this phase we explored that our library node_modules needs to be Angular Ivy compatible for which we have to make sure running "ngcc" after any change in node_module installation in each individual project/library.

In npm/yarn scenario we can use "postinstall" option which is available in package.json.

Is there a way we can achieve the same in Rush ? and also, will "postRushInstall" option can be of any help ? if so, can you please provide an example for the same ?

If the issue is a bug, how can we reproduce it? Please provide detailed steps and include a GitHub branch if applicable. Your issue will get resolved faster if you can make it easy to investigate.

What is the expected behavior?

If this is a bug, please provide the tool version, Node.js version, and OS.

  • Tool:
  • Tool Version:
  • Node Version:
    • Is this a LTS version?
    • Have you tested on a LTS version?
  • OS:

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs more infoWe can't proceed because we need a better repro or an answer to a question

    Type

    No type

    Projects

    Status

    Needs Investigation

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions