From 4f26f54676a7b4b0276509e3b8ce3dc4bbb9569f Mon Sep 17 00:00:00 2001 From: reggi Date: Thu, 17 Oct 2024 15:18:41 -0400 Subject: [PATCH] feat!: adds `--ignore-scripts` flag to `pack` BREAKING CHANGE: `--ignore-scripts` now applies to all lifecycle scripts, include `prepare` --- lib/commands/pack.js | 1 + tap-snapshots/test/lib/docs.js.test.cjs | 28 +++++++++++++++++++++++++ 2 files changed, 29 insertions(+) diff --git a/lib/commands/pack.js b/lib/commands/pack.js index 6a1bb53acb8aa..bd190d88d82b6 100644 --- a/lib/commands/pack.js +++ b/lib/commands/pack.js @@ -15,6 +15,7 @@ class Pack extends BaseCommand { 'workspace', 'workspaces', 'include-workspace-root', + 'ignore-scripts', ] static usage = [''] diff --git a/tap-snapshots/test/lib/docs.js.test.cjs b/tap-snapshots/test/lib/docs.js.test.cjs index 8e1c57be0bf93..81cd5c1f11ba8 100644 --- a/tap-snapshots/test/lib/docs.js.test.cjs +++ b/tap-snapshots/test/lib/docs.js.test.cjs @@ -119,6 +119,7 @@ Array [ "get", "help", "help-search", + "hook", "init", "install", "install-ci-test", @@ -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 [--type=] +npm hook ls [pkg] +npm hook rm +npm hook update + +Options: +[--registry ] [--otp ] + +Run "npm help hook" for more info + +\`\`\`bash +npm hook add [--type=] +npm hook ls [pkg] +npm hook rm +npm hook update +\`\`\` + +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