X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=rollup.config.mjs;h=77d516bd6e483da4c5cac72391b3a05cb1bb4087;hb=e1f84f92fdcf189bb0639b9b88d192896ab118bf;hp=bac8f614a5524bd3983969c29ef1d4b36f6fb202;hpb=aad2595fd9c26bcb2f0d7a22d06edf56d5b08bdb;p=poolifier.git diff --git a/rollup.config.mjs b/rollup.config.mjs index bac8f614..77d516bd 100644 --- a/rollup.config.mjs +++ b/rollup.config.mjs @@ -2,9 +2,11 @@ import typescript from 'rollup-plugin-typescript2' import analyze from 'rollup-plugin-analyzer' import { terser } from 'rollup-plugin-terser' import del from 'rollup-plugin-delete' +import command from 'rollup-plugin-command' const isDevelopmentBuild = process.env.BUILD === 'development' const isAnalyze = process.env.ANALYZE +const isDocumentation = process.env.DOCUMENTATION export default { input: 'src/index.ts', @@ -26,6 +28,7 @@ export default { del({ targets: ['lib/*'] }), - isAnalyze && analyze() + isAnalyze && analyze(), + isDocumentation && command('npm run typedoc') ] }