@gebeto/apply-package-scope
v1.1.3
Published
CLI tool for applying scope to package.json name
Downloads
23
Maintainers
Readme
apply-package-scope
CLI tool for adding scope to you package.json name
Getting Started
Install using yarn:
$ yarn add -D apply-package-scope
Or npm:
$ npm install --save-dev apply-package-scope
Usage
Add "scope"
to your package.json
:
{
"name": "my-package",
"scope": "@gebeto",
...
}
After adding "scope"
you can run command:
$ apply-package-scope
Field "name"
in your package.json will be changed to "${scope}/${name}"
:
{
- "name": "my-package",
+ "name": "@gebeto/my-package",
"scope": "@gebeto",
...
}
!!! TIP !!!
You can add
apply-package-scope
to the package.json scripts to run it usingnpm run
oryarn
:{ "scripts": { "apply-package-scope": "apply-package-scope" } }
License
apply-package-scope is MIT licensed.