@testashe/tnd
v1.0.0
Published
1. Make sure that the package name is unique - `name` field. 2. Specify which files should be sent to NPM when we publish - `files` field. 3. Split `dependencies` and `devDependencies`. 4. Set the package to be publicly accessible - `publishConfig > acces
Downloads
3
Readme
Publishing to NPM
- Make sure that the package name is unique -
name
field. - Specify which files should be sent to NPM when we publish -
files
field. - Split
dependencies
anddevDependencies
. - Set the package to be publicly accessible -
publishConfig > access
field. - If building a CLI, configure the file to run -
bin
field.- Also add the configuration
#!/usr/bin/env node
to top of the file.
- Also add the configuration
- Add a
prePublish
script. - Commit to git.
- Run
npm publish
.