MCPcopy Create free account
hub / github.com/continuedev/continue / getTsConfigPath

Function getTsConfigPath

core/util/paths.ts:176–208  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

174}
175
176export function getTsConfigPath(): string {
177 const tsConfigPath = path.join(getContinueGlobalPath(), "tsconfig.json");
178 if (!fs.existsSync(tsConfigPath)) {
179 fs.writeFileSync(
180 tsConfigPath,
181 JSON.stringify(
182 {
183 compilerOptions: {
184 target: "ESNext",
185 useDefineForClassFields: true,
186 lib: ["DOM", "DOM.Iterable", "ESNext"],
187 allowJs: true,
188 skipLibCheck: true,
189 esModuleInterop: false,
190 allowSyntheticDefaultImports: true,
191 strict: true,
192 forceConsistentCasingInFileNames: true,
193 module: "System",
194 moduleResolution: "Node",
195 noEmit: false,
196 noEmitOnError: false,
197 outFile: "./out/config.js",
198 typeRoots: ["./node_modules/@types", "./types"],
199 },
200 include: ["./config.ts"],
201 },
202 null,
203 2,
204 ),
205 );
206 }
207 return tsConfigPath;
208}
209
210export function getContinueRcPath(): string {
211 // Disable indexing of the config folder to prevent infinite loops

Callers 1

activateExtensionFunction · 0.90

Calls 1

getContinueGlobalPathFunction · 0.85

Tested by

no test coverage detected