Skip to content

Commit 4f26f54

Browse files
committed
feat!: adds --ignore-scripts flag to pack
BREAKING CHANGE: `--ignore-scripts` now applies to all lifecycle scripts, include `prepare`
1 parent f4bc573 commit 4f26f54

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed

lib/commands/pack.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ class Pack extends BaseCommand {
1515
'workspace',
1616
'workspaces',
1717
'include-workspace-root',
18+
'ignore-scripts',
1819
]
1920

2021
static usage = ['<package-spec>']

tap-snapshots/test/lib/docs.js.test.cjs

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ Array [
119119
"get",
120120
"help",
121121
"help-search",
122+
"hook",
122123
"init",
123124
"install",
124125
"install-ci-test",
@@ -3199,6 +3200,33 @@ Note: This command is unaware of workspaces.
31993200
#### \`long\`
32003201
`
32013202

3203+
exports[`test/lib/docs.js TAP usage hook > must match snapshot 1`] = `
3204+
Manage registry hooks
3205+
3206+
Usage:
3207+
npm hook add <pkg> <url> <secret> [--type=<type>]
3208+
npm hook ls [pkg]
3209+
npm hook rm <id>
3210+
npm hook update <id> <url> <secret>
3211+
3212+
Options:
3213+
[--registry <registry>] [--otp <otp>]
3214+
3215+
Run "npm help hook" for more info
3216+
3217+
\`\`\`bash
3218+
npm hook add <pkg> <url> <secret> [--type=<type>]
3219+
npm hook ls [pkg]
3220+
npm hook rm <id>
3221+
npm hook update <id> <url> <secret>
3222+
\`\`\`
3223+
3224+
Note: This command is unaware of workspaces.
3225+
3226+
#### \`registry\`
3227+
#### \`otp\`
3228+
`
3229+
32023230
exports[`test/lib/docs.js TAP usage init > must match snapshot 1`] = `
32033231
Create a package.json file
32043232

0 commit comments

Comments
 (0)