build: refine rollup configuration
authorJérôme Benoit <jerome.benoit@piment-noir.org>
Sun, 29 Oct 2023 17:21:06 +0000 (18:21 +0100)
committerJérôme Benoit <jerome.benoit@piment-noir.org>
Sun, 29 Oct 2023 17:21:06 +0000 (18:21 +0100)
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
rollup.config.mjs

index 23d260d05ee6af1dc374dbfb98007c851dc13479..b7abc9c5430f6212c6b5e7e79aa2f351285086d2 100644 (file)
@@ -86,8 +86,8 @@ export default defineConfig([
       del({
         targets: ['./lib/*']
       }),
-      isAnalyzeBuild && analyze(),
-      isDocumentationBuild && command('pnpm typedoc')
+      Boolean(isAnalyzeBuild) && analyze(),
+      Boolean(isDocumentationBuild) && command('pnpm typedoc')
     ]
   },
   {
@@ -106,7 +106,7 @@ export default defineConfig([
         targets: ['./lib/dts'],
         hook: 'buildEnd'
       }),
-      isAnalyzeBuild && analyze()
+      Boolean(isAnalyzeBuild) && analyze()
     ]
   }
 ])