Skip to content

Commit 4cc05fe

Browse files
authored
Merge pull request #40 from sourcegraph/allowjs
Stop indexing JS with `--inferTSConfig`
2 parents f5192a2 + 2093cdd commit 4cc05fe

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/main.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -157,10 +157,7 @@ export function index(options: Options): void {
157157
}
158158
if (!ts.sys.fileExists(tsconfigFileName)) {
159159
if (options.inferTSConfig) {
160-
fs.writeFileSync(
161-
tsconfigFileName,
162-
'{"compilerOptions":{"allowJs":true}}'
163-
)
160+
fs.writeFileSync(tsconfigFileName, '{}')
164161
} else {
165162
console.error(`- ${options.projectDisplayName} (missing tsconfig.json)`)
166163
return

0 commit comments

Comments
 (0)