Skip to content

Commit 4113cf9

Browse files
committed
feat(tsconfig) for .d.ts. Expansion was already done. Just marking it as inMemory for future use
closes #286
1 parent 731fc42 commit 4113cf9

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

dist/main/tsconfig/tsconfig.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@ function getDefaultProject(srcFile) {
154154
projectFileDirectory: dir,
155155
projectFilePath: dir + '/' + projectFileName,
156156
project: project,
157+
inMemory: true
157158
};
158159
}
159160
exports.getDefaultProject = getDefaultProject;
@@ -240,7 +241,8 @@ function getProjectSync(pathOrSrcFile) {
240241
return {
241242
projectFileDirectory: projectFileDirectory,
242243
projectFilePath: projectFileDirectory + '/' + projectFileName,
243-
project: project
244+
project: project,
245+
inMemory: false
244246
};
245247
}
246248
exports.getProjectSync = getProjectSync;

lib/main/tsconfig/tsconfig.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ export interface TypeScriptProjectFileDetails {
107107
/** The actual path of the project file (including tsconfig.json) */
108108
projectFilePath: string;
109109
project: TypeScriptProjectSpecification;
110+
inMemory: boolean;
110111
}
111112

112113

@@ -272,6 +273,7 @@ export function getDefaultProject(srcFile: string): TypeScriptProjectFileDetails
272273
projectFileDirectory: dir,
273274
projectFilePath: dir + '/' + projectFileName,
274275
project: project,
276+
inMemory: true
275277
};
276278
}
277279

@@ -397,7 +399,8 @@ export function getProjectSync(pathOrSrcFile: string): TypeScriptProjectFileDeta
397399
return {
398400
projectFileDirectory: projectFileDirectory,
399401
projectFilePath: projectFileDirectory + '/' + projectFileName,
400-
project: project
402+
project: project,
403+
inMemory: false
401404
};
402405

403406
}

0 commit comments

Comments
 (0)