Open aleclarson opened 5 years ago
if (hasChanged(pkg.root)) {
const pkgConfig = toArray(
rollup.loadConfig(pkg.root) // (probably not a real method)
)
rootConfig.push(...pkgConfig.map(config => {
// TODO: Normalize input/output paths
}))
}
The command above runs
npx bic-rollup
which looks forrollup.config.js
in each package and combines them into a single Rollup config. Every flag supported by therollup
command is also supported bybic rollup
.It checks the
.bic_cache
before merging therollup.config.js
of any given package (except in watch mode).Note: The Rollup API probably has a nice way to load
rollup.config.*
modules, so TypeScript can be supported (eg:rollup.config.ts
).