mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 11:35:40 +01:00
Update the lib generator instead of editing the libn file directly
This commit is contained in:
parent
05f3891fd1
commit
e0992c9470
7 changed files with 34581 additions and 24914 deletions
1
.github/workflows/ci.yml
vendored
1
.github/workflows/ci.yml
vendored
|
|
@ -11,5 +11,6 @@ jobs:
|
||||||
with:
|
with:
|
||||||
node-version: '10.x'
|
node-version: '10.x'
|
||||||
- run: npm install
|
- run: npm install
|
||||||
|
- run: npm run import-typescript
|
||||||
- run: npm run compile
|
- run: npm run compile
|
||||||
- run: npm run prepublishOnly
|
- run: npm run prepublishOnly
|
||||||
|
|
|
||||||
|
|
@ -189,6 +189,14 @@ function importLibs() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
strResult += `
|
||||||
|
/** This is the DTS which is used when the target is ES6 or below */
|
||||||
|
export const lib_es5_bundled_dts = lib_dts;
|
||||||
|
|
||||||
|
/** This is the DTS which is used by default in monaco-typescript by default, and when the target is 2015 or above */
|
||||||
|
export const lib_es2015_bundled_dts = lib_es2015_dts + "" + lib_dom_dts + "" + lib_webworker_importscripts_dts + "" + lib_scripthost_dts + "";
|
||||||
|
`
|
||||||
|
|
||||||
var dstPath = path.join(TYPESCRIPT_LIB_DESTINATION, 'lib.ts');
|
var dstPath = path.join(TYPESCRIPT_LIB_DESTINATION, 'lib.ts');
|
||||||
fs.writeFileSync(dstPath, strResult);
|
fs.writeFileSync(dstPath, strResult);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load diff
753
src/lib/typescriptServices.d.ts
vendored
753
src/lib/typescriptServices.d.ts
vendored
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
|
|
@ -1 +1 @@
|
||||||
export const typescriptVersion = "3.7.5";
|
export const typescriptVersion = "3.8.3";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue