From: Jérôme Benoit Date: Sun, 29 Oct 2023 17:21:06 +0000 (+0100) Subject: build: refine rollup configuration X-Git-Tag: v3.0.6~55 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=209917a749a1fb0095526d14840829dc845e9f54;p=poolifier.git build: refine rollup configuration Signed-off-by: Jérôme Benoit --- 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() ] } ])