Skip to content
This repository has been archived by the owner on Aug 11, 2022. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
Closes #6749.

Support for passing scopes to `npm init` so packages are initialized as part
of that scope / organization / team.
  • Loading branch information
othiym23 committed Feb 27, 2015
1 parent 9748d5c commit a5edc17
Show file tree
Hide file tree
Showing 6 changed files with 57 additions and 29 deletions.
10 changes: 10 additions & 0 deletions doc/cli/npm-init.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,18 @@ without a really good reason to do so.
If you invoke it with `-f`, `--force`, `-y`, or `--yes`, it will use only
defaults and not prompt you for any options.

## CONFIGURATION

### scope

* Default: none
* Type: String

The scope under which the new module should be created.

## SEE ALSO

* <https://github.com/isaacs/init-package-json>
* package.json(5)
* npm-version(1)
* npm-scope(7)
3 changes: 3 additions & 0 deletions node_modules/init-package-json/default-input.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

34 changes: 7 additions & 27 deletions node_modules/init-package-json/package.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion node_modules/init-package-json/test/npm-defaults.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

35 changes: 35 additions & 0 deletions node_modules/init-package-json/test/scope.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
"inflight": "~1.0.4",
"inherits": "~2.0.1",
"ini": "~1.3.3",
"init-package-json": "~1.2.0",
"init-package-json": "~1.3.0",
"lockfile": "~1.0.0",
"lru-cache": "~2.5.0",
"minimatch": "~2.0.1",
Expand Down

0 comments on commit a5edc17

Please sign in to comment.