X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=rollup.config.js;h=8e53a4be3a2ef8af8edcaea6fc493074153a49b3;hb=c4a1979464bbf9c72508da3bda76bec4636dea32;hp=9a8b5955b315e4bcac6905f4271171ff379ebd82;hpb=128f985401bd87bf53f68cbe1bfec8d64bbaa6d9;p=e-mobility-charging-stations-simulator.git diff --git a/rollup.config.js b/rollup.config.js index 9a8b5955..8e53a4be 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -1,5 +1,6 @@ +import copy from 'rollup-plugin-copy'; import del from 'rollup-plugin-delete'; -import ts from '@wessberg/rollup-plugin-ts'; +import typescript from 'rollup-plugin-typescript2'; export default { input: ['src/start.ts', 'src/charging-station/StationWorker.ts'], @@ -11,13 +12,18 @@ export default { preserveModules: true, preserveModulesRoot: 'src' }, - external: ['crypto', 'perf_hooks', 'fs', 'poolifier', 'uuid', 'ws', 'winston', 'winston-daily-rotate-file', 'worker_threads'], + external: ['crypto', 'perf_hooks', 'fs', 'path', 'poolifier', 'uuid', 'ws', 'winston', 'winston-daily-rotate-file', 'worker_threads'], plugins: [ - ts({ + typescript({ tsconfig: 'tsconfig.json' }), del({ targets: 'dist/*' + }), + copy({ + targets: [ + { src: 'src/assets', dest: 'dist/' } + ] }) ] };