"preinstall": "npx --yes only-allow pnpm",
"prepare": "node prepare.js",
"build": "rollup --config --environment BUILD:development",
- "build:typedoc": "rollup --config --environment BUILD:development --environment DOCUMENTATION",
+ "build:analyze": "rollup --config --environment ANALYZE,BUILD:development",
+ "build:typedoc": "rollup --config --environment DOCUMENTATION,BUILD:development",
"build:prod": "rollup --config",
"benchmark": "pnpm build && node -r source-map-support/register benchmarks/internal/bench.js",
"benchmark:debug": "pnpm build && node -r source-map-support/register --inspect benchmarks/internal/bench.js",
import del from 'rollup-plugin-delete'
const isDevelopmentBuild = process.env.BUILD === 'development'
-const isAnalyze = process.env.ANALYZE
-const isDocumentation = process.env.DOCUMENTATION
+const isAnalyzeBuild = process.env.ANALYZE
+const isDocumentationBuild = process.env.DOCUMENTATION
export default {
input: 'src/index.ts',
del({
targets: ['lib/*']
}),
- isAnalyze && analyze(),
- isDocumentation && command('pnpm typedoc')
+ isAnalyzeBuild && analyze(),
+ isDocumentationBuild && command('pnpm typedoc')
]
}