From 209917a749a1fb0095526d14840829dc845e9f54 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Sun, 29 Oct 2023 18:21:06 +0100 Subject: [PATCH] build: refine rollup configuration MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- rollup.config.mjs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rollup.config.mjs b/rollup.config.mjs index 23d260d0..b7abc9c5 100644 --- a/rollup.config.mjs +++ b/rollup.config.mjs @@ -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() ] } ]) -- 2.34.1