- List global installations:
npm ls -g --depth=0
- Globally install npm-check-updates:
npm i -g npm-check-updates
- Globally install release-it:
npm i -g release-it
- Locally install project dependencies:
npm i
- Enable ESLint for TypeScript in VS Code settings.json:
"eslint.validate": [ "javascript", "javascriptreact", "typescript", "typescriptreact" ]
Development:
- Upgrade dependencies:
ncu -u
(might require anpm i
afterwards) - Run tests:
npm test
(see coverage/) - Build project:
npm run build
(see dist/)
Release (patch, minor or major):
- Remove
"private": true
frompackage.json
. - Double-check package contents before release:
npm pack
(see .tgz file) - Release (dry run):
release-it minor --dry-run
- Release:
release-it minor
(tag and publish)