Skip to content

Commit 884f5ac

Browse files
authored
Ensure scripts compile, are checked in strict mode (#49524)
1 parent 0ada54c commit 884f5ac

File tree

4 files changed

+12
-2
lines changed

4 files changed

+12
-2
lines changed

package-lock.json

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
"@octokit/rest": "latest",
3434
"@types/chai": "latest",
3535
"@types/convert-source-map": "latest",
36+
"@types/fs-extra": "^9.0.13",
3637
"@types/glob": "latest",
3738
"@types/gulp": "^4.0.9",
3839
"@types/gulp-concat": "latest",

scripts/buildProtocol.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ function writeProtocolFile(outputFile: string, protocolTs: string, typeScriptSer
159159
if (fileName === protocolFileName) {
160160
return ts.createSourceFile(fileName, protocolDts, options.target);
161161
}
162-
return originalGetSourceFile.apply(host, [fileName]);
162+
return originalGetSourceFile.apply(host, [fileName, ts.ScriptTarget.Latest]);
163163
};
164164
const rootFiles = includeTypeScriptServices ? [protocolFileName, typeScriptServicesDts] : [protocolFileName];
165165
return ts.createProgram(rootFiles, options, host);

scripts/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"compilerOptions": {
3-
"strictNullChecks": true,
3+
"strict": true,
44
"removeComments": false,
55
"declaration": false,
66
"sourceMap": true,

0 commit comments

Comments
 (0)