MCPcopy Create free account
hub / github.com/kentcdodds/kcd-scripts / getRollupInputs

Function getRollupInputs

src/utils.js:199–208  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

197}
198
199function getRollupInputs() {
200 const buildInputGlob =
201 process.env.BUILD_INPUT ||
202 (hasTypescript ? 'src/index.{js,ts,tsx}' : 'src/index.js')
203 const input = glob.sync(toPOSIX(fromRoot(buildInputGlob)))
204 if (!input.length) {
205 throw new Error(`Unable to find files with this glob: ${buildInputGlob}`)
206 }
207 return input
208}
209
210function getRollupOutput(format = process.env.BUILD_FORMAT) {
211 const minify = parseEnv('BUILD_MINIFY', false)

Callers 1

rollup.config.jsFile · 0.85

Calls 2

toPOSIXFunction · 0.85
fromRootFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…