rxliuli / liuli-tools

琉璃的开发工具集,都是一些根据需要自行开发的函数库和开发者工具。
http://dev.rxliuli.com/
MIT License
74 stars 5 forks source link

bug: 修复在 nodejs 16 上使用 liuli-cli 时的警告 #14

Closed rxliuli closed 2 years ago

rxliuli commented 3 years ago
(node:10612) [DEP0148] DeprecationWarning: Use of deprecated folder mapping "./" in the "exports" field module resolution of the package at C:\Users\rxliuli\AppData\Roaming\npm\node_modules\@liuli-util\cli\node_modules\tslib\package.json.
Update this package.json to use a subpath pattern like "./*".
(Use `node --trace-deprecation ...` to show where the warning was created)

根本原因似乎是 rollup-plugin-typescript2 依赖的 ts-lib 有问题,参考:https://github.com/ezolenko/rollup-plugin-typescript2/issues/267

rxliuli commented 2 years ago

不再使用 rollup 构建 lib