MCPcopy Index your code
hub / github.com/TypeScriptToLua/TypeScriptToLua / isEmittableJsonFile

Function isEmittableJsonFile

src/transpilation/transpile.ts:108–111  ·  view source on GitHub ↗
(sourceFile: ts.SourceFile)

Source from the content-addressed store, hash-verified

106 const transformers = getTransformers(program, diagnostics, customTransformers, processSourceFile);
107
108 const isEmittableJsonFile = (sourceFile: ts.SourceFile) =>
109 sourceFile.flags & ts.NodeFlags.JsonFile &&
110 !options.emitDeclarationOnly &&
111 !program.isSourceFileFromExternalLibrary(sourceFile);
112
113 // We always have to run transformers to get diagnostics
114 const oldNoEmit = options.noEmit;

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected