()
| 174 | } |
| 175 | |
| 176 | export 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 | |
| 210 | export function getContinueRcPath(): string { |
| 211 | // Disable indexing of the config folder to prevent infinite loops |
no test coverage detected