MCPcopy Create free account
hub / github.com/babel/babel / getIndexFromPackage

Function getIndexFromPackage

Gulpfile.ts:87–94  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

85}
86
87function getIndexFromPackage(name: string): string {
88 try {
89 fs.statSync(`./${name}/src/index.ts`);
90 return `${name}/src/index.ts`;
91 } catch {
92 return `${name}/src/index.js`;
93 }
94}
95
96async function generateHelpers(
97 generator: string,

Callers 1

Gulpfile.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected