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

Function generateTypeDefs

src/utils.js:181–197  ·  view source on GitHub ↗
(outputDir)

Source from the content-addressed store, hash-verified

179}
180
181async function generateTypeDefs(outputDir) {
182 const result = spawn.sync(
183 resolveBin('typescript', {executable: 'tsc'}),
184 // prettier-ignore
185 [
186 '--declaration',
187 '--emitDeclarationOnly',
188 '--noEmit', 'false',
189 '--outDir', outputDir,
190 ],
191 {stdio: 'inherit'},
192 )
193 if (result.status !== 0) return result
194
195 await cpy('**/*.d.ts', '../dist', {cwd: fromRoot('src'), parents: true})
196 return result
197}
198
199function getRollupInputs() {
200 const buildInputGlob =

Callers

nothing calls this directly

Calls 2

resolveBinFunction · 0.85
fromRootFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…