How to publish to npm
npm init -y npm install -g typescript -D -D - for dev dependencies npx tsc --init --rootDir src --outDir lib --declaration --sourceMapn --declarationMap update package.json "main": "lib", "types": "lib",
"scripts": { "build": "tsc", "watch": "tsc -w", },
npm install --scope=lyubomyr.rudko // must match exactly user name, creates scoped package
how to publish to npm?
- register on npmjs.com
- npm login
- confirm email
- npm publish (npm publish --access=public)
- npm version patch