File tree 4 files changed +20
-1
lines changed
workspaces/config/lib/definitions
4 files changed +20
-1
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,11 @@ const BaseCommand = require('../base-command.js')
16
16
class Init extends BaseCommand {
17
17
static description = 'Create a package.json file'
18
18
static params = [
19
+ 'init-author-name' ,
Has a conversation. Original line has a conversation.
20
+ 'init-author-url' ,
Has a conversation. Original line has a conversation.
21
+ 'init-license' ,
Has a conversation. Original line has a conversation.
22
+ 'init-module' ,
Has a conversation. Original line has a conversation.
23
+ 'init-version' ,
Has a conversation. Original line has a conversation. 19
24
'yes' ,
20
25
'force' ,
21
26
'scope' ,
Original file line number Diff line number Diff line change @@ -315,6 +315,7 @@ exports[`test/lib/commands/publish.js TAP re-loads publishConfig.registry if add
315
315
`
316
316
317
317
exports [ `test/lib/commands/publish.js TAP respects publishConfig.registry, runs appropriate scripts > new package version 1` ] = `
318
+
318
319
`
319
320
320
321
exports [ `test/lib/commands/publish.js TAP restricted access > must match snapshot 1` ] = `
Original file line number Diff line number Diff line change @@ -3160,7 +3160,9 @@ npm init <package-spec> (same as \`npx <package-spec>\`)
3160
3160
npm init <@scope> (same as \`npx <@scope>/create\`)
3161
3161
3162
3162
Options:
3163
- [-y|--yes] [-f|--force] [--scope <@scope>]
3163
+ [--init-author-name <name>] [--init-author-url <url>] [--init-license <license>]
3164
+ [--init-module <module>] [--init-version <version>] [-y|--yes] [-f|--force]
3165
+ [--scope <@scope>]
3164
3166
[-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]]
3165
3167
[-ws|--workspaces] [--no-workspaces-update] [--include-workspace-root]
3166
3168
@@ -3175,6 +3177,11 @@ npm init <@scope> (same as \`npx <@scope>/create\`)
3175
3177
aliases: create, innit
3176
3178
\`\`\`
3177
3179
3180
+ #### \`init-author-name\`
3181
+ #### \`init-author-url\`
3182
+ #### \`init-license\`
3183
+ #### \`init-module\`
3184
+ #### \`init-version\`
3178
3185
#### \`yes\`
3179
3186
#### \`force\`
3180
3187
#### \`scope\`
Original file line number Diff line number Diff line change @@ -963,6 +963,7 @@ define('include-workspace-root', {
963
963
964
964
define ( 'init-author-email' , {
965
965
default : '' ,
966
+ hint : '<email>' ,
966
967
type : String ,
967
968
description : `
968
969
The value \`npm init\` should use by default for the package author's
@@ -972,6 +973,7 @@ define('init-author-email', {
972
973
973
974
define ( 'init-author-name' , {
974
975
default : '' ,
976
+ hint : '<name>' ,
975
977
type : String ,
976
978
description : `
977
979
The value \`npm init\` should use by default for the package author's name.
@@ -981,13 +983,15 @@ define('init-author-name', {
981
983
define ( 'init-author-url' , {
982
984
default : '' ,
983
985
type : [ '' , url ] ,
986
+ hint : '<url>' ,
984
987
description : `
985
988
The value \`npm init\` should use by default for the package author's homepage.
986
989
` ,
987
990
} )
988
991
989
992
define ( 'init-license' , {
990
993
default : 'ISC' ,
994
+ hint : '<license>' ,
991
995
type : String ,
992
996
description : `
993
997
The value \`npm init\` should use by default for the package license.
@@ -997,6 +1001,7 @@ define('init-license', {
997
1001
define ( 'init-module' , {
998
1002
default : '~/.npm-init.js' ,
999
1003
type : path ,
1004
+ hint : '<module>' ,
1000
1005
description : `
1001
1006
A module that will be loaded by the \`npm init\` command. See the
1002
1007
documentation for the
@@ -1008,6 +1013,7 @@ define('init-module', {
1008
1013
define ( 'init-version' , {
1009
1014
default : '1.0.0' ,
1010
1015
type : semver ,
1016
+ hint : '<version>' ,
1011
1017
description : `
1012
1018
The value that \`npm init\` should use by default for the package
1013
1019
version number, if not already set in package.json.
You can’t perform that action at this time.