Fix assets directory cleanup at build in target directory
authorJérôme Benoit <jerome.benoit@sap.com>
Sun, 21 Aug 2022 19:14:53 +0000 (21:14 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Sun, 21 Aug 2022 19:14:53 +0000 (21:14 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
rollup.config.mjs

index 3ab0886e357ae04aebb05d6e15065cfbdd7414b6..0388de65c9a989004b8cad25840e246be9638eca 100644 (file)
@@ -68,7 +68,13 @@ export default {
     }),
     isDevelopmentBuild && istanbul(),
     del({
-      targets: ['dist/*', '!dist/assets', 'dist/assets/*.json', 'dist/assets/station-templates'],
+      targets: [
+        'dist/*',
+        '!dist/assets',
+        'dist/assets/*.json',
+        'dist/assets/station-templates',
+        'dist/assets/json-schemas',
+      ],
     }),
     copy({
       targets: [{ src: 'src/assets', dest: 'dist/' }],