Skip to content

pnpm pack does not run prepare lifecycle scripts #3560

@sanny-io

Description

@sanny-io

pnpm version:

6.8.0

Code to reproduce the issue:

"scripts": {
    "prepare": "some_unknown_command"
}

pnpm pack

Expected behavior:

The prepare script should run and raise an error because the command is unknown.

Actual behavior:

The prepare script does not run, there is no error raised, and the project is successfully packed.

Additional information:

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions