From 7e61151b9ab4f62a83e9ea8bcfa15ece11b6a1fd Mon Sep 17 00:00:00 2001 From: milaninfy <111582375+milaninfy@users.noreply.github.com> Date: Wed, 28 Aug 2024 13:56:15 -0400 Subject: [PATCH] fix(docs): init usage description corrected (#7759) Updated `npm init ` command usage documentation for npx equivalent command format `npx create-` Fixes: https://github.com/npm/cli/issues/7011 --- lib/commands/init.js | 2 +- tap-snapshots/test/lib/docs.js.test.cjs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/commands/init.js b/lib/commands/init.js index b8ef3e59ccf29..09e8d8522f7f3 100644 --- a/lib/commands/init.js +++ b/lib/commands/init.js @@ -31,7 +31,7 @@ class Init extends BaseCommand { static name = 'init' static usage = [ - ' (same as `npx `)', + ' (same as `npx create-`)', '<@scope> (same as `npx <@scope>/create`)', ] diff --git a/tap-snapshots/test/lib/docs.js.test.cjs b/tap-snapshots/test/lib/docs.js.test.cjs index d2b6673f38a67..81cd5c1f11ba8 100644 --- a/tap-snapshots/test/lib/docs.js.test.cjs +++ b/tap-snapshots/test/lib/docs.js.test.cjs @@ -3231,7 +3231,7 @@ exports[`test/lib/docs.js TAP usage init > must match snapshot 1`] = ` Create a package.json file Usage: -npm init (same as \`npx \`) +npm init (same as \`npx create-\`) npm init <@scope> (same as \`npx <@scope>/create\`) Options: @@ -3246,7 +3246,7 @@ aliases: create, innit Run "npm help init" for more info \`\`\`bash -npm init (same as \`npx \`) +npm init (same as \`npx create-\`) npm init <@scope> (same as \`npx <@scope>/create\`) aliases: create, innit