2022 第29週 實作筆記:發佈 npm 套件 usePreventLeave

總結

版本與環境

rollup: 2.77.0
@rollup/plugin-node-resolve: 13.3.0
@rollup/plugin-typescript: 8.3.3
rollup-plugin-dts: 4.2.2
rollup-plugin-terser: 7.0.2

筆記

package.json 設定

code: https://github.com/tzynwang/react-hook-use-prevent-leave/blob/master/package.json

rollup.config.json 設定

code: https://github.com/tzynwang/react-hook-use-prevent-leave/blob/master/rollup.config.js

tsconfig.json 設定

code: https://github.com/tzynwang/react-hook-use-prevent-leave/blob/master/tsconfig.json

進版規律

版本號範例:A.B.C

參考文件