Skip to content

Commit

Permalink
feat!: adds --ignore-scripts flag to pack
Browse files Browse the repository at this point in the history
BREAKING CHANGE: `--ignore-scripts` now applies to all lifecycle scripts, include `prepare`
  • Loading branch information
reggi committed Oct 17, 2024
1 parent f4bc573 commit 4f26f54
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/commands/pack.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ class Pack extends BaseCommand {
'workspace',
'workspaces',
'include-workspace-root',
'ignore-scripts',
]

static usage = ['<package-spec>']
Expand Down
28 changes: 28 additions & 0 deletions tap-snapshots/test/lib/docs.js.test.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ Array [
"get",
"help",
"help-search",
"hook",
"init",
"install",
"install-ci-test",
Expand Down Expand Up @@ -3199,6 +3200,33 @@ Note: This command is unaware of workspaces.
#### \`long\`
`

exports[`test/lib/docs.js TAP usage hook > must match snapshot 1`] = `
Manage registry hooks
Usage:
npm hook add <pkg> <url> <secret> [--type=<type>]
npm hook ls [pkg]
npm hook rm <id>
npm hook update <id> <url> <secret>
Options:
[--registry <registry>] [--otp <otp>]
Run "npm help hook" for more info
\`\`\`bash
npm hook add <pkg> <url> <secret> [--type=<type>]
npm hook ls [pkg]
npm hook rm <id>
npm hook update <id> <url> <secret>
\`\`\`
Note: This command is unaware of workspaces.
#### \`registry\`
#### \`otp\`
`

exports[`test/lib/docs.js TAP usage init > must match snapshot 1`] = `
Create a package.json file
Expand Down

0 comments on commit 4f26f54

Please sign in to comment.