MCPcopy Create free account
hub / github.com/chakra-ui/panda / createTsProject

Function createTsProject

packages/parser/src/project.ts:30–42  ·  view source on GitHub ↗
(options: Partial<TsProjectOptions>)

Source from the content-addressed store, hash-verified

28}
29
30const createTsProject = (options: Partial<TsProjectOptions>) =>
31 new TsProject({
32 skipAddingFilesFromTsConfig: true,
33 skipFileDependencyResolution: true,
34 skipLoadingLibFiles: true,
35 ...options,
36 compilerOptions: {
37 allowJs: true,
38 strictNullChecks: false,
39 skipLibCheck: true,
40 ...normalizeCompilerOptions(options.compilerOptions),
41 },
42 })
43
44export interface ProjectOptions extends TsProjectOptions {
45 readFile: Runtime['fs']['readFileSync']

Callers 1

constructorMethod · 0.70

Calls 1

normalizeCompilerOptionsFunction · 0.85

Tested by

no test coverage detected