tiny-npm-deploy-jrg
v1.0.0
Published
- Verify package name is unique in `package.json` - Specify the `packages.json["files"]` field as an array of files and folders to deploy, typically a post-build `"dist"` folder or similar - Split `dependencies` and `devDependencies`, namely, pull `typesc
Downloads
2
Readme
Publishing to NPM
- Verify package name is unique in
package.json
- Specify the
packages.json["files"]
field as an array of files and folders to deploy, typically a post-build"dist"
folder or similar - Split
dependencies
anddevDependencies
, namely, pulltypescript
and@types/<files>
into `devDependencies - Specify public or private (default) with a
publishConfig
->access
field - Configure the
bin
for CLI to be used, e.g."bin": "dist/index.js"
and inject thebin
disclaimer to the CLI file (#!/usr/bin/env node
) - Specify a
prePublish
script, typically to build the project - Commit to
git
if desired, and ensure that the.gitignore
is configured. - Finally, run
npm publish
.