Skip to content

Commit 8272ef2

Browse files
authored
fix(typescript): set original file's script kind to match the service script's (#299)
1 parent c627ce0 commit 8272ef2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/typescript/lib/node/proxyCreateProgram.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,8 @@ export function proxyCreateProgram(
180180
);
181181
// @ts-expect-error
182182
parsedSourceFile.version = originalSourceFile.version;
183+
// @ts-expect-error
184+
originalSourceFile.scriptKind = serviceScript.scriptKind;
183185
parsedSourceFiles.set(originalSourceFile, parsedSourceFile);
184186
}
185187
if (getExtraServiceScripts) {

0 commit comments

Comments
 (0)