Skip to content

Evaluate alternatives for postinstall npm lifecycle script in CLI #2775

Description

@t1m0thyj

The CLI package has a postinstall script which validates plug-ins:

"postinstall": "node ./scripts/validatePlugins && node ./scripts/printSuccessMessage",

In npm 12, lifecycle scripts will be disabled by default and controlled by the allowScripts option:

Install scripts are off by default. preinstall, install, and postinstall from dependencies won't run unless explicitly allowed.

Source: https://github.com/orgs/community/discussions/198547

Consider alternatives for the postinstall script, such as adding a check when the CLI launches to see if version has been updated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingpriority-mediumNot functioning - next quarter if capacity permitsseverity-mediumBug where workaround exists or that doesn't prevent the usage of Zowe. Just makes it more complex.

    Type

    No type

    Projects

    Status
    Medium Priority

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions