0.0.11 • Published 2 years ago
jk-ui-components v0.0.11
publish to npm
npm publish
publish dist folder as root for npm repository
npm run build cp package.json ./dist
or, if you need to have package.json "main" entry different,
e.g. for being able to use npm link
, you need to replace "main"
value:
sed 's#"main": "./dist/index.js"#"main": "./index.js"#' package.json > ./dist/package.json
cd ./dist npm publish So just basically copy your package.json into the dist/ folder and then run npm publish from within the dist/ folder