From 607702359efa541f5335196885a4f0040a6dae71 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Tue, 29 Aug 2023 00:01:57 +0200 Subject: [PATCH] build: cleanup build paths MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- rollup.config.mjs | 20 ++++++++++---------- ui/web/tsconfig.json | 2 +- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/rollup.config.mjs b/rollup.config.mjs index 11b804ea..6ba68519 100644 --- a/rollup.config.mjs +++ b/rollup.config.mjs @@ -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', diff --git a/ui/web/tsconfig.json b/ui/web/tsconfig.json index eb8bcbce..61a91daf 100644 --- a/ui/web/tsconfig.json +++ b/ui/web/tsconfig.json @@ -9,7 +9,7 @@ "baseUrl": ".", "types": ["node", "jsdom"], "paths": { - "@/*": ["src/*"] + "@/*": ["./src/*"] } }, "include": ["src/**/*.ts", "src/**/*.tsx", "src/**/*.vue", "tests/**/*.ts", "tests/**/*.tsx"], -- 2.34.1