1.0.0 • Published 3 years ago

tiny-npm-deploy-jrg v1.0.0

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years ago

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 and devDependencies, namely, pull typescript 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 the bin 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.