const sourceMap = !!isDevelopmentBuild;
export default {
- input: ['src/start.ts', 'src/charging-station/ChargingStationWorker.ts'],
+ input: ['./src/start.ts', './src/charging-station/ChargingStationWorker.ts'],
strictDeprecations: true,
output: [
{
- dir: 'dist',
+ dir: './dist',
format: 'esm',
sourcemap: sourceMap,
plugins: [terser({ maxWorkers: Math.floor(availableParallelism() / 2) })],
plugins: [
json(),
typescript({
- tsconfig: 'tsconfig.json',
+ tsconfig: './tsconfig.json',
compilerOptions: {
sourceMap,
},
}),
del({
targets: [
- 'dist/*',
- '!dist/assets',
- 'dist/assets/*.json',
- 'dist/assets/json-schemas',
- 'dist/assets/station-templates',
- 'dist/assets/ui-protocol',
+ './dist/*',
+ '!./dist/assets',
+ './dist/assets/*.json',
+ './dist/assets/json-schemas',
+ './dist/assets/station-templates',
+ './dist/assets/ui-protocol',
],
}),
copy({
- rootDir: 'src',
+ rootDir: './src',
patterns: 'assets/**/*.json',
exclude: [
'assets/config-template.json',
"baseUrl": ".",
"types": ["node", "jsdom"],
"paths": {
- "@/*": ["src/*"]
+ "@/*": ["./src/*"]
}
},
"include": ["src/**/*.ts", "src/**/*.tsx", "src/**/*.vue", "tests/**/*.ts", "tests/**/*.tsx"],