Skip to content

Evaluate alternatives for install npm lifecycle script in ibm_db #233

Description

@t1m0thyj

The ibm_db dependency has an install script which installs native binaries for DB2/ODBC:
https://github.com/ibmdb/node-ibm_db/blob/f28fcb2c6e7d93f318851fbfea3b137c672a49d8/package.json#L40

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 install script - we may be able to replace it with an Imperative postInstall script: https://github.com/zowe/zowe-cli/blob/71e5573e88f235b64360b8697b9cd8d070ac85f7/packages/imperative/src/imperative/src/plugins/AbstractPluginLifeCycle.ts#L36

Activity

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

Metadata

Metadata

Assignees

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions