File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -215,7 +215,7 @@ function getProjectSync(pathOrSrcFile) {
215
215
}
216
216
if ( projectSpec . filesGlob ) {
217
217
var prettyJSONProjectSpec = prettyJSON ( projectSpec , detectIndent ( projectFileTextContent ) . indent ) ;
218
- if ( prettyJSONProjectSpec !== projectFileTextContent && projectSpec . atom . rewriteTsconfig ) {
218
+ if ( prettyJSONProjectSpec !== projectFileTextContent && projectSpec . atom && projectSpec . atom . rewriteTsconfig ) {
219
219
fs . writeFileSync ( projectFile , prettyJSONProjectSpec ) ;
220
220
}
221
221
}
Original file line number Diff line number Diff line change @@ -399,7 +399,7 @@ export function getProjectSync(pathOrSrcFile: string): TypeScriptProjectFileDeta
399
399
if ( projectSpec . filesGlob ) { // for filesGlob we keep the files in sync
400
400
var prettyJSONProjectSpec = prettyJSON ( projectSpec , detectIndent ( projectFileTextContent ) . indent ) ;
401
401
402
- if ( prettyJSONProjectSpec !== projectFileTextContent && projectSpec . atom . rewriteTsconfig ) {
402
+ if ( prettyJSONProjectSpec !== projectFileTextContent && projectSpec . atom && projectSpec . atom . rewriteTsconfig ) {
403
403
fs . writeFileSync ( projectFile , prettyJSONProjectSpec ) ;
404
404
}
405
405
}
You can’t perform that action at this time.
0 commit comments