MCPcopy Index your code
hub / github.com/developit/microbundle / getOutput

Function getOutput

src/index.js:226–232  ·  view source on GitHub ↗
({ cwd, output, pkgMain, pkgName })

Source from the content-addressed store, hash-verified

224}
225
226async function getOutput({ cwd, output, pkgMain, pkgName }) {
227 let main = resolve(cwd, output || pkgMain || 'dist');
228 if (!main.match(/\.[a-z]+$/) || (await isDir(main))) {
229 main = resolve(main, `${removeScope(pkgName)}.js`);
230 }
231 return main;
232}
233
234function getDeclarationDir({ options, pkg }) {
235 const { cwd, output } = options;

Callers 1

microbundleFunction · 0.85

Calls 2

isDirFunction · 0.90
removeScopeFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…