Resolve rollup build warnings

This commit is contained in:
Marko Korhonen 2023-11-23 18:28:42 +02:00
parent b76700923d
commit cc6b197d82
Signed by: FunctionalHacker
GPG key ID: A7F78BCB859CD890

View file

@ -10,6 +10,19 @@ const config = {
file: 'dist/wtc', file: 'dist/wtc',
}, },
plugins: [typescript(), terser(), shebang({ include: 'dist/wtc' })], plugins: [typescript(), terser(), shebang({ include: 'dist/wtc' })],
external: [
'@iarna/toml',
'chalk',
'dayjs',
'dayjs/plugin/customParseFormat.js',
'dayjs/plugin/duration.js',
'fs',
'path',
'readline/promises',
'xdg-basedir',
'yargs',
'yargs/helpers',
],
}; };
export default config; export default config;