build: cleanup build paths
authorJérôme Benoit <jerome.benoit@sap.com>
Mon, 28 Aug 2023 22:01:57 +0000 (00:01 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Mon, 28 Aug 2023 22:01:57 +0000 (00:01 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
rollup.config.mjs
ui/web/tsconfig.json

index 11b804ea357ee5b26c4778a041c2b031fad537a4..6ba6851921ad50c39170767bfef9487d6a0ffa59 100644 (file)
@@ -27,11 +27,11 @@ const isAnalyzeBuild = process.env.ANALYZE;
 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) })],
@@ -73,23 +73,23 @@ export default {
   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',
index eb8bcbce64544fd84d54c39c083e3be1018525df..61a91dafe10576ae6ad074b53e7db7d3bb417718 100644 (file)
@@ -9,7 +9,7 @@
     "baseUrl": ".",
     "types": ["node", "jsdom"],
     "paths": {
-      "@/*": ["src/*"]
+      "@/*": ["./src/*"]
     }
   },
   "include": ["src/**/*.ts", "src/**/*.tsx", "src/**/*.vue", "tests/**/*.ts", "tests/**/*.tsx"],