Skip to content

Commit f50fe08

Browse files
committed
chore(tsconfig) a better initial tsconfig experience. Helps with typings/typings#151
1 parent 3288a5a commit f50fe08

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

dist/main/tsconfig/tsconfig.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,9 +285,12 @@ function createProjectRootSync(srcFile, defaultOptions) {
285285
throw new Error(exports.errors.CREATE_PROJECT_ALREADY_EXISTS);
286286
var projectSpec = {};
287287
projectSpec.compilerOptions = tsToRawCompilerOptions(defaultOptions || exports.defaults);
288-
projectSpec.filesGlob = defaultFilesGlob;
288+
projectSpec.exclude = ["node_modules", "typings/browser", "typings/browser.d.ts"];
289289
projectSpec.compileOnSave = true;
290290
projectSpec.buildOnSave = false;
291+
projectSpec.atom = {
292+
rewriteTsconfig: false
293+
};
291294
fs.writeFileSync(projectFilePath, prettyJSON(projectSpec));
292295
return getProjectSync(srcFile);
293296
}

lib/main/tsconfig/tsconfig.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -496,9 +496,12 @@ export function createProjectRootSync(srcFile: string, defaultOptions?: ts.Compi
496496
// We need to write the raw spec
497497
var projectSpec: TypeScriptProjectRawSpecification = {};
498498
projectSpec.compilerOptions = tsToRawCompilerOptions(defaultOptions || defaults);
499-
projectSpec.filesGlob = defaultFilesGlob;
499+
projectSpec.exclude = ["node_modules", "typings/browser", "typings/browser.d.ts"];
500500
projectSpec.compileOnSave = true;
501501
projectSpec.buildOnSave = false;
502+
projectSpec.atom = {
503+
rewriteTsconfig: false
504+
};
502505

503506
fs.writeFileSync(projectFilePath, prettyJSON(projectSpec));
504507
return getProjectSync(srcFile);

0 commit comments

Comments
 (0)