https://itnext.io/step-by-step-building-and-publishing-an-npm-typescript-package-44fe7164964c
- prepare
"prepare":"yarn build"
packed, published, local에서 install 되기 전에 실행됨.
- prepublishOnly
"prepublishOnly" : "yarn test && yarn run lint"
prepare 이전과 publish
될때만 실행
-
npm version
-
yarn publish