Skip to content
This repository was archived by the owner on Nov 5, 2021. It is now read-only.

Commit 4228d13

Browse files
authored
Update TypeScript to 3.7.2 (#51)
Update TypeScript to 3.7.2
2 parents 33e9ac3 + 75b57d7 commit 4228d13

File tree

8 files changed

+36225
-25470
lines changed

8 files changed

+36225
-25470
lines changed

package-lock.json

Lines changed: 3 additions & 3 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 & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"monaco-languages": "^1.7.0",
2525
"monaco-plugin-helpers": "^1.0.2",
2626
"requirejs": "^2.3.6",
27-
"typescript": "^3.6.2",
27+
"typescript": "^3.7.2",
2828
"uglify-js": "^3.4.9"
2929
}
3030
}

scripts/importTypescript.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,8 @@ const TYPESCRIPT_LIB_DESTINATION = path.join(__dirname, '../src/lib');
3535
);
3636

3737
// Eliminate more require() calls...
38-
tsServices = (
39-
tsServices.replace(/return require\(fileNameToRequire\);/, `// MONACOCHANGE\n return undefined;\n // END MONACOCHANGE`)
40-
);
4138
tsServices = tsServices.replace(/^( +)etwModule = require\(.*$/m, '$1// MONACOCHANGE\n$1etwModule = undefined;\n$1// END MONACOCHANGE');
39+
tsServices = tsServices.replace(/^( +)var result = ts\.sys\.require\(.*$/m, '$1// MONACOCHANGE\n$1var result = undefined;\n$1// END MONACOCHANGE');
4240

4341
// Flag any new require calls (outside comments) so they can be corrected preemptively.
4442
// To avoid missing cases (or using an even more complex regex), temporarily remove comments

src/lib/lib.ts

Lines changed: 6 additions & 6 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)