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

Commit

Permalink
Update TypeScript to 3.7.2 (#51)
Browse files Browse the repository at this point in the history
Update TypeScript to 3.7.2
  • Loading branch information
alexdima committed Dec 17, 2019
2 parents 33e9ac3 + 75b57d7 commit 4228d13
Show file tree
Hide file tree
Showing 8 changed files with 36,225 additions and 25,470 deletions.
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -24,7 +24,7 @@
"monaco-languages": "^1.7.0",
"monaco-plugin-helpers": "^1.0.2",
"requirejs": "^2.3.6",
"typescript": "^3.6.2",
"typescript": "^3.7.2",
"uglify-js": "^3.4.9"
}
}
4 changes: 1 addition & 3 deletions scripts/importTypescript.js
Expand Up @@ -35,10 +35,8 @@ const TYPESCRIPT_LIB_DESTINATION = path.join(__dirname, '../src/lib');
);

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

// Flag any new require calls (outside comments) so they can be corrected preemptively.
// To avoid missing cases (or using an even more complex regex), temporarily remove comments
Expand Down
12 changes: 6 additions & 6 deletions src/lib/lib.ts

Large diffs are not rendered by default.

0 comments on commit 4228d13

Please sign in to comment.