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

Commit 79d71ce

Browse files
committed
Fix for the working case
1 parent a6dea20 commit 79d71ce

8 files changed

+13041
-7375
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
@@ -25,6 +25,6 @@
2525
"monaco-plugin-helpers": "^1.0.2",
2626
"requirejs": "^2.3.6",
2727
"terser": "^4.6.3",
28-
"typescript": "^3.8.2"
28+
"typescript": "^3.9.0-dev.20200407"
2929
}
3030
}

scripts/importTypescript.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,11 @@ export const typescriptVersion = "${typeScriptDependencyVersion}";\n`
5151
// ^\s+\*[^/] matches (presumably) a later line of a multi-line comment.
5252
const tsServicesNoCommentedRequire = tsServices.replace(/(\/[*/]|^\s+\*[^/]).*\brequire\(.*/gm, '');
5353
const linesWithRequire = tsServicesNoCommentedRequire.match(/^.*?\brequire\(.*$/gm)
54-
.filter(l => !l.includes(": diag(")) // Allow error messages to include references to require() in their strings
5554

56-
if (linesWithRequire && linesWithRequire.length) {
55+
// Allow error messages to include references to require() in their strings
56+
const runtimeRequires = linesWithRequire && linesWithRequire.filter(l => !l.includes(": diag("))
57+
58+
if (runtimeRequires && runtimeRequires.length) {
5759
console.error('Found new require() calls on the following lines. These should be removed to avoid breaking webpack builds.\n');
5860
console.error(linesWithRequire.join('\n'));
5961
process.exit(1);

src/lib/lib.ts

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

src/lib/typescriptServices-amd.js

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

src/lib/typescriptServices.d.ts

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

src/lib/typescriptServices.js

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

src/lib/typescriptServicesMetadata.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
// **NOTE**: Do not edit directly! This file is generated using `npm run import-typescript`
33
//
44

5-
export const typescriptVersion = "3.8.3";
5+
export const typescriptVersion = "3.9.0-dev.20200407";

0 commit comments

Comments
 (0)