소스 검색

Update the lib generator instead of editing the libn file directly

Orta Therox 5 년 전
부모
커밋
e0992c9470
7개의 변경된 파일1278개의 추가작업 그리고 937개의 파일을 삭제
  1. 1 0
      .github/workflows/ci.yml
  2. 8 0
      scripts/importTypescript.js
  3. 0 0
      src/lib/lib.ts
  4. 440 322
      src/lib/typescriptServices-amd.js
  5. 388 292
      src/lib/typescriptServices.d.ts
  6. 440 322
      src/lib/typescriptServices.js
  7. 1 1
      src/lib/typescriptServicesMetadata.ts

+ 1 - 0
.github/workflows/ci.yml

@@ -11,5 +11,6 @@ jobs:
         with:
           node-version: '10.x'
       - run: npm install
+      - run: npm run import-typescript
       - run: npm run compile
       - run: npm run prepublishOnly

+ 8 - 0
scripts/importTypescript.js

@@ -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');
 	fs.writeFileSync(dstPath, strResult);
 }

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 0 - 0
src/lib/lib.ts


파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 440 - 322
src/lib/typescriptServices-amd.js


파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 388 - 292
src/lib/typescriptServices.d.ts


파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 440 - 322
src/lib/typescriptServices.js


+ 1 - 1
src/lib/typescriptServicesMetadata.ts

@@ -1 +1 @@
-export const typescriptVersion = "3.7.5";
+export const typescriptVersion = "3.8.3";

이 변경점에서 너무 많은 파일들이 변경되어 몇몇 파일들은 표시되지 않았습니다.