소스 검색

:up: `typescript@4.4.4`

Alex Dima 3 년 전
부모
커밋
cfc503db64
5개의 변경된 파일15개의 추가작업 그리고 15개의 파일을 삭제
  1. 3 3
      package-lock.json
  2. 1 1
      package.json
  3. 5 5
      src/lib/typescriptServices-amd.js
  4. 5 5
      src/lib/typescriptServices.js
  5. 1 1
      src/lib/typescriptServicesMetadata.ts

+ 3 - 3
package-lock.json

@@ -461,9 +461,9 @@
 			}
 		},
 		"typescript": {
-			"version": "4.4.3",
-			"resolved": "https://registry.npmjs.org/typescript/-/typescript-4.4.3.tgz",
-			"integrity": "sha512-4xfscpisVgqqDfPaJo5vkd+Qd/ItkoagnHpufr+i2QCHBsNYp+G7UAoyFl8aPtx879u38wPV65rZ8qbGZijalA==",
+			"version": "4.4.4",
+			"resolved": "https://registry.npmjs.org/typescript/-/typescript-4.4.4.tgz",
+			"integrity": "sha512-DqGhF5IKoBl8WNf8C1gu8q0xZSInh9j1kJJMqT3a94w1JzVaBU4EXOSMrz9yDqMT0xt3selp83fuFMQ0uzv6qA==",
 			"dev": true
 		},
 		"which": {

+ 1 - 1
package.json

@@ -32,7 +32,7 @@
 		"pretty-quick": "^3.1.1",
 		"requirejs": "^2.3.6",
 		"terser": "^5.9.0",
-		"typescript": "^4.4.3"
+		"typescript": "^4.4.4"
 	},
 	"husky": {
 		"hooks": {

+ 5 - 5
src/lib/typescriptServices-amd.js

@@ -297,7 +297,7 @@ var ts;
     // The following is baselined as a literal template type without intervention
     /** The version of the TypeScript compiler release */
     // eslint-disable-next-line @typescript-eslint/no-inferrable-types
-    ts.version = "4.4.3";
+    ts.version = "4.4.4";
     /* @internal */
     var Comparison;
     (function (Comparison) {
@@ -118741,11 +118741,11 @@ var ts;
             (_b = state.typeReferenceDirectiveResolutionCache) === null || _b === void 0 ? void 0 : _b.update(config.options);
             // Create program
             program = host.createProgram(config.fileNames, config.options, compilerHost, getOldProgram(state, projectPath, config), ts.getConfigFileParsingDiagnostics(config), config.projectReferences);
-            state.lastCachedPackageJsonLookups.set(projectPath, state.moduleResolutionCache && ts.map(state.moduleResolutionCache.getPackageJsonInfoCache().entries(), function (_a) {
-                var path = _a[0], data = _a[1];
-                return [state.host.realpath ? toPath(state, state.host.realpath(path)) : path, data];
-            }));
             if (state.watch) {
+                state.lastCachedPackageJsonLookups.set(projectPath, state.moduleResolutionCache && ts.map(state.moduleResolutionCache.getPackageJsonInfoCache().entries(), function (_a) {
+                    var path = _a[0], data = _a[1];
+                    return [state.host.realpath && data ? toPath(state, state.host.realpath(path)) : path, data];
+                }));
                 state.builderPrograms.set(projectPath, program);
             }
             step++;

+ 5 - 5
src/lib/typescriptServices.js

@@ -297,7 +297,7 @@ var ts;
     // The following is baselined as a literal template type without intervention
     /** The version of the TypeScript compiler release */
     // eslint-disable-next-line @typescript-eslint/no-inferrable-types
-    ts.version = "4.4.3";
+    ts.version = "4.4.4";
     /* @internal */
     var Comparison;
     (function (Comparison) {
@@ -118741,11 +118741,11 @@ var ts;
             (_b = state.typeReferenceDirectiveResolutionCache) === null || _b === void 0 ? void 0 : _b.update(config.options);
             // Create program
             program = host.createProgram(config.fileNames, config.options, compilerHost, getOldProgram(state, projectPath, config), ts.getConfigFileParsingDiagnostics(config), config.projectReferences);
-            state.lastCachedPackageJsonLookups.set(projectPath, state.moduleResolutionCache && ts.map(state.moduleResolutionCache.getPackageJsonInfoCache().entries(), function (_a) {
-                var path = _a[0], data = _a[1];
-                return [state.host.realpath ? toPath(state, state.host.realpath(path)) : path, data];
-            }));
             if (state.watch) {
+                state.lastCachedPackageJsonLookups.set(projectPath, state.moduleResolutionCache && ts.map(state.moduleResolutionCache.getPackageJsonInfoCache().entries(), function (_a) {
+                    var path = _a[0], data = _a[1];
+                    return [state.host.realpath && data ? toPath(state, state.host.realpath(path)) : path, data];
+                }));
                 state.builderPrograms.set(projectPath, program);
             }
             step++;

+ 1 - 1
src/lib/typescriptServicesMetadata.ts

@@ -2,4 +2,4 @@
 // **NOTE**: Do not edit directly! This file is generated using `npm run import-typescript`
 //
 
-export const typescriptVersion = "4.4.3";
+export const typescriptVersion = "4.4.4";