diff --git a/tests/baselines/reference/tsc/moduleResolution/node10Result.js b/tests/baselines/reference/tsc/moduleResolution/node10Result.js
index c31511842fb..ae64bd457c4 100644
--- a/tests/baselines/reference/tsc/moduleResolution/node10Result.js
+++ b/tests/baselines/reference/tsc/moduleResolution/node10Result.js
@@ -1,6 +1,6 @@
currentDirectory:: / useCaseSensitiveFileNames: false
Input::
-//// [/a/lib/lib.esnext.full.d.ts]
+//// [/a/lib/lib.es2022.full.d.ts]
///
interface Boolean {}
interface Function {}
diff --git a/tests/baselines/reference/tscWatch/moduleResolution/node10Result.js b/tests/baselines/reference/tscWatch/moduleResolution/node10Result.js
index 53fc1d9b01b..b0e37abbf52 100644
--- a/tests/baselines/reference/tscWatch/moduleResolution/node10Result.js
+++ b/tests/baselines/reference/tscWatch/moduleResolution/node10Result.js
@@ -139,7 +139,7 @@ interface Array { length: number; [n: number]: T; }
//// [/home/src/projects/project/tsconfig.json]
{"compilerOptions":{"module":"node16","moduleResolution":"node16","traceResolution":true,"incremental":true,"strict":true,"types":[]},"files":["index.mts"]}
-//// [/a/lib/lib.esnext.full.d.ts]
+//// [/a/lib/lib.es2022.full.d.ts]
///
interface Boolean {}
interface Function {}
@@ -335,6 +335,7 @@ FileWatcher:: Added:: WatchInfo: /home/src/projects/project/node_modules/@types/
File '/a/lib/package.json' does not exist.
File '/a/package.json' does not exist.
File '/package.json' does not exist according to earlier cached lookups.
+FileWatcher:: Added:: WatchInfo: /a/lib/lib.es2022.full.d.ts 250 undefined Source file
DirectoryWatcher:: Added:: WatchInfo: /home/src/projects 0 undefined Failed Lookup Locations
Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/projects 0 undefined Failed Lookup Locations
DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/project/node_modules 1 undefined Failed Lookup Locations
@@ -349,38 +350,25 @@ FileWatcher:: Added:: WatchInfo: /home/src/projects/project/node_modules/@types/
FileWatcher:: Added:: WatchInfo: /home/src/projects/project/node_modules/foo2/package.json 2000 undefined File location affecting resolution
FileWatcher:: Added:: WatchInfo: /home/src/projects/project/node_modules/bar2/package.json 2000 undefined File location affecting resolution
FileWatcher:: Added:: WatchInfo: /home/src/projects/project/node_modules/@types/bar2/package.json 2000 undefined File location affecting resolution
-FileWatcher:: Added:: WatchInfo: /a/lib/lib.es2022.full.d.ts 500 undefined Missing file
DirectoryWatcher:: Triggered with /home/src/projects/project/index.mjs :: WatchInfo: /home/src/projects/project 0 undefined Failed Lookup Locations
Scheduling invalidateFailedLookup
Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/project/index.mjs :: WatchInfo: /home/src/projects/project 0 undefined Failed Lookup Locations
DirectoryWatcher:: Triggered with /home/src/projects/project/tsconfig.tsbuildinfo :: WatchInfo: /home/src/projects/project 0 undefined Failed Lookup Locations
Scheduling invalidateFailedLookup, Cancelled earlier one
Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/project/tsconfig.tsbuildinfo :: WatchInfo: /home/src/projects/project 0 undefined Failed Lookup Locations
-[91merror[0m[90m TS2318: [0mCannot find global type 'Array'.
+[96mindex.mts[0m:[93m1[0m:[93m21[0m - [91merror[0m[90m TS7016: [0mCould not find a declaration file for module 'foo'. '/home/src/projects/project/node_modules/foo/index.mjs' implicitly has an 'any' type.
+ There are types at '/home/src/projects/project/node_modules/foo/index.d.ts', but this result could not be resolved when respecting package.json "exports". The 'foo' library may need to update its package.json or typings.
-[91merror[0m[90m TS2318: [0mCannot find global type 'Boolean'.
+[7m1[0m import { foo } from "foo";
+[7m [0m [91m ~~~~~[0m
-[91merror[0m[90m TS2318: [0mCannot find global type 'CallableFunction'.
+[96mindex.mts[0m:[93m2[0m:[93m21[0m - [91merror[0m[90m TS7016: [0mCould not find a declaration file for module 'bar'. '/home/src/projects/project/node_modules/bar/index.mjs' implicitly has an 'any' type.
+ There are types at '/home/src/projects/project/node_modules/@types/bar/index.d.ts', but this result could not be resolved when respecting package.json "exports". The '@types/bar' library may need to update its package.json or typings.
-[91merror[0m[90m TS2318: [0mCannot find global type 'Function'.
+[7m2[0m import { bar } from "bar";
+[7m [0m [91m ~~~~~[0m
-[91merror[0m[90m TS2318: [0mCannot find global type 'IArguments'.
-
-[91merror[0m[90m TS2318: [0mCannot find global type 'NewableFunction'.
-
-[91merror[0m[90m TS2318: [0mCannot find global type 'Number'.
-
-[91merror[0m[90m TS2318: [0mCannot find global type 'Object'.
-
-[91merror[0m[90m TS2318: [0mCannot find global type 'RegExp'.
-
-[91merror[0m[90m TS2318: [0mCannot find global type 'String'.
-
-[91merror[0m[90m TS6053: [0mFile '/a/lib/lib.es2022.full.d.ts' not found.
- The file is in the program because:
- Default library for target 'es2022'
-
-[[90m12:01:22 AM[0m] Found 11 errors. Watching for file changes.
+[[90m12:01:22 AM[0m] Found 2 errors. Watching for file changes.
DirectoryWatcher:: Triggered with /home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt :: WatchInfo: /home/src/projects/project 0 undefined Failed Lookup Locations
Scheduling invalidateFailedLookup, Cancelled earlier one
@@ -391,24 +379,30 @@ Program root files: ["/home/src/projects/project/index.mts"]
Program options: {"module":100,"moduleResolution":3,"traceResolution":true,"incremental":true,"strict":true,"types":[],"watch":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project/tsconfig.json"}
Program structureReused: Not
Program files::
+/a/lib/lib.es2022.full.d.ts
/home/src/projects/project/node_modules/foo2/index.d.ts
/home/src/projects/project/node_modules/@types/bar2/index.d.ts
/home/src/projects/project/index.mts
-No cached semantic diagnostics in the builder::
+Semantic diagnostics in builder refreshed for::
+/a/lib/lib.es2022.full.d.ts
+/home/src/projects/project/node_modules/foo2/index.d.ts
+/home/src/projects/project/node_modules/@types/bar2/index.d.ts
+/home/src/projects/project/index.mts
Shape signatures in builder refreshed for::
+/a/lib/lib.es2022.full.d.ts (used version)
/home/src/projects/project/node_modules/foo2/index.d.ts (used version)
-/home/src/projects/project/index.mts (used version)
/home/src/projects/project/node_modules/@types/bar2/index.d.ts (used version)
+/home/src/projects/project/index.mts (used version)
PolledWatches::
-/a/lib/lib.es2022.full.d.ts: *new*
- {"pollingInterval":500}
/home/src/projects/node_modules: *new*
{"pollingInterval":500}
FsWatches::
+/a/lib/lib.es2022.full.d.ts: *new*
+ {}
/home/src/projects: *new*
{}
/home/src/projects/project: *new*
@@ -445,12 +439,13 @@ export {};
//// [/home/src/projects/project/tsconfig.tsbuildinfo]
-{"program":{"fileNames":["./node_modules/foo2/index.d.ts","./node_modules/@types/bar2/index.d.ts","./index.mts"],"fileInfos":[{"version":"-1622383150-export declare const foo2: number;","impliedFormat":1},{"version":"-7439170493-export declare const bar2: number;","impliedFormat":1},{"version":"-4806968175-import { foo } from \"foo\";\nimport { bar } from \"bar\";\nimport { foo2 } from \"foo2\";\nimport { bar2 } from \"bar2\";\n","impliedFormat":99}],"root":[3],"options":{"module":100,"strict":true},"fileIdsList":[[1,2]],"referencedMap":[[3,1]],"exportedModulesMap":[[3,1]]},"version":"FakeTSVersion"}
+{"program":{"fileNames":["../../../../a/lib/lib.es2022.full.d.ts","./node_modules/foo2/index.d.ts","./node_modules/@types/bar2/index.d.ts","./index.mts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-1622383150-export declare const foo2: number;","impliedFormat":1},{"version":"-7439170493-export declare const bar2: number;","impliedFormat":1},{"version":"-4806968175-import { foo } from \"foo\";\nimport { bar } from \"bar\";\nimport { foo2 } from \"foo2\";\nimport { bar2 } from \"bar2\";\n","impliedFormat":99}],"root":[4],"options":{"module":100,"strict":true},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,1]],"semanticDiagnosticsPerFile":[1,[4,[{"file":"./index.mts","start":20,"length":5,"code":7016,"category":1,"messageText":{"messageText":"Could not find a declaration file for module 'foo'. '/home/src/projects/project/node_modules/foo/index.mjs' implicitly has an 'any' type.","category":1,"code":7016,"next":[{"info":{"moduleReference":"foo","mode":99}}]}},{"file":"./index.mts","start":47,"length":5,"code":7016,"category":1,"messageText":{"messageText":"Could not find a declaration file for module 'bar'. '/home/src/projects/project/node_modules/bar/index.mjs' implicitly has an 'any' type.","category":1,"code":7016,"next":[{"info":{"moduleReference":"bar","mode":99}}]}}]],3,2]},"version":"FakeTSVersion"}
//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt]
{
"program": {
"fileNames": [
+ "../../../../a/lib/lib.es2022.full.d.ts",
"./node_modules/foo2/index.d.ts",
"./node_modules/@types/bar2/index.d.ts",
"./index.mts"
@@ -462,6 +457,17 @@ export {};
]
],
"fileInfos": {
+ "../../../../a/lib/lib.es2022.full.d.ts": {
+ "original": {
+ "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }",
+ "affectsGlobalScope": true,
+ "impliedFormat": 1
+ },
+ "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }",
+ "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }",
+ "affectsGlobalScope": true,
+ "impliedFormat": "commonjs"
+ },
"./node_modules/foo2/index.d.ts": {
"original": {
"version": "-1622383150-export declare const foo2: number;",
@@ -492,7 +498,7 @@ export {};
},
"root": [
[
- 3,
+ 4,
"./index.mts"
]
],
@@ -511,10 +517,60 @@ export {};
"./node_modules/foo2/index.d.ts",
"./node_modules/@types/bar2/index.d.ts"
]
- }
+ },
+ "semanticDiagnosticsPerFile": [
+ "../../../../a/lib/lib.es2022.full.d.ts",
+ [
+ "./index.mts",
+ [
+ {
+ "file": "./index.mts",
+ "start": 20,
+ "length": 5,
+ "code": 7016,
+ "category": 1,
+ "messageText": {
+ "messageText": "Could not find a declaration file for module 'foo'. '/home/src/projects/project/node_modules/foo/index.mjs' implicitly has an 'any' type.",
+ "category": 1,
+ "code": 7016,
+ "next": [
+ {
+ "info": {
+ "moduleReference": "foo",
+ "mode": 99
+ }
+ }
+ ]
+ }
+ },
+ {
+ "file": "./index.mts",
+ "start": 47,
+ "length": 5,
+ "code": 7016,
+ "category": 1,
+ "messageText": {
+ "messageText": "Could not find a declaration file for module 'bar'. '/home/src/projects/project/node_modules/bar/index.mjs' implicitly has an 'any' type.",
+ "category": 1,
+ "code": 7016,
+ "next": [
+ {
+ "info": {
+ "moduleReference": "bar",
+ "mode": 99
+ }
+ }
+ ]
+ }
+ }
+ ]
+ ],
+ "./node_modules/@types/bar2/index.d.ts",
+ "./node_modules/foo2/index.d.ts"
+ ]
},
"version": "FakeTSVersion",
- "size": 607
+ "size": 1746
}
@@ -541,6 +597,9 @@ Synchronizing program
CreatingProgramWith::
roots: ["/home/src/projects/project/index.mts"]
options: {"module":100,"moduleResolution":3,"traceResolution":true,"incremental":true,"strict":true,"types":[],"watch":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project/tsconfig.json"}
+File '/a/lib/package.json' does not exist according to earlier cached lookups.
+File '/a/package.json' does not exist according to earlier cached lookups.
+File '/package.json' does not exist according to earlier cached lookups.
File '/home/src/projects/project/node_modules/foo2/package.json' exists according to earlier cached lookups.
Found 'package.json' at '/home/src/projects/project/node_modules/@types/bar2/package.json'.
Reusing resolution of module 'foo' from '/home/src/projects/project/index.mts' of old program, it was successfully resolved to '/home/src/projects/project/node_modules/foo/index.mjs' with Package ID 'foo/index.mjs@1.0.0'.
@@ -631,31 +690,19 @@ File '/home/src/projects/project/node_modules/@types/bar2/package.json' exists a
File '/a/lib/package.json' does not exist according to earlier cached lookups.
File '/a/package.json' does not exist according to earlier cached lookups.
File '/package.json' does not exist according to earlier cached lookups.
-[91merror[0m[90m TS2318: [0mCannot find global type 'Array'.
+[96mindex.mts[0m:[93m1[0m:[93m21[0m - [91merror[0m[90m TS7016: [0mCould not find a declaration file for module 'foo'. '/home/src/projects/project/node_modules/foo/index.mjs' implicitly has an 'any' type.
+ There are types at '/home/src/projects/project/node_modules/foo/index.d.ts', but this result could not be resolved when respecting package.json "exports". The 'foo' library may need to update its package.json or typings.
-[91merror[0m[90m TS2318: [0mCannot find global type 'Boolean'.
+[7m1[0m import { foo } from "foo";
+[7m [0m [91m ~~~~~[0m
-[91merror[0m[90m TS2318: [0mCannot find global type 'CallableFunction'.
+[96mindex.mts[0m:[93m2[0m:[93m21[0m - [91merror[0m[90m TS7016: [0mCould not find a declaration file for module 'bar'. '/home/src/projects/project/node_modules/bar/index.mjs' implicitly has an 'any' type.
+ Try `npm i --save-dev @types/bar` if it exists or add a new declaration (.d.ts) file containing `declare module 'bar';`
-[91merror[0m[90m TS2318: [0mCannot find global type 'Function'.
+[7m2[0m import { bar } from "bar";
+[7m [0m [91m ~~~~~[0m
-[91merror[0m[90m TS2318: [0mCannot find global type 'IArguments'.
-
-[91merror[0m[90m TS2318: [0mCannot find global type 'NewableFunction'.
-
-[91merror[0m[90m TS2318: [0mCannot find global type 'Number'.
-
-[91merror[0m[90m TS2318: [0mCannot find global type 'Object'.
-
-[91merror[0m[90m TS2318: [0mCannot find global type 'RegExp'.
-
-[91merror[0m[90m TS2318: [0mCannot find global type 'String'.
-
-[91merror[0m[90m TS6053: [0mFile '/a/lib/lib.es2022.full.d.ts' not found.
- The file is in the program because:
- Default library for target 'es2022'
-
-[[90m12:01:27 AM[0m] Found 11 errors. Watching for file changes.
+[[90m12:01:27 AM[0m] Found 2 errors. Watching for file changes.
@@ -663,11 +710,12 @@ Program root files: ["/home/src/projects/project/index.mts"]
Program options: {"module":100,"moduleResolution":3,"traceResolution":true,"incremental":true,"strict":true,"types":[],"watch":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project/tsconfig.json"}
Program structureReused: SafeModules
Program files::
+/a/lib/lib.es2022.full.d.ts
/home/src/projects/project/node_modules/foo2/index.d.ts
/home/src/projects/project/node_modules/@types/bar2/index.d.ts
/home/src/projects/project/index.mts
-No cached semantic diagnostics in the builder::
+Semantic diagnostics in builder refreshed for::
No shapes updated in the builder::
@@ -697,6 +745,9 @@ Synchronizing program
CreatingProgramWith::
roots: ["/home/src/projects/project/index.mts"]
options: {"module":100,"moduleResolution":3,"traceResolution":true,"incremental":true,"strict":true,"types":[],"watch":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project/tsconfig.json"}
+File '/a/lib/package.json' does not exist according to earlier cached lookups.
+File '/a/package.json' does not exist according to earlier cached lookups.
+File '/package.json' does not exist according to earlier cached lookups.
Found 'package.json' at '/home/src/projects/project/node_modules/foo2/package.json'.
File '/home/src/projects/project/node_modules/@types/bar2/package.json' exists according to earlier cached lookups.
======== Resolving module 'foo' from '/home/src/projects/project/index.mts'. ========
@@ -768,31 +819,19 @@ File '/home/src/projects/project/node_modules/@types/bar2/package.json' exists a
File '/a/lib/package.json' does not exist according to earlier cached lookups.
File '/a/package.json' does not exist according to earlier cached lookups.
File '/package.json' does not exist according to earlier cached lookups.
-[91merror[0m[90m TS2318: [0mCannot find global type 'Array'.
+[96mindex.mts[0m:[93m1[0m:[93m21[0m - [91merror[0m[90m TS7016: [0mCould not find a declaration file for module 'foo'. '/home/src/projects/project/node_modules/foo/index.mjs' implicitly has an 'any' type.
+ Try `npm i --save-dev @types/foo` if it exists or add a new declaration (.d.ts) file containing `declare module 'foo';`
-[91merror[0m[90m TS2318: [0mCannot find global type 'Boolean'.
+[7m1[0m import { foo } from "foo";
+[7m [0m [91m ~~~~~[0m
-[91merror[0m[90m TS2318: [0mCannot find global type 'CallableFunction'.
+[96mindex.mts[0m:[93m2[0m:[93m21[0m - [91merror[0m[90m TS7016: [0mCould not find a declaration file for module 'bar'. '/home/src/projects/project/node_modules/bar/index.mjs' implicitly has an 'any' type.
+ Try `npm i --save-dev @types/bar` if it exists or add a new declaration (.d.ts) file containing `declare module 'bar';`
-[91merror[0m[90m TS2318: [0mCannot find global type 'Function'.
+[7m2[0m import { bar } from "bar";
+[7m [0m [91m ~~~~~[0m
-[91merror[0m[90m TS2318: [0mCannot find global type 'IArguments'.
-
-[91merror[0m[90m TS2318: [0mCannot find global type 'NewableFunction'.
-
-[91merror[0m[90m TS2318: [0mCannot find global type 'Number'.
-
-[91merror[0m[90m TS2318: [0mCannot find global type 'Object'.
-
-[91merror[0m[90m TS2318: [0mCannot find global type 'RegExp'.
-
-[91merror[0m[90m TS2318: [0mCannot find global type 'String'.
-
-[91merror[0m[90m TS6053: [0mFile '/a/lib/lib.es2022.full.d.ts' not found.
- The file is in the program because:
- Default library for target 'es2022'
-
-[[90m12:01:31 AM[0m] Found 11 errors. Watching for file changes.
+[[90m12:01:31 AM[0m] Found 2 errors. Watching for file changes.
@@ -800,11 +839,12 @@ Program root files: ["/home/src/projects/project/index.mts"]
Program options: {"module":100,"moduleResolution":3,"traceResolution":true,"incremental":true,"strict":true,"types":[],"watch":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project/tsconfig.json"}
Program structureReused: SafeModules
Program files::
+/a/lib/lib.es2022.full.d.ts
/home/src/projects/project/node_modules/foo2/index.d.ts
/home/src/projects/project/node_modules/@types/bar2/index.d.ts
/home/src/projects/project/index.mts
-No cached semantic diagnostics in the builder::
+Semantic diagnostics in builder refreshed for::
No shapes updated in the builder::
@@ -836,6 +876,9 @@ Synchronizing program
CreatingProgramWith::
roots: ["/home/src/projects/project/index.mts"]
options: {"module":100,"moduleResolution":3,"traceResolution":true,"incremental":true,"strict":true,"types":[],"watch":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project/tsconfig.json"}
+File '/a/lib/package.json' does not exist according to earlier cached lookups.
+File '/a/package.json' does not exist according to earlier cached lookups.
+File '/package.json' does not exist according to earlier cached lookups.
File '/home/src/projects/project/node_modules/foo2/package.json' exists according to earlier cached lookups.
Found 'package.json' at '/home/src/projects/project/node_modules/@types/bar2/package.json'.
Reusing resolution of module 'foo' from '/home/src/projects/project/index.mts' of old program, it was successfully resolved to '/home/src/projects/project/node_modules/foo/index.mjs' with Package ID 'foo/index.mjs@1.0.0'.
@@ -913,31 +956,19 @@ File '/home/src/projects/project/node_modules/@types/bar2/package.json' exists a
File '/a/lib/package.json' does not exist according to earlier cached lookups.
File '/a/package.json' does not exist according to earlier cached lookups.
File '/package.json' does not exist according to earlier cached lookups.
-[91merror[0m[90m TS2318: [0mCannot find global type 'Array'.
+[96mindex.mts[0m:[93m1[0m:[93m21[0m - [91merror[0m[90m TS7016: [0mCould not find a declaration file for module 'foo'. '/home/src/projects/project/node_modules/foo/index.mjs' implicitly has an 'any' type.
+ Try `npm i --save-dev @types/foo` if it exists or add a new declaration (.d.ts) file containing `declare module 'foo';`
-[91merror[0m[90m TS2318: [0mCannot find global type 'Boolean'.
+[7m1[0m import { foo } from "foo";
+[7m [0m [91m ~~~~~[0m
-[91merror[0m[90m TS2318: [0mCannot find global type 'CallableFunction'.
+[96mindex.mts[0m:[93m2[0m:[93m21[0m - [91merror[0m[90m TS7016: [0mCould not find a declaration file for module 'bar'. '/home/src/projects/project/node_modules/bar/index.mjs' implicitly has an 'any' type.
+ There are types at '/home/src/projects/project/node_modules/@types/bar/index.d.ts', but this result could not be resolved when respecting package.json "exports". The '@types/bar' library may need to update its package.json or typings.
-[91merror[0m[90m TS2318: [0mCannot find global type 'Function'.
+[7m2[0m import { bar } from "bar";
+[7m [0m [91m ~~~~~[0m
-[91merror[0m[90m TS2318: [0mCannot find global type 'IArguments'.
-
-[91merror[0m[90m TS2318: [0mCannot find global type 'NewableFunction'.
-
-[91merror[0m[90m TS2318: [0mCannot find global type 'Number'.
-
-[91merror[0m[90m TS2318: [0mCannot find global type 'Object'.
-
-[91merror[0m[90m TS2318: [0mCannot find global type 'RegExp'.
-
-[91merror[0m[90m TS2318: [0mCannot find global type 'String'.
-
-[91merror[0m[90m TS6053: [0mFile '/a/lib/lib.es2022.full.d.ts' not found.
- The file is in the program because:
- Default library for target 'es2022'
-
-[[90m12:01:35 AM[0m] Found 11 errors. Watching for file changes.
+[[90m12:01:35 AM[0m] Found 2 errors. Watching for file changes.
@@ -945,11 +976,12 @@ Program root files: ["/home/src/projects/project/index.mts"]
Program options: {"module":100,"moduleResolution":3,"traceResolution":true,"incremental":true,"strict":true,"types":[],"watch":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project/tsconfig.json"}
Program structureReused: SafeModules
Program files::
+/a/lib/lib.es2022.full.d.ts
/home/src/projects/project/node_modules/foo2/index.d.ts
/home/src/projects/project/node_modules/@types/bar2/index.d.ts
/home/src/projects/project/index.mts
-No cached semantic diagnostics in the builder::
+Semantic diagnostics in builder refreshed for::
No shapes updated in the builder::
@@ -981,6 +1013,9 @@ Synchronizing program
CreatingProgramWith::
roots: ["/home/src/projects/project/index.mts"]
options: {"module":100,"moduleResolution":3,"traceResolution":true,"incremental":true,"strict":true,"types":[],"watch":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project/tsconfig.json"}
+File '/a/lib/package.json' does not exist according to earlier cached lookups.
+File '/a/package.json' does not exist according to earlier cached lookups.
+File '/package.json' does not exist according to earlier cached lookups.
Found 'package.json' at '/home/src/projects/project/node_modules/foo2/package.json'.
File '/home/src/projects/project/node_modules/@types/bar2/package.json' exists according to earlier cached lookups.
======== Resolving module 'foo' from '/home/src/projects/project/index.mts'. ========
@@ -1039,31 +1074,19 @@ File '/home/src/projects/project/node_modules/@types/bar2/package.json' exists a
File '/a/lib/package.json' does not exist according to earlier cached lookups.
File '/a/package.json' does not exist according to earlier cached lookups.
File '/package.json' does not exist according to earlier cached lookups.
-[91merror[0m[90m TS2318: [0mCannot find global type 'Array'.
+[96mindex.mts[0m:[93m1[0m:[93m21[0m - [91merror[0m[90m TS7016: [0mCould not find a declaration file for module 'foo'. '/home/src/projects/project/node_modules/foo/index.mjs' implicitly has an 'any' type.
+ There are types at '/home/src/projects/project/node_modules/foo/index.d.ts', but this result could not be resolved when respecting package.json "exports". The 'foo' library may need to update its package.json or typings.
-[91merror[0m[90m TS2318: [0mCannot find global type 'Boolean'.
+[7m1[0m import { foo } from "foo";
+[7m [0m [91m ~~~~~[0m
-[91merror[0m[90m TS2318: [0mCannot find global type 'CallableFunction'.
+[96mindex.mts[0m:[93m2[0m:[93m21[0m - [91merror[0m[90m TS7016: [0mCould not find a declaration file for module 'bar'. '/home/src/projects/project/node_modules/bar/index.mjs' implicitly has an 'any' type.
+ There are types at '/home/src/projects/project/node_modules/@types/bar/index.d.ts', but this result could not be resolved when respecting package.json "exports". The '@types/bar' library may need to update its package.json or typings.
-[91merror[0m[90m TS2318: [0mCannot find global type 'Function'.
+[7m2[0m import { bar } from "bar";
+[7m [0m [91m ~~~~~[0m
-[91merror[0m[90m TS2318: [0mCannot find global type 'IArguments'.
-
-[91merror[0m[90m TS2318: [0mCannot find global type 'NewableFunction'.
-
-[91merror[0m[90m TS2318: [0mCannot find global type 'Number'.
-
-[91merror[0m[90m TS2318: [0mCannot find global type 'Object'.
-
-[91merror[0m[90m TS2318: [0mCannot find global type 'RegExp'.
-
-[91merror[0m[90m TS2318: [0mCannot find global type 'String'.
-
-[91merror[0m[90m TS6053: [0mFile '/a/lib/lib.es2022.full.d.ts' not found.
- The file is in the program because:
- Default library for target 'es2022'
-
-[[90m12:01:40 AM[0m] Found 11 errors. Watching for file changes.
+[[90m12:01:40 AM[0m] Found 2 errors. Watching for file changes.
@@ -1071,11 +1094,12 @@ Program root files: ["/home/src/projects/project/index.mts"]
Program options: {"module":100,"moduleResolution":3,"traceResolution":true,"incremental":true,"strict":true,"types":[],"watch":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project/tsconfig.json"}
Program structureReused: SafeModules
Program files::
+/a/lib/lib.es2022.full.d.ts
/home/src/projects/project/node_modules/foo2/index.d.ts
/home/src/projects/project/node_modules/@types/bar2/index.d.ts
/home/src/projects/project/index.mts
-No cached semantic diagnostics in the builder::
+Semantic diagnostics in builder refreshed for::
No shapes updated in the builder::
@@ -1117,6 +1141,9 @@ Synchronizing program
CreatingProgramWith::
roots: ["/home/src/projects/project/index.mts"]
options: {"module":100,"moduleResolution":3,"traceResolution":true,"incremental":true,"strict":true,"types":[],"watch":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project/tsconfig.json"}
+File '/a/lib/package.json' does not exist according to earlier cached lookups.
+File '/a/package.json' does not exist according to earlier cached lookups.
+File '/package.json' does not exist according to earlier cached lookups.
File '/home/src/projects/project/node_modules/foo2/package.json' exists according to earlier cached lookups.
File '/home/src/projects/project/node_modules/@types/bar2/package.json' exists according to earlier cached lookups.
Reusing resolution of module 'foo' from '/home/src/projects/project/index.mts' of old program, it was successfully resolved to '/home/src/projects/project/node_modules/foo/index.mjs' with Package ID 'foo/index.mjs@1.0.0'.
@@ -1158,31 +1185,13 @@ File '/home/src/projects/project/node_modules/@types/bar2/package.json' exists a
File '/a/lib/package.json' does not exist according to earlier cached lookups.
File '/a/package.json' does not exist according to earlier cached lookups.
File '/package.json' does not exist according to earlier cached lookups.
-[91merror[0m[90m TS2318: [0mCannot find global type 'Array'.
+[96mindex.mts[0m:[93m1[0m:[93m21[0m - [91merror[0m[90m TS7016: [0mCould not find a declaration file for module 'foo'. '/home/src/projects/project/node_modules/foo/index.mjs' implicitly has an 'any' type.
+ There are types at '/home/src/projects/project/node_modules/foo/index.d.ts', but this result could not be resolved when respecting package.json "exports". The 'foo' library may need to update its package.json or typings.
-[91merror[0m[90m TS2318: [0mCannot find global type 'Boolean'.
+[7m1[0m import { foo } from "foo";
+[7m [0m [91m ~~~~~[0m
-[91merror[0m[90m TS2318: [0mCannot find global type 'CallableFunction'.
-
-[91merror[0m[90m TS2318: [0mCannot find global type 'Function'.
-
-[91merror[0m[90m TS2318: [0mCannot find global type 'IArguments'.
-
-[91merror[0m[90m TS2318: [0mCannot find global type 'NewableFunction'.
-
-[91merror[0m[90m TS2318: [0mCannot find global type 'Number'.
-
-[91merror[0m[90m TS2318: [0mCannot find global type 'Object'.
-
-[91merror[0m[90m TS2318: [0mCannot find global type 'RegExp'.
-
-[91merror[0m[90m TS2318: [0mCannot find global type 'String'.
-
-[91merror[0m[90m TS6053: [0mFile '/a/lib/lib.es2022.full.d.ts' not found.
- The file is in the program because:
- Default library for target 'es2022'
-
-[[90m12:01:51 AM[0m] Found 11 errors. Watching for file changes.
+[[90m12:01:51 AM[0m] Found 1 error. Watching for file changes.
@@ -1190,24 +1199,27 @@ Program root files: ["/home/src/projects/project/index.mts"]
Program options: {"module":100,"moduleResolution":3,"traceResolution":true,"incremental":true,"strict":true,"types":[],"watch":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project/tsconfig.json"}
Program structureReused: SafeModules
Program files::
+/a/lib/lib.es2022.full.d.ts
/home/src/projects/project/node_modules/@types/bar/index.d.ts
/home/src/projects/project/node_modules/foo2/index.d.ts
/home/src/projects/project/node_modules/@types/bar2/index.d.ts
/home/src/projects/project/index.mts
-No cached semantic diagnostics in the builder::
+Semantic diagnostics in builder refreshed for::
+/home/src/projects/project/node_modules/@types/bar/index.d.ts
+/home/src/projects/project/index.mts
Shape signatures in builder refreshed for::
/home/src/projects/project/node_modules/@types/bar/index.d.ts (used version)
/home/src/projects/project/index.mts (computed .d.ts)
PolledWatches::
-/a/lib/lib.es2022.full.d.ts:
- {"pollingInterval":500}
/home/src/projects/node_modules:
{"pollingInterval":500}
FsWatches::
+/a/lib/lib.es2022.full.d.ts:
+ {}
/home/src/projects:
{}
/home/src/projects/project:
@@ -1243,12 +1255,13 @@ exitCode:: ExitStatus.undefined
//// [/home/src/projects/project/index.mjs] file written with same contents
//// [/home/src/projects/project/tsconfig.tsbuildinfo]
-{"program":{"fileNames":["./node_modules/@types/bar/index.d.ts","./node_modules/foo2/index.d.ts","./node_modules/@types/bar2/index.d.ts","./index.mts"],"fileInfos":[{"version":"-9556021903-export declare const bar: number;","impliedFormat":1},{"version":"-1622383150-export declare const foo2: number;","impliedFormat":1},{"version":"-7439170493-export declare const bar2: number;","impliedFormat":1},{"version":"-4806968175-import { foo } from \"foo\";\nimport { bar } from \"bar\";\nimport { foo2 } from \"foo2\";\nimport { bar2 } from \"bar2\";\n","signature":"-3531856636-export {};\n","impliedFormat":99}],"root":[4],"options":{"module":100,"strict":true},"fileIdsList":[[1,2,3]],"referencedMap":[[4,1]],"exportedModulesMap":[]},"version":"FakeTSVersion"}
+{"program":{"fileNames":["../../../../a/lib/lib.es2022.full.d.ts","./node_modules/@types/bar/index.d.ts","./node_modules/foo2/index.d.ts","./node_modules/@types/bar2/index.d.ts","./index.mts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-9556021903-export declare const bar: number;","impliedFormat":1},{"version":"-1622383150-export declare const foo2: number;","impliedFormat":1},{"version":"-7439170493-export declare const bar2: number;","impliedFormat":1},{"version":"-4806968175-import { foo } from \"foo\";\nimport { bar } from \"bar\";\nimport { foo2 } from \"foo2\";\nimport { bar2 } from \"bar2\";\n","signature":"-3531856636-export {};\n","impliedFormat":99}],"root":[5],"options":{"module":100,"strict":true},"fileIdsList":[[2,3,4]],"referencedMap":[[5,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[5,[{"file":"./index.mts","start":20,"length":5,"code":7016,"category":1,"messageText":{"messageText":"Could not find a declaration file for module 'foo'. '/home/src/projects/project/node_modules/foo/index.mjs' implicitly has an 'any' type.","category":1,"code":7016,"next":[{"info":{"moduleReference":"foo","mode":99}}]}}]],2,4,3]},"version":"FakeTSVersion"}
//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt]
{
"program": {
"fileNames": [
+ "../../../../a/lib/lib.es2022.full.d.ts",
"./node_modules/@types/bar/index.d.ts",
"./node_modules/foo2/index.d.ts",
"./node_modules/@types/bar2/index.d.ts",
@@ -1262,258 +1275,15 @@ exitCode:: ExitStatus.undefined
]
],
"fileInfos": {
- "./node_modules/@types/bar/index.d.ts": {
+ "../../../../a/lib/lib.es2022.full.d.ts": {
"original": {
- "version": "-9556021903-export declare const bar: number;",
+ "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }",
+ "affectsGlobalScope": true,
"impliedFormat": 1
},
- "version": "-9556021903-export declare const bar: number;",
- "signature": "-9556021903-export declare const bar: number;",
- "impliedFormat": "commonjs"
- },
- "./node_modules/foo2/index.d.ts": {
- "original": {
- "version": "-1622383150-export declare const foo2: number;",
- "impliedFormat": 1
- },
- "version": "-1622383150-export declare const foo2: number;",
- "signature": "-1622383150-export declare const foo2: number;",
- "impliedFormat": "commonjs"
- },
- "./node_modules/@types/bar2/index.d.ts": {
- "original": {
- "version": "-7439170493-export declare const bar2: number;",
- "impliedFormat": 1
- },
- "version": "-7439170493-export declare const bar2: number;",
- "signature": "-7439170493-export declare const bar2: number;",
- "impliedFormat": "commonjs"
- },
- "./index.mts": {
- "original": {
- "version": "-4806968175-import { foo } from \"foo\";\nimport { bar } from \"bar\";\nimport { foo2 } from \"foo2\";\nimport { bar2 } from \"bar2\";\n",
- "signature": "-3531856636-export {};\n",
- "impliedFormat": 99
- },
- "version": "-4806968175-import { foo } from \"foo\";\nimport { bar } from \"bar\";\nimport { foo2 } from \"foo2\";\nimport { bar2 } from \"bar2\";\n",
- "signature": "-3531856636-export {};\n",
- "impliedFormat": "esnext"
- }
- },
- "root": [
- [
- 4,
- "./index.mts"
- ]
- ],
- "options": {
- "module": 100,
- "strict": true
- },
- "referencedMap": {
- "./index.mts": [
- "./node_modules/@types/bar/index.d.ts",
- "./node_modules/foo2/index.d.ts",
- "./node_modules/@types/bar2/index.d.ts"
- ]
- },
- "exportedModulesMap": {}
- },
- "version": "FakeTSVersion",
- "size": 760
-}
-
-
-Change:: update package.json so error is fixed
-
-Input::
-//// [/home/src/projects/project/node_modules/foo/package.json]
-{
- "name": "foo",
- "version": "1.0.0",
- "main": "index.js",
- "types": "index.d.ts",
- "exports": {
- ".": {
- "types": "./index.d.ts",
- "import": "./index.mjs",
- "require": "./index.js"
- }
- }
-}
-
-
-Before running Timeout callback:: count: 1
-14: timerToInvalidateFailedLookupResolutions
-After running Timeout callback:: count: 1
-15: timerToUpdateProgram
-Before running Timeout callback:: count: 1
-15: timerToUpdateProgram
-After running Timeout callback:: count: 0
-Output::
-FileWatcher:: Triggered with /home/src/projects/project/node_modules/foo/package.json 1:: WatchInfo: /home/src/projects/project/node_modules/foo/package.json 2000 undefined File location affecting resolution
-Scheduling invalidateFailedLookup
-Elapsed:: *ms FileWatcher:: Triggered with /home/src/projects/project/node_modules/foo/package.json 1:: WatchInfo: /home/src/projects/project/node_modules/foo/package.json 2000 undefined File location affecting resolution
-Scheduling update
-Synchronizing program
-[[90m12:01:59 AM[0m] File change detected. Starting incremental compilation...
-
-CreatingProgramWith::
- roots: ["/home/src/projects/project/index.mts"]
- options: {"module":100,"moduleResolution":3,"traceResolution":true,"incremental":true,"strict":true,"types":[],"watch":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project/tsconfig.json"}
-File '/home/src/projects/project/node_modules/@types/bar/package.json' exists according to earlier cached lookups.
-File '/home/src/projects/project/node_modules/foo2/package.json' exists according to earlier cached lookups.
-File '/home/src/projects/project/node_modules/@types/bar2/package.json' exists according to earlier cached lookups.
-======== Resolving module 'foo' from '/home/src/projects/project/index.mts'. ========
-Explicitly specified module resolution kind: 'Node16'.
-Resolving in ESM mode with conditions 'import', 'types', 'node'.
-File '/home/src/projects/project/package.json' does not exist according to earlier cached lookups.
-File '/home/src/projects/package.json' does not exist according to earlier cached lookups.
-File '/home/src/package.json' does not exist according to earlier cached lookups.
-File '/home/package.json' does not exist according to earlier cached lookups.
-File '/package.json' does not exist according to earlier cached lookups.
-Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration.
-Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration.
-Found 'package.json' at '/home/src/projects/project/node_modules/foo/package.json'.
-Entering conditional exports.
-Matched 'exports' condition 'types'.
-Using 'exports' subpath '.' with target './index.d.ts'.
-File '/home/src/projects/project/node_modules/foo/index.d.ts' exists - use it as a name resolution result.
-Resolved under condition 'types'.
-Exiting conditional exports.
-Resolving real path for '/home/src/projects/project/node_modules/foo/index.d.ts', result '/home/src/projects/project/node_modules/foo/index.d.ts'.
-======== Module name 'foo' was successfully resolved to '/home/src/projects/project/node_modules/foo/index.d.ts' with Package ID 'foo/index.d.ts@1.0.0'. ========
-Reusing resolution of module 'bar' from '/home/src/projects/project/index.mts' of old program, it was successfully resolved to '/home/src/projects/project/node_modules/@types/bar/index.d.ts' with Package ID '@types/bar/index.d.ts@1.0.0'.
-Reusing resolution of module 'foo2' from '/home/src/projects/project/index.mts' of old program, it was successfully resolved to '/home/src/projects/project/node_modules/foo2/index.d.ts' with Package ID 'foo2/index.d.ts@1.0.0'.
-Reusing resolution of module 'bar2' from '/home/src/projects/project/index.mts' of old program, it was successfully resolved to '/home/src/projects/project/node_modules/@types/bar2/index.d.ts' with Package ID '@types/bar2/index.d.ts@1.0.0'.
-File '/home/src/projects/project/node_modules/foo/package.json' exists according to earlier cached lookups.
-FileWatcher:: Added:: WatchInfo: /home/src/projects/project/node_modules/foo/index.d.ts 250 undefined Source file
-File '/home/src/projects/project/node_modules/@types/bar/package.json' exists according to earlier cached lookups.
-File '/home/src/projects/project/node_modules/foo2/package.json' exists according to earlier cached lookups.
-File '/home/src/projects/project/node_modules/@types/bar2/package.json' exists according to earlier cached lookups.
-File '/a/lib/package.json' does not exist according to earlier cached lookups.
-File '/a/package.json' does not exist according to earlier cached lookups.
-File '/package.json' does not exist according to earlier cached lookups.
-DirectoryWatcher:: Close:: WatchInfo: /home/src/projects/node_modules 1 undefined Failed Lookup Locations
-Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /home/src/projects/node_modules 1 undefined Failed Lookup Locations
-[91merror[0m[90m TS2318: [0mCannot find global type 'Array'.
-
-[91merror[0m[90m TS2318: [0mCannot find global type 'Boolean'.
-
-[91merror[0m[90m TS2318: [0mCannot find global type 'CallableFunction'.
-
-[91merror[0m[90m TS2318: [0mCannot find global type 'Function'.
-
-[91merror[0m[90m TS2318: [0mCannot find global type 'IArguments'.
-
-[91merror[0m[90m TS2318: [0mCannot find global type 'NewableFunction'.
-
-[91merror[0m[90m TS2318: [0mCannot find global type 'Number'.
-
-[91merror[0m[90m TS2318: [0mCannot find global type 'Object'.
-
-[91merror[0m[90m TS2318: [0mCannot find global type 'RegExp'.
-
-[91merror[0m[90m TS2318: [0mCannot find global type 'String'.
-
-[91merror[0m[90m TS6053: [0mFile '/a/lib/lib.es2022.full.d.ts' not found.
- The file is in the program because:
- Default library for target 'es2022'
-
-[[90m12:02:06 AM[0m] Found 11 errors. Watching for file changes.
-
-
-
-Program root files: ["/home/src/projects/project/index.mts"]
-Program options: {"module":100,"moduleResolution":3,"traceResolution":true,"incremental":true,"strict":true,"types":[],"watch":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project/tsconfig.json"}
-Program structureReused: SafeModules
-Program files::
-/home/src/projects/project/node_modules/foo/index.d.ts
-/home/src/projects/project/node_modules/@types/bar/index.d.ts
-/home/src/projects/project/node_modules/foo2/index.d.ts
-/home/src/projects/project/node_modules/@types/bar2/index.d.ts
-/home/src/projects/project/index.mts
-
-No cached semantic diagnostics in the builder::
-
-Shape signatures in builder refreshed for::
-/home/src/projects/project/node_modules/foo/index.d.ts (used version)
-/home/src/projects/project/index.mts (computed .d.ts)
-
-PolledWatches::
-/a/lib/lib.es2022.full.d.ts:
- {"pollingInterval":500}
-
-PolledWatches *deleted*::
-/home/src/projects/node_modules:
- {"pollingInterval":500}
-
-FsWatches::
-/home/src/projects:
- {}
-/home/src/projects/project:
- {}
-/home/src/projects/project/index.mts:
- {}
-/home/src/projects/project/node_modules/@types/bar/index.d.ts:
- {}
-/home/src/projects/project/node_modules/@types/bar/package.json:
- {}
-/home/src/projects/project/node_modules/@types/bar2/index.d.ts:
- {}
-/home/src/projects/project/node_modules/@types/bar2/package.json:
- {}
-/home/src/projects/project/node_modules/bar/package.json:
- {}
-/home/src/projects/project/node_modules/bar2/package.json:
- {}
-/home/src/projects/project/node_modules/foo/index.d.ts: *new*
- {}
-/home/src/projects/project/node_modules/foo/package.json:
- {}
-/home/src/projects/project/node_modules/foo2/index.d.ts:
- {}
-/home/src/projects/project/node_modules/foo2/package.json:
- {}
-/home/src/projects/project/tsconfig.json:
- {}
-
-FsWatchesRecursive::
-/home/src/projects/project/node_modules:
- {}
-
-exitCode:: ExitStatus.undefined
-
-//// [/home/src/projects/project/index.mjs] file written with same contents
-//// [/home/src/projects/project/tsconfig.tsbuildinfo]
-{"program":{"fileNames":["./node_modules/foo/index.d.ts","./node_modules/@types/bar/index.d.ts","./node_modules/foo2/index.d.ts","./node_modules/@types/bar2/index.d.ts","./index.mts"],"fileInfos":[{"version":"-5214938848-export declare const foo: number;","impliedFormat":1},{"version":"-9556021903-export declare const bar: number;","impliedFormat":1},{"version":"-1622383150-export declare const foo2: number;","impliedFormat":1},{"version":"-7439170493-export declare const bar2: number;","impliedFormat":1},{"version":"-4806968175-import { foo } from \"foo\";\nimport { bar } from \"bar\";\nimport { foo2 } from \"foo2\";\nimport { bar2 } from \"bar2\";\n","signature":"-3531856636-export {};\n","impliedFormat":99}],"root":[5],"options":{"module":100,"strict":true},"fileIdsList":[[1,2,3,4]],"referencedMap":[[5,1]],"exportedModulesMap":[]},"version":"FakeTSVersion"}
-
-//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt]
-{
- "program": {
- "fileNames": [
- "./node_modules/foo/index.d.ts",
- "./node_modules/@types/bar/index.d.ts",
- "./node_modules/foo2/index.d.ts",
- "./node_modules/@types/bar2/index.d.ts",
- "./index.mts"
- ],
- "fileNamesList": [
- [
- "./node_modules/foo/index.d.ts",
- "./node_modules/@types/bar/index.d.ts",
- "./node_modules/foo2/index.d.ts",
- "./node_modules/@types/bar2/index.d.ts"
- ]
- ],
- "fileInfos": {
- "./node_modules/foo/index.d.ts": {
- "original": {
- "version": "-5214938848-export declare const foo: number;",
- "impliedFormat": 1
- },
- "version": "-5214938848-export declare const foo: number;",
- "signature": "-5214938848-export declare const foo: number;",
+ "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }",
+ "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }",
+ "affectsGlobalScope": true,
"impliedFormat": "commonjs"
},
"./node_modules/@types/bar/index.d.ts": {
@@ -1564,6 +1334,283 @@ exitCode:: ExitStatus.undefined
"module": 100,
"strict": true
},
+ "referencedMap": {
+ "./index.mts": [
+ "./node_modules/@types/bar/index.d.ts",
+ "./node_modules/foo2/index.d.ts",
+ "./node_modules/@types/bar2/index.d.ts"
+ ]
+ },
+ "exportedModulesMap": {},
+ "semanticDiagnosticsPerFile": [
+ "../../../../a/lib/lib.es2022.full.d.ts",
+ [
+ "./index.mts",
+ [
+ {
+ "file": "./index.mts",
+ "start": 20,
+ "length": 5,
+ "code": 7016,
+ "category": 1,
+ "messageText": {
+ "messageText": "Could not find a declaration file for module 'foo'. '/home/src/projects/project/node_modules/foo/index.mjs' implicitly has an 'any' type.",
+ "category": 1,
+ "code": 7016,
+ "next": [
+ {
+ "info": {
+ "moduleReference": "foo",
+ "mode": 99
+ }
+ }
+ ]
+ }
+ }
+ ]
+ ],
+ "./node_modules/@types/bar/index.d.ts",
+ "./node_modules/@types/bar2/index.d.ts",
+ "./node_modules/foo2/index.d.ts"
+ ]
+ },
+ "version": "FakeTSVersion",
+ "size": 1582
+}
+
+
+Change:: update package.json so error is fixed
+
+Input::
+//// [/home/src/projects/project/node_modules/foo/package.json]
+{
+ "name": "foo",
+ "version": "1.0.0",
+ "main": "index.js",
+ "types": "index.d.ts",
+ "exports": {
+ ".": {
+ "types": "./index.d.ts",
+ "import": "./index.mjs",
+ "require": "./index.js"
+ }
+ }
+}
+
+
+Before running Timeout callback:: count: 1
+14: timerToInvalidateFailedLookupResolutions
+After running Timeout callback:: count: 1
+15: timerToUpdateProgram
+Before running Timeout callback:: count: 1
+15: timerToUpdateProgram
+After running Timeout callback:: count: 0
+Output::
+FileWatcher:: Triggered with /home/src/projects/project/node_modules/foo/package.json 1:: WatchInfo: /home/src/projects/project/node_modules/foo/package.json 2000 undefined File location affecting resolution
+Scheduling invalidateFailedLookup
+Elapsed:: *ms FileWatcher:: Triggered with /home/src/projects/project/node_modules/foo/package.json 1:: WatchInfo: /home/src/projects/project/node_modules/foo/package.json 2000 undefined File location affecting resolution
+Scheduling update
+Synchronizing program
+[[90m12:01:59 AM[0m] File change detected. Starting incremental compilation...
+
+CreatingProgramWith::
+ roots: ["/home/src/projects/project/index.mts"]
+ options: {"module":100,"moduleResolution":3,"traceResolution":true,"incremental":true,"strict":true,"types":[],"watch":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project/tsconfig.json"}
+File '/a/lib/package.json' does not exist according to earlier cached lookups.
+File '/a/package.json' does not exist according to earlier cached lookups.
+File '/package.json' does not exist according to earlier cached lookups.
+File '/home/src/projects/project/node_modules/@types/bar/package.json' exists according to earlier cached lookups.
+File '/home/src/projects/project/node_modules/foo2/package.json' exists according to earlier cached lookups.
+File '/home/src/projects/project/node_modules/@types/bar2/package.json' exists according to earlier cached lookups.
+======== Resolving module 'foo' from '/home/src/projects/project/index.mts'. ========
+Explicitly specified module resolution kind: 'Node16'.
+Resolving in ESM mode with conditions 'import', 'types', 'node'.
+File '/home/src/projects/project/package.json' does not exist according to earlier cached lookups.
+File '/home/src/projects/package.json' does not exist according to earlier cached lookups.
+File '/home/src/package.json' does not exist according to earlier cached lookups.
+File '/home/package.json' does not exist according to earlier cached lookups.
+File '/package.json' does not exist according to earlier cached lookups.
+Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration.
+Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration.
+Found 'package.json' at '/home/src/projects/project/node_modules/foo/package.json'.
+Entering conditional exports.
+Matched 'exports' condition 'types'.
+Using 'exports' subpath '.' with target './index.d.ts'.
+File '/home/src/projects/project/node_modules/foo/index.d.ts' exists - use it as a name resolution result.
+Resolved under condition 'types'.
+Exiting conditional exports.
+Resolving real path for '/home/src/projects/project/node_modules/foo/index.d.ts', result '/home/src/projects/project/node_modules/foo/index.d.ts'.
+======== Module name 'foo' was successfully resolved to '/home/src/projects/project/node_modules/foo/index.d.ts' with Package ID 'foo/index.d.ts@1.0.0'. ========
+Reusing resolution of module 'bar' from '/home/src/projects/project/index.mts' of old program, it was successfully resolved to '/home/src/projects/project/node_modules/@types/bar/index.d.ts' with Package ID '@types/bar/index.d.ts@1.0.0'.
+Reusing resolution of module 'foo2' from '/home/src/projects/project/index.mts' of old program, it was successfully resolved to '/home/src/projects/project/node_modules/foo2/index.d.ts' with Package ID 'foo2/index.d.ts@1.0.0'.
+Reusing resolution of module 'bar2' from '/home/src/projects/project/index.mts' of old program, it was successfully resolved to '/home/src/projects/project/node_modules/@types/bar2/index.d.ts' with Package ID '@types/bar2/index.d.ts@1.0.0'.
+File '/home/src/projects/project/node_modules/foo/package.json' exists according to earlier cached lookups.
+FileWatcher:: Added:: WatchInfo: /home/src/projects/project/node_modules/foo/index.d.ts 250 undefined Source file
+File '/home/src/projects/project/node_modules/@types/bar/package.json' exists according to earlier cached lookups.
+File '/home/src/projects/project/node_modules/foo2/package.json' exists according to earlier cached lookups.
+File '/home/src/projects/project/node_modules/@types/bar2/package.json' exists according to earlier cached lookups.
+File '/a/lib/package.json' does not exist according to earlier cached lookups.
+File '/a/package.json' does not exist according to earlier cached lookups.
+File '/package.json' does not exist according to earlier cached lookups.
+DirectoryWatcher:: Close:: WatchInfo: /home/src/projects/node_modules 1 undefined Failed Lookup Locations
+Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /home/src/projects/node_modules 1 undefined Failed Lookup Locations
+[[90m12:02:06 AM[0m] Found 0 errors. Watching for file changes.
+
+
+
+Program root files: ["/home/src/projects/project/index.mts"]
+Program options: {"module":100,"moduleResolution":3,"traceResolution":true,"incremental":true,"strict":true,"types":[],"watch":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project/tsconfig.json"}
+Program structureReused: SafeModules
+Program files::
+/a/lib/lib.es2022.full.d.ts
+/home/src/projects/project/node_modules/foo/index.d.ts
+/home/src/projects/project/node_modules/@types/bar/index.d.ts
+/home/src/projects/project/node_modules/foo2/index.d.ts
+/home/src/projects/project/node_modules/@types/bar2/index.d.ts
+/home/src/projects/project/index.mts
+
+Semantic diagnostics in builder refreshed for::
+/home/src/projects/project/node_modules/foo/index.d.ts
+/home/src/projects/project/index.mts
+
+Shape signatures in builder refreshed for::
+/home/src/projects/project/node_modules/foo/index.d.ts (used version)
+/home/src/projects/project/index.mts (computed .d.ts)
+
+PolledWatches *deleted*::
+/home/src/projects/node_modules:
+ {"pollingInterval":500}
+
+FsWatches::
+/a/lib/lib.es2022.full.d.ts:
+ {}
+/home/src/projects:
+ {}
+/home/src/projects/project:
+ {}
+/home/src/projects/project/index.mts:
+ {}
+/home/src/projects/project/node_modules/@types/bar/index.d.ts:
+ {}
+/home/src/projects/project/node_modules/@types/bar/package.json:
+ {}
+/home/src/projects/project/node_modules/@types/bar2/index.d.ts:
+ {}
+/home/src/projects/project/node_modules/@types/bar2/package.json:
+ {}
+/home/src/projects/project/node_modules/bar/package.json:
+ {}
+/home/src/projects/project/node_modules/bar2/package.json:
+ {}
+/home/src/projects/project/node_modules/foo/index.d.ts: *new*
+ {}
+/home/src/projects/project/node_modules/foo/package.json:
+ {}
+/home/src/projects/project/node_modules/foo2/index.d.ts:
+ {}
+/home/src/projects/project/node_modules/foo2/package.json:
+ {}
+/home/src/projects/project/tsconfig.json:
+ {}
+
+FsWatchesRecursive::
+/home/src/projects/project/node_modules:
+ {}
+
+exitCode:: ExitStatus.undefined
+
+//// [/home/src/projects/project/index.mjs] file written with same contents
+//// [/home/src/projects/project/tsconfig.tsbuildinfo]
+{"program":{"fileNames":["../../../../a/lib/lib.es2022.full.d.ts","./node_modules/foo/index.d.ts","./node_modules/@types/bar/index.d.ts","./node_modules/foo2/index.d.ts","./node_modules/@types/bar2/index.d.ts","./index.mts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-5214938848-export declare const foo: number;","impliedFormat":1},{"version":"-9556021903-export declare const bar: number;","impliedFormat":1},{"version":"-1622383150-export declare const foo2: number;","impliedFormat":1},{"version":"-7439170493-export declare const bar2: number;","impliedFormat":1},{"version":"-4806968175-import { foo } from \"foo\";\nimport { bar } from \"bar\";\nimport { foo2 } from \"foo2\";\nimport { bar2 } from \"bar2\";\n","signature":"-3531856636-export {};\n","impliedFormat":99}],"root":[6],"options":{"module":100,"strict":true},"fileIdsList":[[2,3,4,5]],"referencedMap":[[6,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,6,3,5,2,4]},"version":"FakeTSVersion"}
+
+//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt]
+{
+ "program": {
+ "fileNames": [
+ "../../../../a/lib/lib.es2022.full.d.ts",
+ "./node_modules/foo/index.d.ts",
+ "./node_modules/@types/bar/index.d.ts",
+ "./node_modules/foo2/index.d.ts",
+ "./node_modules/@types/bar2/index.d.ts",
+ "./index.mts"
+ ],
+ "fileNamesList": [
+ [
+ "./node_modules/foo/index.d.ts",
+ "./node_modules/@types/bar/index.d.ts",
+ "./node_modules/foo2/index.d.ts",
+ "./node_modules/@types/bar2/index.d.ts"
+ ]
+ ],
+ "fileInfos": {
+ "../../../../a/lib/lib.es2022.full.d.ts": {
+ "original": {
+ "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }",
+ "affectsGlobalScope": true,
+ "impliedFormat": 1
+ },
+ "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }",
+ "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }",
+ "affectsGlobalScope": true,
+ "impliedFormat": "commonjs"
+ },
+ "./node_modules/foo/index.d.ts": {
+ "original": {
+ "version": "-5214938848-export declare const foo: number;",
+ "impliedFormat": 1
+ },
+ "version": "-5214938848-export declare const foo: number;",
+ "signature": "-5214938848-export declare const foo: number;",
+ "impliedFormat": "commonjs"
+ },
+ "./node_modules/@types/bar/index.d.ts": {
+ "original": {
+ "version": "-9556021903-export declare const bar: number;",
+ "impliedFormat": 1
+ },
+ "version": "-9556021903-export declare const bar: number;",
+ "signature": "-9556021903-export declare const bar: number;",
+ "impliedFormat": "commonjs"
+ },
+ "./node_modules/foo2/index.d.ts": {
+ "original": {
+ "version": "-1622383150-export declare const foo2: number;",
+ "impliedFormat": 1
+ },
+ "version": "-1622383150-export declare const foo2: number;",
+ "signature": "-1622383150-export declare const foo2: number;",
+ "impliedFormat": "commonjs"
+ },
+ "./node_modules/@types/bar2/index.d.ts": {
+ "original": {
+ "version": "-7439170493-export declare const bar2: number;",
+ "impliedFormat": 1
+ },
+ "version": "-7439170493-export declare const bar2: number;",
+ "signature": "-7439170493-export declare const bar2: number;",
+ "impliedFormat": "commonjs"
+ },
+ "./index.mts": {
+ "original": {
+ "version": "-4806968175-import { foo } from \"foo\";\nimport { bar } from \"bar\";\nimport { foo2 } from \"foo2\";\nimport { bar2 } from \"bar2\";\n",
+ "signature": "-3531856636-export {};\n",
+ "impliedFormat": 99
+ },
+ "version": "-4806968175-import { foo } from \"foo\";\nimport { bar } from \"bar\";\nimport { foo2 } from \"foo2\";\nimport { bar2 } from \"bar2\";\n",
+ "signature": "-3531856636-export {};\n",
+ "impliedFormat": "esnext"
+ }
+ },
+ "root": [
+ [
+ 6,
+ "./index.mts"
+ ]
+ ],
+ "options": {
+ "module": 100,
+ "strict": true
+ },
"referencedMap": {
"./index.mts": [
"./node_modules/foo/index.d.ts",
@@ -1572,10 +1619,18 @@ exitCode:: ExitStatus.undefined
"./node_modules/@types/bar2/index.d.ts"
]
},
- "exportedModulesMap": {}
+ "exportedModulesMap": {},
+ "semanticDiagnosticsPerFile": [
+ "../../../../a/lib/lib.es2022.full.d.ts",
+ "./index.mts",
+ "./node_modules/@types/bar/index.d.ts",
+ "./node_modules/@types/bar2/index.d.ts",
+ "./node_modules/foo/index.d.ts",
+ "./node_modules/foo2/index.d.ts"
+ ]
},
"version": "FakeTSVersion",
- "size": 872
+ "size": 1373
}
@@ -1613,6 +1668,9 @@ Synchronizing program
CreatingProgramWith::
roots: ["/home/src/projects/project/index.mts"]
options: {"module":100,"moduleResolution":3,"traceResolution":true,"incremental":true,"strict":true,"types":[],"watch":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project/tsconfig.json"}
+File '/a/lib/package.json' does not exist according to earlier cached lookups.
+File '/a/package.json' does not exist according to earlier cached lookups.
+File '/package.json' does not exist according to earlier cached lookups.
File '/home/src/projects/project/node_modules/foo/package.json' exists according to earlier cached lookups.
File '/home/src/projects/project/node_modules/@types/bar/package.json' exists according to earlier cached lookups.
File '/home/src/projects/project/node_modules/foo2/package.json' exists according to earlier cached lookups.
@@ -1697,31 +1755,13 @@ File '/package.json' does not exist according to earlier cached lookups.
FileWatcher:: Close:: WatchInfo: /home/src/projects/project/node_modules/@types/bar2/index.d.ts 250 undefined Source file
DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/node_modules 1 undefined Failed Lookup Locations
Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/node_modules 1 undefined Failed Lookup Locations
-[91merror[0m[90m TS2318: [0mCannot find global type 'Array'.
+[96mindex.mts[0m:[93m4[0m:[93m22[0m - [91merror[0m[90m TS7016: [0mCould not find a declaration file for module 'bar2'. '/home/src/projects/project/node_modules/bar2/index.mjs' implicitly has an 'any' type.
+ There are types at '/home/src/projects/project/node_modules/@types/bar2/index.d.ts', but this result could not be resolved when respecting package.json "exports". The '@types/bar2' library may need to update its package.json or typings.
-[91merror[0m[90m TS2318: [0mCannot find global type 'Boolean'.
+[7m4[0m import { bar2 } from "bar2";
+[7m [0m [91m ~~~~~~[0m
-[91merror[0m[90m TS2318: [0mCannot find global type 'CallableFunction'.
-
-[91merror[0m[90m TS2318: [0mCannot find global type 'Function'.
-
-[91merror[0m[90m TS2318: [0mCannot find global type 'IArguments'.
-
-[91merror[0m[90m TS2318: [0mCannot find global type 'NewableFunction'.
-
-[91merror[0m[90m TS2318: [0mCannot find global type 'Number'.
-
-[91merror[0m[90m TS2318: [0mCannot find global type 'Object'.
-
-[91merror[0m[90m TS2318: [0mCannot find global type 'RegExp'.
-
-[91merror[0m[90m TS2318: [0mCannot find global type 'String'.
-
-[91merror[0m[90m TS6053: [0mFile '/a/lib/lib.es2022.full.d.ts' not found.
- The file is in the program because:
- Default library for target 'es2022'
-
-[[90m12:02:20 AM[0m] Found 11 errors. Watching for file changes.
+[[90m12:02:20 AM[0m] Found 1 error. Watching for file changes.
@@ -1729,23 +1769,25 @@ Program root files: ["/home/src/projects/project/index.mts"]
Program options: {"module":100,"moduleResolution":3,"traceResolution":true,"incremental":true,"strict":true,"types":[],"watch":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project/tsconfig.json"}
Program structureReused: SafeModules
Program files::
+/a/lib/lib.es2022.full.d.ts
/home/src/projects/project/node_modules/foo/index.d.ts
/home/src/projects/project/node_modules/@types/bar/index.d.ts
/home/src/projects/project/node_modules/foo2/index.d.ts
/home/src/projects/project/index.mts
-No cached semantic diagnostics in the builder::
+Semantic diagnostics in builder refreshed for::
+/home/src/projects/project/index.mts
Shape signatures in builder refreshed for::
/home/src/projects/project/index.mts (computed .d.ts)
PolledWatches::
-/a/lib/lib.es2022.full.d.ts:
- {"pollingInterval":500}
/home/src/projects/node_modules: *new*
{"pollingInterval":500}
FsWatches::
+/a/lib/lib.es2022.full.d.ts:
+ {}
/home/src/projects:
{}
/home/src/projects/project:
@@ -1785,12 +1827,13 @@ exitCode:: ExitStatus.undefined
//// [/home/src/projects/project/index.mjs] file written with same contents
//// [/home/src/projects/project/tsconfig.tsbuildinfo]
-{"program":{"fileNames":["./node_modules/foo/index.d.ts","./node_modules/@types/bar/index.d.ts","./node_modules/foo2/index.d.ts","./index.mts"],"fileInfos":[{"version":"-5214938848-export declare const foo: number;","impliedFormat":1},{"version":"-9556021903-export declare const bar: number;","impliedFormat":1},{"version":"-1622383150-export declare const foo2: number;","impliedFormat":1},{"version":"-4806968175-import { foo } from \"foo\";\nimport { bar } from \"bar\";\nimport { foo2 } from \"foo2\";\nimport { bar2 } from \"bar2\";\n","signature":"-3531856636-export {};\n","impliedFormat":99}],"root":[4],"options":{"module":100,"strict":true},"fileIdsList":[[1,2,3]],"referencedMap":[[4,1]],"exportedModulesMap":[]},"version":"FakeTSVersion"}
+{"program":{"fileNames":["../../../../a/lib/lib.es2022.full.d.ts","./node_modules/foo/index.d.ts","./node_modules/@types/bar/index.d.ts","./node_modules/foo2/index.d.ts","./index.mts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-5214938848-export declare const foo: number;","impliedFormat":1},{"version":"-9556021903-export declare const bar: number;","impliedFormat":1},{"version":"-1622383150-export declare const foo2: number;","impliedFormat":1},{"version":"-4806968175-import { foo } from \"foo\";\nimport { bar } from \"bar\";\nimport { foo2 } from \"foo2\";\nimport { bar2 } from \"bar2\";\n","signature":"-3531856636-export {};\n","impliedFormat":99}],"root":[5],"options":{"module":100,"strict":true},"fileIdsList":[[2,3,4]],"referencedMap":[[5,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[5,[{"file":"./index.mts","start":104,"length":6,"code":7016,"category":1,"messageText":{"messageText":"Could not find a declaration file for module 'bar2'. '/home/src/projects/project/node_modules/bar2/index.mjs' implicitly has an 'any' type.","category":1,"code":7016,"next":[{"info":{"moduleReference":"bar2","mode":99}}]}}]],3,2,4]},"version":"FakeTSVersion"}
//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt]
{
"program": {
"fileNames": [
+ "../../../../a/lib/lib.es2022.full.d.ts",
"./node_modules/foo/index.d.ts",
"./node_modules/@types/bar/index.d.ts",
"./node_modules/foo2/index.d.ts",
@@ -1804,6 +1847,17 @@ exitCode:: ExitStatus.undefined
]
],
"fileInfos": {
+ "../../../../a/lib/lib.es2022.full.d.ts": {
+ "original": {
+ "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }",
+ "affectsGlobalScope": true,
+ "impliedFormat": 1
+ },
+ "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }",
+ "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }",
+ "affectsGlobalScope": true,
+ "impliedFormat": "commonjs"
+ },
"./node_modules/foo/index.d.ts": {
"original": {
"version": "-5214938848-export declare const foo: number;",
@@ -1844,7 +1898,7 @@ exitCode:: ExitStatus.undefined
},
"root": [
[
- 4,
+ 5,
"./index.mts"
]
],
@@ -1859,10 +1913,41 @@ exitCode:: ExitStatus.undefined
"./node_modules/foo2/index.d.ts"
]
},
- "exportedModulesMap": {}
+ "exportedModulesMap": {},
+ "semanticDiagnosticsPerFile": [
+ "../../../../a/lib/lib.es2022.full.d.ts",
+ [
+ "./index.mts",
+ [
+ {
+ "file": "./index.mts",
+ "start": 104,
+ "length": 6,
+ "code": 7016,
+ "category": 1,
+ "messageText": {
+ "messageText": "Could not find a declaration file for module 'bar2'. '/home/src/projects/project/node_modules/bar2/index.mjs' implicitly has an 'any' type.",
+ "category": 1,
+ "code": 7016,
+ "next": [
+ {
+ "info": {
+ "moduleReference": "bar2",
+ "mode": 99
+ }
+ }
+ ]
+ }
+ }
+ ]
+ ],
+ "./node_modules/@types/bar/index.d.ts",
+ "./node_modules/foo/index.d.ts",
+ "./node_modules/foo2/index.d.ts"
+ ]
},
"version": "FakeTSVersion",
- "size": 751
+ "size": 1577
}
@@ -1902,6 +1987,9 @@ Synchronizing program
CreatingProgramWith::
roots: ["/home/src/projects/project/index.mts"]
options: {"module":100,"moduleResolution":3,"traceResolution":true,"incremental":true,"strict":true,"types":[],"watch":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project/tsconfig.json"}
+File '/a/lib/package.json' does not exist according to earlier cached lookups.
+File '/a/package.json' does not exist according to earlier cached lookups.
+File '/package.json' does not exist according to earlier cached lookups.
File '/home/src/projects/project/node_modules/foo/package.json' exists according to earlier cached lookups.
File '/home/src/projects/project/node_modules/@types/bar/package.json' exists according to earlier cached lookups.
Found 'package.json' at '/home/src/projects/project/node_modules/foo2/package.json'.
@@ -1962,31 +2050,19 @@ File '/a/lib/package.json' does not exist according to earlier cached lookups.
File '/a/package.json' does not exist according to earlier cached lookups.
File '/package.json' does not exist according to earlier cached lookups.
FileWatcher:: Close:: WatchInfo: /home/src/projects/project/node_modules/foo2/index.d.ts 250 undefined Source file
-[91merror[0m[90m TS2318: [0mCannot find global type 'Array'.
+[96mindex.mts[0m:[93m3[0m:[93m22[0m - [91merror[0m[90m TS7016: [0mCould not find a declaration file for module 'foo2'. '/home/src/projects/project/node_modules/foo2/index.mjs' implicitly has an 'any' type.
+ There are types at '/home/src/projects/project/node_modules/foo2/index.d.ts', but this result could not be resolved when respecting package.json "exports". The 'foo2' library may need to update its package.json or typings.
-[91merror[0m[90m TS2318: [0mCannot find global type 'Boolean'.
+[7m3[0m import { foo2 } from "foo2";
+[7m [0m [91m ~~~~~~[0m
-[91merror[0m[90m TS2318: [0mCannot find global type 'CallableFunction'.
+[96mindex.mts[0m:[93m4[0m:[93m22[0m - [91merror[0m[90m TS7016: [0mCould not find a declaration file for module 'bar2'. '/home/src/projects/project/node_modules/bar2/index.mjs' implicitly has an 'any' type.
+ There are types at '/home/src/projects/project/node_modules/@types/bar2/index.d.ts', but this result could not be resolved when respecting package.json "exports". The '@types/bar2' library may need to update its package.json or typings.
-[91merror[0m[90m TS2318: [0mCannot find global type 'Function'.
+[7m4[0m import { bar2 } from "bar2";
+[7m [0m [91m ~~~~~~[0m
-[91merror[0m[90m TS2318: [0mCannot find global type 'IArguments'.
-
-[91merror[0m[90m TS2318: [0mCannot find global type 'NewableFunction'.
-
-[91merror[0m[90m TS2318: [0mCannot find global type 'Number'.
-
-[91merror[0m[90m TS2318: [0mCannot find global type 'Object'.
-
-[91merror[0m[90m TS2318: [0mCannot find global type 'RegExp'.
-
-[91merror[0m[90m TS2318: [0mCannot find global type 'String'.
-
-[91merror[0m[90m TS6053: [0mFile '/a/lib/lib.es2022.full.d.ts' not found.
- The file is in the program because:
- Default library for target 'es2022'
-
-[[90m12:02:35 AM[0m] Found 11 errors. Watching for file changes.
+[[90m12:02:35 AM[0m] Found 2 errors. Watching for file changes.
@@ -1994,22 +2070,24 @@ Program root files: ["/home/src/projects/project/index.mts"]
Program options: {"module":100,"moduleResolution":3,"traceResolution":true,"incremental":true,"strict":true,"types":[],"watch":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project/tsconfig.json"}
Program structureReused: SafeModules
Program files::
+/a/lib/lib.es2022.full.d.ts
/home/src/projects/project/node_modules/foo/index.d.ts
/home/src/projects/project/node_modules/@types/bar/index.d.ts
/home/src/projects/project/index.mts
-No cached semantic diagnostics in the builder::
+Semantic diagnostics in builder refreshed for::
+/home/src/projects/project/index.mts
Shape signatures in builder refreshed for::
/home/src/projects/project/index.mts (computed .d.ts)
PolledWatches::
-/a/lib/lib.es2022.full.d.ts:
- {"pollingInterval":500}
/home/src/projects/node_modules:
{"pollingInterval":500}
FsWatches::
+/a/lib/lib.es2022.full.d.ts:
+ {}
/home/src/projects:
{}
/home/src/projects/project:
@@ -2047,12 +2125,13 @@ exitCode:: ExitStatus.undefined
//// [/home/src/projects/project/index.mjs] file written with same contents
//// [/home/src/projects/project/tsconfig.tsbuildinfo]
-{"program":{"fileNames":["./node_modules/foo/index.d.ts","./node_modules/@types/bar/index.d.ts","./index.mts"],"fileInfos":[{"version":"-5214938848-export declare const foo: number;","impliedFormat":1},{"version":"-9556021903-export declare const bar: number;","impliedFormat":1},{"version":"-4806968175-import { foo } from \"foo\";\nimport { bar } from \"bar\";\nimport { foo2 } from \"foo2\";\nimport { bar2 } from \"bar2\";\n","signature":"-3531856636-export {};\n","impliedFormat":99}],"root":[3],"options":{"module":100,"strict":true},"fileIdsList":[[1,2]],"referencedMap":[[3,1]],"exportedModulesMap":[]},"version":"FakeTSVersion"}
+{"program":{"fileNames":["../../../../a/lib/lib.es2022.full.d.ts","./node_modules/foo/index.d.ts","./node_modules/@types/bar/index.d.ts","./index.mts"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-5214938848-export declare const foo: number;","impliedFormat":1},{"version":"-9556021903-export declare const bar: number;","impliedFormat":1},{"version":"-4806968175-import { foo } from \"foo\";\nimport { bar } from \"bar\";\nimport { foo2 } from \"foo2\";\nimport { bar2 } from \"bar2\";\n","signature":"-3531856636-export {};\n","impliedFormat":99}],"root":[4],"options":{"module":100,"strict":true},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[4,[{"file":"./index.mts","start":75,"length":6,"code":7016,"category":1,"messageText":{"messageText":"Could not find a declaration file for module 'foo2'. '/home/src/projects/project/node_modules/foo2/index.mjs' implicitly has an 'any' type.","category":1,"code":7016,"next":[{"info":{"moduleReference":"foo2","mode":99}}]}},{"file":"./index.mts","start":104,"length":6,"code":7016,"category":1,"messageText":{"messageText":"Could not find a declaration file for module 'bar2'. '/home/src/projects/project/node_modules/bar2/index.mjs' implicitly has an 'any' type.","category":1,"code":7016,"next":[{"info":{"moduleReference":"bar2","mode":99}}]}}]],3,2]},"version":"FakeTSVersion"}
//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt]
{
"program": {
"fileNames": [
+ "../../../../a/lib/lib.es2022.full.d.ts",
"./node_modules/foo/index.d.ts",
"./node_modules/@types/bar/index.d.ts",
"./index.mts"
@@ -2064,6 +2143,17 @@ exitCode:: ExitStatus.undefined
]
],
"fileInfos": {
+ "../../../../a/lib/lib.es2022.full.d.ts": {
+ "original": {
+ "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }",
+ "affectsGlobalScope": true,
+ "impliedFormat": 1
+ },
+ "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }",
+ "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }",
+ "affectsGlobalScope": true,
+ "impliedFormat": "commonjs"
+ },
"./node_modules/foo/index.d.ts": {
"original": {
"version": "-5214938848-export declare const foo: number;",
@@ -2095,7 +2185,7 @@ exitCode:: ExitStatus.undefined
},
"root": [
[
- 3,
+ 4,
"./index.mts"
]
],
@@ -2109,10 +2199,60 @@ exitCode:: ExitStatus.undefined
"./node_modules/@types/bar/index.d.ts"
]
},
- "exportedModulesMap": {}
+ "exportedModulesMap": {},
+ "semanticDiagnosticsPerFile": [
+ "../../../../a/lib/lib.es2022.full.d.ts",
+ [
+ "./index.mts",
+ [
+ {
+ "file": "./index.mts",
+ "start": 75,
+ "length": 6,
+ "code": 7016,
+ "category": 1,
+ "messageText": {
+ "messageText": "Could not find a declaration file for module 'foo2'. '/home/src/projects/project/node_modules/foo2/index.mjs' implicitly has an 'any' type.",
+ "category": 1,
+ "code": 7016,
+ "next": [
+ {
+ "info": {
+ "moduleReference": "foo2",
+ "mode": 99
+ }
+ }
+ ]
+ }
+ },
+ {
+ "file": "./index.mts",
+ "start": 104,
+ "length": 6,
+ "code": 7016,
+ "category": 1,
+ "messageText": {
+ "messageText": "Could not find a declaration file for module 'bar2'. '/home/src/projects/project/node_modules/bar2/index.mjs' implicitly has an 'any' type.",
+ "category": 1,
+ "code": 7016,
+ "next": [
+ {
+ "info": {
+ "moduleReference": "bar2",
+ "mode": 99
+ }
+ }
+ ]
+ }
+ }
+ ]
+ ],
+ "./node_modules/@types/bar/index.d.ts",
+ "./node_modules/foo/index.d.ts"
+ ]
},
"version": "FakeTSVersion",
- "size": 637
+ "size": 1783
}
@@ -2139,6 +2279,9 @@ Synchronizing program
CreatingProgramWith::
roots: ["/home/src/projects/project/index.mts"]
options: {"module":100,"moduleResolution":3,"traceResolution":true,"incremental":true,"strict":true,"types":[],"watch":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project/tsconfig.json"}
+File '/a/lib/package.json' does not exist according to earlier cached lookups.
+File '/a/package.json' does not exist according to earlier cached lookups.
+File '/package.json' does not exist according to earlier cached lookups.
File '/home/src/projects/project/node_modules/foo/package.json' exists according to earlier cached lookups.
File '/home/src/projects/project/node_modules/@types/bar/package.json' exists according to earlier cached lookups.
Reusing resolution of module 'foo' from '/home/src/projects/project/index.mts' of old program, it was successfully resolved to '/home/src/projects/project/node_modules/foo/index.d.ts' with Package ID 'foo/index.d.ts@1.0.0'.
@@ -2229,31 +2372,19 @@ File '/home/src/projects/project/node_modules/@types/bar/package.json' exists ac
File '/a/lib/package.json' does not exist according to earlier cached lookups.
File '/a/package.json' does not exist according to earlier cached lookups.
File '/package.json' does not exist according to earlier cached lookups.
-[91merror[0m[90m TS2318: [0mCannot find global type 'Array'.
+[96mindex.mts[0m:[93m3[0m:[93m22[0m - [91merror[0m[90m TS7016: [0mCould not find a declaration file for module 'foo2'. '/home/src/projects/project/node_modules/foo2/index.mjs' implicitly has an 'any' type.
+ There are types at '/home/src/projects/project/node_modules/foo2/index.d.ts', but this result could not be resolved when respecting package.json "exports". The 'foo2' library may need to update its package.json or typings.
-[91merror[0m[90m TS2318: [0mCannot find global type 'Boolean'.
+[7m3[0m import { foo2 } from "foo2";
+[7m [0m [91m ~~~~~~[0m
-[91merror[0m[90m TS2318: [0mCannot find global type 'CallableFunction'.
+[96mindex.mts[0m:[93m4[0m:[93m22[0m - [91merror[0m[90m TS7016: [0mCould not find a declaration file for module 'bar2'. '/home/src/projects/project/node_modules/bar2/index.mjs' implicitly has an 'any' type.
+ Try `npm i --save-dev @types/bar2` if it exists or add a new declaration (.d.ts) file containing `declare module 'bar2';`
-[91merror[0m[90m TS2318: [0mCannot find global type 'Function'.
+[7m4[0m import { bar2 } from "bar2";
+[7m [0m [91m ~~~~~~[0m
-[91merror[0m[90m TS2318: [0mCannot find global type 'IArguments'.
-
-[91merror[0m[90m TS2318: [0mCannot find global type 'NewableFunction'.
-
-[91merror[0m[90m TS2318: [0mCannot find global type 'Number'.
-
-[91merror[0m[90m TS2318: [0mCannot find global type 'Object'.
-
-[91merror[0m[90m TS2318: [0mCannot find global type 'RegExp'.
-
-[91merror[0m[90m TS2318: [0mCannot find global type 'String'.
-
-[91merror[0m[90m TS6053: [0mFile '/a/lib/lib.es2022.full.d.ts' not found.
- The file is in the program because:
- Default library for target 'es2022'
-
-[[90m12:02:41 AM[0m] Found 11 errors. Watching for file changes.
+[[90m12:02:41 AM[0m] Found 2 errors. Watching for file changes.
@@ -2261,11 +2392,12 @@ Program root files: ["/home/src/projects/project/index.mts"]
Program options: {"module":100,"moduleResolution":3,"traceResolution":true,"incremental":true,"strict":true,"types":[],"watch":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project/tsconfig.json"}
Program structureReused: SafeModules
Program files::
+/a/lib/lib.es2022.full.d.ts
/home/src/projects/project/node_modules/foo/index.d.ts
/home/src/projects/project/node_modules/@types/bar/index.d.ts
/home/src/projects/project/index.mts
-No cached semantic diagnostics in the builder::
+Semantic diagnostics in builder refreshed for::
No shapes updated in the builder::
@@ -2295,6 +2427,9 @@ Synchronizing program
CreatingProgramWith::
roots: ["/home/src/projects/project/index.mts"]
options: {"module":100,"moduleResolution":3,"traceResolution":true,"incremental":true,"strict":true,"types":[],"watch":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project/tsconfig.json"}
+File '/a/lib/package.json' does not exist according to earlier cached lookups.
+File '/a/package.json' does not exist according to earlier cached lookups.
+File '/package.json' does not exist according to earlier cached lookups.
File '/home/src/projects/project/node_modules/foo/package.json' exists according to earlier cached lookups.
File '/home/src/projects/project/node_modules/@types/bar/package.json' exists according to earlier cached lookups.
Reusing resolution of module 'foo' from '/home/src/projects/project/index.mts' of old program, it was successfully resolved to '/home/src/projects/project/node_modules/foo/index.d.ts' with Package ID 'foo/index.d.ts@1.0.0'.
@@ -2366,31 +2501,19 @@ File '/home/src/projects/project/node_modules/@types/bar/package.json' exists ac
File '/a/lib/package.json' does not exist according to earlier cached lookups.
File '/a/package.json' does not exist according to earlier cached lookups.
File '/package.json' does not exist according to earlier cached lookups.
-[91merror[0m[90m TS2318: [0mCannot find global type 'Array'.
+[96mindex.mts[0m:[93m3[0m:[93m22[0m - [91merror[0m[90m TS7016: [0mCould not find a declaration file for module 'foo2'. '/home/src/projects/project/node_modules/foo2/index.mjs' implicitly has an 'any' type.
+ Try `npm i --save-dev @types/foo2` if it exists or add a new declaration (.d.ts) file containing `declare module 'foo2';`
-[91merror[0m[90m TS2318: [0mCannot find global type 'Boolean'.
+[7m3[0m import { foo2 } from "foo2";
+[7m [0m [91m ~~~~~~[0m
-[91merror[0m[90m TS2318: [0mCannot find global type 'CallableFunction'.
+[96mindex.mts[0m:[93m4[0m:[93m22[0m - [91merror[0m[90m TS7016: [0mCould not find a declaration file for module 'bar2'. '/home/src/projects/project/node_modules/bar2/index.mjs' implicitly has an 'any' type.
+ Try `npm i --save-dev @types/bar2` if it exists or add a new declaration (.d.ts) file containing `declare module 'bar2';`
-[91merror[0m[90m TS2318: [0mCannot find global type 'Function'.
+[7m4[0m import { bar2 } from "bar2";
+[7m [0m [91m ~~~~~~[0m
-[91merror[0m[90m TS2318: [0mCannot find global type 'IArguments'.
-
-[91merror[0m[90m TS2318: [0mCannot find global type 'NewableFunction'.
-
-[91merror[0m[90m TS2318: [0mCannot find global type 'Number'.
-
-[91merror[0m[90m TS2318: [0mCannot find global type 'Object'.
-
-[91merror[0m[90m TS2318: [0mCannot find global type 'RegExp'.
-
-[91merror[0m[90m TS2318: [0mCannot find global type 'String'.
-
-[91merror[0m[90m TS6053: [0mFile '/a/lib/lib.es2022.full.d.ts' not found.
- The file is in the program because:
- Default library for target 'es2022'
-
-[[90m12:02:45 AM[0m] Found 11 errors. Watching for file changes.
+[[90m12:02:45 AM[0m] Found 2 errors. Watching for file changes.
@@ -2398,11 +2521,12 @@ Program root files: ["/home/src/projects/project/index.mts"]
Program options: {"module":100,"moduleResolution":3,"traceResolution":true,"incremental":true,"strict":true,"types":[],"watch":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project/tsconfig.json"}
Program structureReused: SafeModules
Program files::
+/a/lib/lib.es2022.full.d.ts
/home/src/projects/project/node_modules/foo/index.d.ts
/home/src/projects/project/node_modules/@types/bar/index.d.ts
/home/src/projects/project/index.mts
-No cached semantic diagnostics in the builder::
+Semantic diagnostics in builder refreshed for::
No shapes updated in the builder::
@@ -2434,6 +2558,9 @@ Synchronizing program
CreatingProgramWith::
roots: ["/home/src/projects/project/index.mts"]
options: {"module":100,"moduleResolution":3,"traceResolution":true,"incremental":true,"strict":true,"types":[],"watch":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project/tsconfig.json"}
+File '/a/lib/package.json' does not exist according to earlier cached lookups.
+File '/a/package.json' does not exist according to earlier cached lookups.
+File '/package.json' does not exist according to earlier cached lookups.
File '/home/src/projects/project/node_modules/foo/package.json' exists according to earlier cached lookups.
File '/home/src/projects/project/node_modules/@types/bar/package.json' exists according to earlier cached lookups.
Reusing resolution of module 'foo' from '/home/src/projects/project/index.mts' of old program, it was successfully resolved to '/home/src/projects/project/node_modules/foo/index.d.ts' with Package ID 'foo/index.d.ts@1.0.0'.
@@ -2511,31 +2638,19 @@ File '/home/src/projects/project/node_modules/@types/bar/package.json' exists ac
File '/a/lib/package.json' does not exist according to earlier cached lookups.
File '/a/package.json' does not exist according to earlier cached lookups.
File '/package.json' does not exist according to earlier cached lookups.
-[91merror[0m[90m TS2318: [0mCannot find global type 'Array'.
+[96mindex.mts[0m:[93m3[0m:[93m22[0m - [91merror[0m[90m TS7016: [0mCould not find a declaration file for module 'foo2'. '/home/src/projects/project/node_modules/foo2/index.mjs' implicitly has an 'any' type.
+ Try `npm i --save-dev @types/foo2` if it exists or add a new declaration (.d.ts) file containing `declare module 'foo2';`
-[91merror[0m[90m TS2318: [0mCannot find global type 'Boolean'.
+[7m3[0m import { foo2 } from "foo2";
+[7m [0m [91m ~~~~~~[0m
-[91merror[0m[90m TS2318: [0mCannot find global type 'CallableFunction'.
+[96mindex.mts[0m:[93m4[0m:[93m22[0m - [91merror[0m[90m TS7016: [0mCould not find a declaration file for module 'bar2'. '/home/src/projects/project/node_modules/bar2/index.mjs' implicitly has an 'any' type.
+ There are types at '/home/src/projects/project/node_modules/@types/bar2/index.d.ts', but this result could not be resolved when respecting package.json "exports". The '@types/bar2' library may need to update its package.json or typings.
-[91merror[0m[90m TS2318: [0mCannot find global type 'Function'.
+[7m4[0m import { bar2 } from "bar2";
+[7m [0m [91m ~~~~~~[0m
-[91merror[0m[90m TS2318: [0mCannot find global type 'IArguments'.
-
-[91merror[0m[90m TS2318: [0mCannot find global type 'NewableFunction'.
-
-[91merror[0m[90m TS2318: [0mCannot find global type 'Number'.
-
-[91merror[0m[90m TS2318: [0mCannot find global type 'Object'.
-
-[91merror[0m[90m TS2318: [0mCannot find global type 'RegExp'.
-
-[91merror[0m[90m TS2318: [0mCannot find global type 'String'.
-
-[91merror[0m[90m TS6053: [0mFile '/a/lib/lib.es2022.full.d.ts' not found.
- The file is in the program because:
- Default library for target 'es2022'
-
-[[90m12:02:49 AM[0m] Found 11 errors. Watching for file changes.
+[[90m12:02:49 AM[0m] Found 2 errors. Watching for file changes.
@@ -2543,11 +2658,12 @@ Program root files: ["/home/src/projects/project/index.mts"]
Program options: {"module":100,"moduleResolution":3,"traceResolution":true,"incremental":true,"strict":true,"types":[],"watch":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project/tsconfig.json"}
Program structureReused: SafeModules
Program files::
+/a/lib/lib.es2022.full.d.ts
/home/src/projects/project/node_modules/foo/index.d.ts
/home/src/projects/project/node_modules/@types/bar/index.d.ts
/home/src/projects/project/index.mts
-No cached semantic diagnostics in the builder::
+Semantic diagnostics in builder refreshed for::
No shapes updated in the builder::
@@ -2579,6 +2695,9 @@ Synchronizing program
CreatingProgramWith::
roots: ["/home/src/projects/project/index.mts"]
options: {"module":100,"moduleResolution":3,"traceResolution":true,"incremental":true,"strict":true,"types":[],"watch":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project/tsconfig.json"}
+File '/a/lib/package.json' does not exist according to earlier cached lookups.
+File '/a/package.json' does not exist according to earlier cached lookups.
+File '/package.json' does not exist according to earlier cached lookups.
File '/home/src/projects/project/node_modules/foo/package.json' exists according to earlier cached lookups.
File '/home/src/projects/project/node_modules/@types/bar/package.json' exists according to earlier cached lookups.
Reusing resolution of module 'foo' from '/home/src/projects/project/index.mts' of old program, it was successfully resolved to '/home/src/projects/project/node_modules/foo/index.d.ts' with Package ID 'foo/index.d.ts@1.0.0'.
@@ -2637,31 +2756,19 @@ File '/home/src/projects/project/node_modules/@types/bar/package.json' exists ac
File '/a/lib/package.json' does not exist according to earlier cached lookups.
File '/a/package.json' does not exist according to earlier cached lookups.
File '/package.json' does not exist according to earlier cached lookups.
-[91merror[0m[90m TS2318: [0mCannot find global type 'Array'.
+[96mindex.mts[0m:[93m3[0m:[93m22[0m - [91merror[0m[90m TS7016: [0mCould not find a declaration file for module 'foo2'. '/home/src/projects/project/node_modules/foo2/index.mjs' implicitly has an 'any' type.
+ There are types at '/home/src/projects/project/node_modules/foo2/index.d.ts', but this result could not be resolved when respecting package.json "exports". The 'foo2' library may need to update its package.json or typings.
-[91merror[0m[90m TS2318: [0mCannot find global type 'Boolean'.
+[7m3[0m import { foo2 } from "foo2";
+[7m [0m [91m ~~~~~~[0m
-[91merror[0m[90m TS2318: [0mCannot find global type 'CallableFunction'.
+[96mindex.mts[0m:[93m4[0m:[93m22[0m - [91merror[0m[90m TS7016: [0mCould not find a declaration file for module 'bar2'. '/home/src/projects/project/node_modules/bar2/index.mjs' implicitly has an 'any' type.
+ There are types at '/home/src/projects/project/node_modules/@types/bar2/index.d.ts', but this result could not be resolved when respecting package.json "exports". The '@types/bar2' library may need to update its package.json or typings.
-[91merror[0m[90m TS2318: [0mCannot find global type 'Function'.
+[7m4[0m import { bar2 } from "bar2";
+[7m [0m [91m ~~~~~~[0m
-[91merror[0m[90m TS2318: [0mCannot find global type 'IArguments'.
-
-[91merror[0m[90m TS2318: [0mCannot find global type 'NewableFunction'.
-
-[91merror[0m[90m TS2318: [0mCannot find global type 'Number'.
-
-[91merror[0m[90m TS2318: [0mCannot find global type 'Object'.
-
-[91merror[0m[90m TS2318: [0mCannot find global type 'RegExp'.
-
-[91merror[0m[90m TS2318: [0mCannot find global type 'String'.
-
-[91merror[0m[90m TS6053: [0mFile '/a/lib/lib.es2022.full.d.ts' not found.
- The file is in the program because:
- Default library for target 'es2022'
-
-[[90m12:02:54 AM[0m] Found 11 errors. Watching for file changes.
+[[90m12:02:54 AM[0m] Found 2 errors. Watching for file changes.
@@ -2669,11 +2776,12 @@ Program root files: ["/home/src/projects/project/index.mts"]
Program options: {"module":100,"moduleResolution":3,"traceResolution":true,"incremental":true,"strict":true,"types":[],"watch":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project/tsconfig.json"}
Program structureReused: SafeModules
Program files::
+/a/lib/lib.es2022.full.d.ts
/home/src/projects/project/node_modules/foo/index.d.ts
/home/src/projects/project/node_modules/@types/bar/index.d.ts
/home/src/projects/project/index.mts
-No cached semantic diagnostics in the builder::
+Semantic diagnostics in builder refreshed for::
No shapes updated in the builder::
diff --git a/tests/baselines/reference/tsserver/moduleResolution/node10Result.js b/tests/baselines/reference/tsserver/moduleResolution/node10Result.js
index f62d7e37748..e68a01cdc22 100644
--- a/tests/baselines/reference/tsserver/moduleResolution/node10Result.js
+++ b/tests/baselines/reference/tsserver/moduleResolution/node10Result.js
@@ -140,7 +140,7 @@ interface Array { length: number; [n: number]: T; }
//// [/home/src/projects/project/tsconfig.json]
{"compilerOptions":{"module":"node16","moduleResolution":"node16","traceResolution":true,"incremental":true,"strict":true,"types":[]},"files":["index.mts"]}
-//// [/a/lib/lib.esnext.full.d.ts]
+//// [/a/lib/lib.es2022.full.d.ts]
///
interface Boolean {}
interface Function {}
@@ -363,6 +363,7 @@ Info seq [hh:mm:ss:mss] File '/home/src/projects/project/node_modules/@types/ba
Info seq [hh:mm:ss:mss] File '/a/lib/package.json' does not exist.
Info seq [hh:mm:ss:mss] File '/a/package.json' does not exist.
Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups.
+Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/lib/lib.es2022.full.d.ts 500 undefined WatchType: Closed Script info
Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/projects 0 undefined Project: /home/src/projects/project/tsconfig.json WatchType: Failed Lookup Locations
Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/projects 0 undefined Project: /home/src/projects/project/tsconfig.json WatchType: Failed Lookup Locations
Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/project/node_modules 1 undefined Project: /home/src/projects/project/tsconfig.json WatchType: Failed Lookup Locations
@@ -377,15 +378,17 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/projects/pro
Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/projects/project/node_modules/foo2/package.json 2000 undefined Project: /home/src/projects/project/tsconfig.json WatchType: File location affecting resolution
Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/projects/project/node_modules/bar2/package.json 2000 undefined Project: /home/src/projects/project/tsconfig.json WatchType: File location affecting resolution
Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/projects/project/node_modules/@types/bar2/package.json 2000 undefined Project: /home/src/projects/project/tsconfig.json WatchType: File location affecting resolution
-Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/lib/lib.es2022.full.d.ts 500 undefined Project: /home/src/projects/project/tsconfig.json WatchType: Missing file
Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/projects/project/tsconfig.json Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms
Info seq [hh:mm:ss:mss] Project '/home/src/projects/project/tsconfig.json' (Configured)
-Info seq [hh:mm:ss:mss] Files (3)
+Info seq [hh:mm:ss:mss] Files (4)
+ /a/lib/lib.es2022.full.d.ts Text-1 "/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }"
/home/src/projects/project/node_modules/foo2/index.d.ts Text-1 "export declare const foo2: number;"
/home/src/projects/project/node_modules/@types/bar2/index.d.ts Text-1 "export declare const bar2: number;"
/home/src/projects/project/index.mts SVC-1-0 "import { foo } from \"foo\";\nimport { bar } from \"bar\";\nimport { foo2 } from \"foo2\";\nimport { bar2 } from \"bar2\";\n"
+ ../../../../a/lib/lib.es2022.full.d.ts
+ Default library for target 'es2022'
node_modules/foo2/index.d.ts
Imported via "foo2" from file 'index.mts' with packageId 'foo2/index.d.ts@1.0.0'
File is CommonJS module because 'node_modules/foo2/package.json' does not have field "type"
@@ -423,8 +426,8 @@ Info seq [hh:mm:ss:mss] event:
"tsSize": 112,
"tsx": 0,
"tsxSize": 0,
- "dts": 2,
- "dtsSize": 68,
+ "dts": 3,
+ "dtsSize": 402,
"deferred": 0,
"deferredSize": 0
},
@@ -461,67 +464,11 @@ Info seq [hh:mm:ss:mss] event:
"body": {
"triggerFile": "/home/src/projects/project/index.mts",
"configFile": "/home/src/projects/project/tsconfig.json",
- "diagnostics": [
- {
- "text": "File '/a/lib/lib.es2022.full.d.ts' not found.\n The file is in the program because:\n Default library for target 'es2022'",
- "code": 6053,
- "category": "error"
- },
- {
- "text": "Cannot find global type 'Array'.",
- "code": 2318,
- "category": "error"
- },
- {
- "text": "Cannot find global type 'Boolean'.",
- "code": 2318,
- "category": "error"
- },
- {
- "text": "Cannot find global type 'CallableFunction'.",
- "code": 2318,
- "category": "error"
- },
- {
- "text": "Cannot find global type 'Function'.",
- "code": 2318,
- "category": "error"
- },
- {
- "text": "Cannot find global type 'IArguments'.",
- "code": 2318,
- "category": "error"
- },
- {
- "text": "Cannot find global type 'NewableFunction'.",
- "code": 2318,
- "category": "error"
- },
- {
- "text": "Cannot find global type 'Number'.",
- "code": 2318,
- "category": "error"
- },
- {
- "text": "Cannot find global type 'Object'.",
- "code": 2318,
- "category": "error"
- },
- {
- "text": "Cannot find global type 'RegExp'.",
- "code": 2318,
- "category": "error"
- },
- {
- "text": "Cannot find global type 'String'.",
- "code": 2318,
- "category": "error"
- }
- ]
+ "diagnostics": []
}
}
Info seq [hh:mm:ss:mss] Project '/home/src/projects/project/tsconfig.json' (Configured)
-Info seq [hh:mm:ss:mss] Files (3)
+Info seq [hh:mm:ss:mss] Files (4)
Info seq [hh:mm:ss:mss] -----------------------------------------------
Info seq [hh:mm:ss:mss] Open files:
@@ -534,12 +481,12 @@ Info seq [hh:mm:ss:mss] response:
After request
PolledWatches::
-/a/lib/lib.es2022.full.d.ts: *new*
- {"pollingInterval":500}
/home/src/projects/node_modules: *new*
{"pollingInterval":500}
FsWatches::
+/a/lib/lib.es2022.full.d.ts: *new*
+ {}
/home/src/projects: *new*
{}
/home/src/projects/project: *new*
@@ -769,6 +716,9 @@ Before running Timeout callback:: count: 3
Info seq [hh:mm:ss:mss] Running: /home/src/projects/project/tsconfig.json
Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/projects/project/tsconfig.json
+Info seq [hh:mm:ss:mss] File '/a/lib/package.json' does not exist according to earlier cached lookups.
+Info seq [hh:mm:ss:mss] File '/a/package.json' does not exist according to earlier cached lookups.
+Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups.
Info seq [hh:mm:ss:mss] File '/home/src/projects/project/node_modules/foo2/package.json' exists according to earlier cached lookups.
Info seq [hh:mm:ss:mss] Found 'package.json' at '/home/src/projects/project/node_modules/@types/bar2/package.json'.
Info seq [hh:mm:ss:mss] Reusing resolution of module 'foo' from '/home/src/projects/project/index.mts' of old program, it was successfully resolved to '/home/src/projects/project/node_modules/foo/index.mjs' with Package ID 'foo/index.mjs@1.0.0'.
@@ -861,7 +811,8 @@ Info seq [hh:mm:ss:mss] File '/a/package.json' does not exist according to earl
Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups.
Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/projects/project/tsconfig.json Version: 2 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms
Info seq [hh:mm:ss:mss] Project '/home/src/projects/project/tsconfig.json' (Configured)
-Info seq [hh:mm:ss:mss] Files (3)
+Info seq [hh:mm:ss:mss] Files (4)
+ /a/lib/lib.es2022.full.d.ts Text-1 "/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }"
/home/src/projects/project/node_modules/foo2/index.d.ts Text-1 "export declare const foo2: number;"
/home/src/projects/project/node_modules/@types/bar2/index.d.ts Text-1 "export declare const bar2: number;"
/home/src/projects/project/index.mts SVC-1-0 "import { foo } from \"foo\";\nimport { bar } from \"bar\";\nimport { foo2 } from \"foo2\";\nimport { bar2 } from \"bar2\";\n"
@@ -870,7 +821,7 @@ Info seq [hh:mm:ss:mss] -----------------------------------------------
Info seq [hh:mm:ss:mss] Running: *ensureProjectForOpenFiles*
Info seq [hh:mm:ss:mss] Before ensureProjectForOpenFiles:
Info seq [hh:mm:ss:mss] Project '/home/src/projects/project/tsconfig.json' (Configured)
-Info seq [hh:mm:ss:mss] Files (3)
+Info seq [hh:mm:ss:mss] Files (4)
Info seq [hh:mm:ss:mss] -----------------------------------------------
Info seq [hh:mm:ss:mss] Open files:
@@ -878,7 +829,7 @@ Info seq [hh:mm:ss:mss] FileName: /home/src/projects/project/index.mts Project
Info seq [hh:mm:ss:mss] Projects: /home/src/projects/project/tsconfig.json
Info seq [hh:mm:ss:mss] After ensureProjectForOpenFiles:
Info seq [hh:mm:ss:mss] Project '/home/src/projects/project/tsconfig.json' (Configured)
-Info seq [hh:mm:ss:mss] Files (3)
+Info seq [hh:mm:ss:mss] Files (4)
Info seq [hh:mm:ss:mss] -----------------------------------------------
Info seq [hh:mm:ss:mss] Open files:
@@ -928,6 +879,9 @@ Before running Timeout callback:: count: 2
Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles*
Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/projects/project/tsconfig.json
+Info seq [hh:mm:ss:mss] File '/a/lib/package.json' does not exist according to earlier cached lookups.
+Info seq [hh:mm:ss:mss] File '/a/package.json' does not exist according to earlier cached lookups.
+Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups.
Info seq [hh:mm:ss:mss] Found 'package.json' at '/home/src/projects/project/node_modules/foo2/package.json'.
Info seq [hh:mm:ss:mss] File '/home/src/projects/project/node_modules/@types/bar2/package.json' exists according to earlier cached lookups.
Info seq [hh:mm:ss:mss] ======== Resolving module 'foo' from '/home/src/projects/project/index.mts'. ========
@@ -1001,7 +955,8 @@ Info seq [hh:mm:ss:mss] File '/a/package.json' does not exist according to earl
Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups.
Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/projects/project/tsconfig.json Version: 3 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms
Info seq [hh:mm:ss:mss] Project '/home/src/projects/project/tsconfig.json' (Configured)
-Info seq [hh:mm:ss:mss] Files (3)
+Info seq [hh:mm:ss:mss] Files (4)
+ /a/lib/lib.es2022.full.d.ts Text-1 "/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }"
/home/src/projects/project/node_modules/foo2/index.d.ts Text-1 "export declare const foo2: number;"
/home/src/projects/project/node_modules/@types/bar2/index.d.ts Text-1 "export declare const bar2: number;"
/home/src/projects/project/index.mts SVC-1-0 "import { foo } from \"foo\";\nimport { bar } from \"bar\";\nimport { foo2 } from \"foo2\";\nimport { bar2 } from \"bar2\";\n"
@@ -1090,7 +1045,7 @@ Before running Timeout callback:: count: 2
Info seq [hh:mm:ss:mss] Running: *ensureProjectForOpenFiles*
Info seq [hh:mm:ss:mss] Before ensureProjectForOpenFiles:
Info seq [hh:mm:ss:mss] Project '/home/src/projects/project/tsconfig.json' (Configured)
-Info seq [hh:mm:ss:mss] Files (3)
+Info seq [hh:mm:ss:mss] Files (4)
Info seq [hh:mm:ss:mss] -----------------------------------------------
Info seq [hh:mm:ss:mss] Open files:
@@ -1098,7 +1053,7 @@ Info seq [hh:mm:ss:mss] FileName: /home/src/projects/project/index.mts Project
Info seq [hh:mm:ss:mss] Projects: /home/src/projects/project/tsconfig.json
Info seq [hh:mm:ss:mss] After ensureProjectForOpenFiles:
Info seq [hh:mm:ss:mss] Project '/home/src/projects/project/tsconfig.json' (Configured)
-Info seq [hh:mm:ss:mss] Files (3)
+Info seq [hh:mm:ss:mss] Files (4)
Info seq [hh:mm:ss:mss] -----------------------------------------------
Info seq [hh:mm:ss:mss] Open files:
@@ -1150,6 +1105,9 @@ export declare const bar: number;
Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles*
Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/projects/project/tsconfig.json
+Info seq [hh:mm:ss:mss] File '/a/lib/package.json' does not exist according to earlier cached lookups.
+Info seq [hh:mm:ss:mss] File '/a/package.json' does not exist according to earlier cached lookups.
+Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups.
Info seq [hh:mm:ss:mss] File '/home/src/projects/project/node_modules/foo2/package.json' exists according to earlier cached lookups.
Info seq [hh:mm:ss:mss] Found 'package.json' at '/home/src/projects/project/node_modules/@types/bar2/package.json'.
Info seq [hh:mm:ss:mss] Reusing resolution of module 'foo' from '/home/src/projects/project/index.mts' of old program, it was successfully resolved to '/home/src/projects/project/node_modules/foo/index.mjs' with Package ID 'foo/index.mjs@1.0.0'.
@@ -1229,7 +1187,8 @@ Info seq [hh:mm:ss:mss] File '/a/package.json' does not exist according to earl
Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups.
Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/projects/project/tsconfig.json Version: 4 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms
Info seq [hh:mm:ss:mss] Project '/home/src/projects/project/tsconfig.json' (Configured)
-Info seq [hh:mm:ss:mss] Files (3)
+Info seq [hh:mm:ss:mss] Files (4)
+ /a/lib/lib.es2022.full.d.ts Text-1 "/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }"
/home/src/projects/project/node_modules/foo2/index.d.ts Text-1 "export declare const foo2: number;"
/home/src/projects/project/node_modules/@types/bar2/index.d.ts Text-1 "export declare const bar2: number;"
/home/src/projects/project/index.mts SVC-1-0 "import { foo } from \"foo\";\nimport { bar } from \"bar\";\nimport { foo2 } from \"foo2\";\nimport { bar2 } from \"bar2\";\n"
@@ -1318,7 +1277,7 @@ Before running Timeout callback:: count: 2
Info seq [hh:mm:ss:mss] Running: *ensureProjectForOpenFiles*
Info seq [hh:mm:ss:mss] Before ensureProjectForOpenFiles:
Info seq [hh:mm:ss:mss] Project '/home/src/projects/project/tsconfig.json' (Configured)
-Info seq [hh:mm:ss:mss] Files (3)
+Info seq [hh:mm:ss:mss] Files (4)
Info seq [hh:mm:ss:mss] -----------------------------------------------
Info seq [hh:mm:ss:mss] Open files:
@@ -1326,7 +1285,7 @@ Info seq [hh:mm:ss:mss] FileName: /home/src/projects/project/index.mts Project
Info seq [hh:mm:ss:mss] Projects: /home/src/projects/project/tsconfig.json
Info seq [hh:mm:ss:mss] After ensureProjectForOpenFiles:
Info seq [hh:mm:ss:mss] Project '/home/src/projects/project/tsconfig.json' (Configured)
-Info seq [hh:mm:ss:mss] Files (3)
+Info seq [hh:mm:ss:mss] Files (4)
Info seq [hh:mm:ss:mss] -----------------------------------------------
Info seq [hh:mm:ss:mss] Open files:
@@ -1378,6 +1337,9 @@ export declare const foo: number;
Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles*
Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/projects/project/tsconfig.json
+Info seq [hh:mm:ss:mss] File '/a/lib/package.json' does not exist according to earlier cached lookups.
+Info seq [hh:mm:ss:mss] File '/a/package.json' does not exist according to earlier cached lookups.
+Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups.
Info seq [hh:mm:ss:mss] Found 'package.json' at '/home/src/projects/project/node_modules/foo2/package.json'.
Info seq [hh:mm:ss:mss] File '/home/src/projects/project/node_modules/@types/bar2/package.json' exists according to earlier cached lookups.
Info seq [hh:mm:ss:mss] ======== Resolving module 'foo' from '/home/src/projects/project/index.mts'. ========
@@ -1438,7 +1400,8 @@ Info seq [hh:mm:ss:mss] File '/a/package.json' does not exist according to earl
Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups.
Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/projects/project/tsconfig.json Version: 5 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms
Info seq [hh:mm:ss:mss] Project '/home/src/projects/project/tsconfig.json' (Configured)
-Info seq [hh:mm:ss:mss] Files (3)
+Info seq [hh:mm:ss:mss] Files (4)
+ /a/lib/lib.es2022.full.d.ts Text-1 "/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }"
/home/src/projects/project/node_modules/foo2/index.d.ts Text-1 "export declare const foo2: number;"
/home/src/projects/project/node_modules/@types/bar2/index.d.ts Text-1 "export declare const bar2: number;"
/home/src/projects/project/index.mts SVC-1-0 "import { foo } from \"foo\";\nimport { bar } from \"bar\";\nimport { foo2 } from \"foo2\";\nimport { bar2 } from \"bar2\";\n"
@@ -1527,7 +1490,7 @@ Before running Timeout callback:: count: 2
Info seq [hh:mm:ss:mss] Running: *ensureProjectForOpenFiles*
Info seq [hh:mm:ss:mss] Before ensureProjectForOpenFiles:
Info seq [hh:mm:ss:mss] Project '/home/src/projects/project/tsconfig.json' (Configured)
-Info seq [hh:mm:ss:mss] Files (3)
+Info seq [hh:mm:ss:mss] Files (4)
Info seq [hh:mm:ss:mss] -----------------------------------------------
Info seq [hh:mm:ss:mss] Open files:
@@ -1535,7 +1498,7 @@ Info seq [hh:mm:ss:mss] FileName: /home/src/projects/project/index.mts Project
Info seq [hh:mm:ss:mss] Projects: /home/src/projects/project/tsconfig.json
Info seq [hh:mm:ss:mss] After ensureProjectForOpenFiles:
Info seq [hh:mm:ss:mss] Project '/home/src/projects/project/tsconfig.json' (Configured)
-Info seq [hh:mm:ss:mss] Files (3)
+Info seq [hh:mm:ss:mss] Files (4)
Info seq [hh:mm:ss:mss] -----------------------------------------------
Info seq [hh:mm:ss:mss] Open files:
@@ -1595,6 +1558,9 @@ Before running Timeout callback:: count: 2
Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles*
Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/projects/project/tsconfig.json
+Info seq [hh:mm:ss:mss] File '/a/lib/package.json' does not exist according to earlier cached lookups.
+Info seq [hh:mm:ss:mss] File '/a/package.json' does not exist according to earlier cached lookups.
+Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups.
Info seq [hh:mm:ss:mss] File '/home/src/projects/project/node_modules/foo2/package.json' exists according to earlier cached lookups.
Info seq [hh:mm:ss:mss] File '/home/src/projects/project/node_modules/@types/bar2/package.json' exists according to earlier cached lookups.
Info seq [hh:mm:ss:mss] Reusing resolution of module 'foo' from '/home/src/projects/project/index.mts' of old program, it was successfully resolved to '/home/src/projects/project/node_modules/foo/index.mjs' with Package ID 'foo/index.mjs@1.0.0'.
@@ -1637,13 +1603,16 @@ Info seq [hh:mm:ss:mss] File '/a/package.json' does not exist according to earl
Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups.
Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/projects/project/tsconfig.json Version: 6 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms
Info seq [hh:mm:ss:mss] Project '/home/src/projects/project/tsconfig.json' (Configured)
-Info seq [hh:mm:ss:mss] Files (4)
+Info seq [hh:mm:ss:mss] Files (5)
+ /a/lib/lib.es2022.full.d.ts Text-1 "/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }"
/home/src/projects/project/node_modules/@types/bar/index.d.ts Text-1 "export declare const bar: number;"
/home/src/projects/project/node_modules/foo2/index.d.ts Text-1 "export declare const foo2: number;"
/home/src/projects/project/node_modules/@types/bar2/index.d.ts Text-1 "export declare const bar2: number;"
/home/src/projects/project/index.mts SVC-1-0 "import { foo } from \"foo\";\nimport { bar } from \"bar\";\nimport { foo2 } from \"foo2\";\nimport { bar2 } from \"bar2\";\n"
+ ../../../../a/lib/lib.es2022.full.d.ts
+ Default library for target 'es2022'
node_modules/@types/bar/index.d.ts
Imported via "bar" from file 'index.mts' with packageId '@types/bar/index.d.ts@1.0.0'
File is CommonJS module because 'node_modules/@types/bar/package.json' does not have field "type"
@@ -1727,7 +1696,7 @@ Before running Timeout callback:: count: 2
Info seq [hh:mm:ss:mss] Running: *ensureProjectForOpenFiles*
Info seq [hh:mm:ss:mss] Before ensureProjectForOpenFiles:
Info seq [hh:mm:ss:mss] Project '/home/src/projects/project/tsconfig.json' (Configured)
-Info seq [hh:mm:ss:mss] Files (4)
+Info seq [hh:mm:ss:mss] Files (5)
Info seq [hh:mm:ss:mss] -----------------------------------------------
Info seq [hh:mm:ss:mss] Open files:
@@ -1735,7 +1704,7 @@ Info seq [hh:mm:ss:mss] FileName: /home/src/projects/project/index.mts Project
Info seq [hh:mm:ss:mss] Projects: /home/src/projects/project/tsconfig.json
Info seq [hh:mm:ss:mss] After ensureProjectForOpenFiles:
Info seq [hh:mm:ss:mss] Project '/home/src/projects/project/tsconfig.json' (Configured)
-Info seq [hh:mm:ss:mss] Files (4)
+Info seq [hh:mm:ss:mss] Files (5)
Info seq [hh:mm:ss:mss] -----------------------------------------------
Info seq [hh:mm:ss:mss] Open files:
@@ -1797,6 +1766,9 @@ Before running Timeout callback:: count: 2
Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles*
Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/projects/project/tsconfig.json
+Info seq [hh:mm:ss:mss] File '/a/lib/package.json' does not exist according to earlier cached lookups.
+Info seq [hh:mm:ss:mss] File '/a/package.json' does not exist according to earlier cached lookups.
+Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups.
Info seq [hh:mm:ss:mss] File '/home/src/projects/project/node_modules/@types/bar/package.json' exists according to earlier cached lookups.
Info seq [hh:mm:ss:mss] File '/home/src/projects/project/node_modules/foo2/package.json' exists according to earlier cached lookups.
Info seq [hh:mm:ss:mss] File '/home/src/projects/project/node_modules/@types/bar2/package.json' exists according to earlier cached lookups.
@@ -1833,7 +1805,8 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /home/src/project
Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /home/src/projects/node_modules 1 undefined Project: /home/src/projects/project/tsconfig.json WatchType: Failed Lookup Locations
Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/projects/project/tsconfig.json Version: 7 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms
Info seq [hh:mm:ss:mss] Project '/home/src/projects/project/tsconfig.json' (Configured)
-Info seq [hh:mm:ss:mss] Files (5)
+Info seq [hh:mm:ss:mss] Files (6)
+ /a/lib/lib.es2022.full.d.ts Text-1 "/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }"
/home/src/projects/project/node_modules/foo/index.d.ts Text-1 "export declare const foo: number;"
/home/src/projects/project/node_modules/@types/bar/index.d.ts Text-1 "export declare const bar: number;"
/home/src/projects/project/node_modules/foo2/index.d.ts Text-1 "export declare const foo2: number;"
@@ -1841,6 +1814,8 @@ Info seq [hh:mm:ss:mss] Files (5)
/home/src/projects/project/index.mts SVC-1-0 "import { foo } from \"foo\";\nimport { bar } from \"bar\";\nimport { foo2 } from \"foo2\";\nimport { bar2 } from \"bar2\";\n"
+ ../../../../a/lib/lib.es2022.full.d.ts
+ Default library for target 'es2022'
node_modules/foo/index.d.ts
Imported via "foo" from file 'index.mts' with packageId 'foo/index.d.ts@1.0.0'
File is CommonJS module because 'node_modules/foo/package.json' does not have field "type"
@@ -1870,15 +1845,13 @@ Info seq [hh:mm:ss:mss] event:
After running Timeout callback:: count: 1
24: *ensureProjectForOpenFiles*
-PolledWatches::
-/a/lib/lib.es2022.full.d.ts:
- {"pollingInterval":500}
-
PolledWatches *deleted*::
/home/src/projects/node_modules:
{"pollingInterval":500}
FsWatches::
+/a/lib/lib.es2022.full.d.ts:
+ {}
/home/src/projects:
{}
/home/src/projects/project:
@@ -1945,7 +1918,7 @@ Before running Timeout callback:: count: 2
Info seq [hh:mm:ss:mss] Running: *ensureProjectForOpenFiles*
Info seq [hh:mm:ss:mss] Before ensureProjectForOpenFiles:
Info seq [hh:mm:ss:mss] Project '/home/src/projects/project/tsconfig.json' (Configured)
-Info seq [hh:mm:ss:mss] Files (5)
+Info seq [hh:mm:ss:mss] Files (6)
Info seq [hh:mm:ss:mss] -----------------------------------------------
Info seq [hh:mm:ss:mss] Open files:
@@ -1953,7 +1926,7 @@ Info seq [hh:mm:ss:mss] FileName: /home/src/projects/project/index.mts Project
Info seq [hh:mm:ss:mss] Projects: /home/src/projects/project/tsconfig.json
Info seq [hh:mm:ss:mss] After ensureProjectForOpenFiles:
Info seq [hh:mm:ss:mss] Project '/home/src/projects/project/tsconfig.json' (Configured)
-Info seq [hh:mm:ss:mss] Files (5)
+Info seq [hh:mm:ss:mss] Files (6)
Info seq [hh:mm:ss:mss] -----------------------------------------------
Info seq [hh:mm:ss:mss] Open files:
@@ -2012,6 +1985,9 @@ Before running Timeout callback:: count: 2
Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles*
Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/projects/project/tsconfig.json
+Info seq [hh:mm:ss:mss] File '/a/lib/package.json' does not exist according to earlier cached lookups.
+Info seq [hh:mm:ss:mss] File '/a/package.json' does not exist according to earlier cached lookups.
+Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups.
Info seq [hh:mm:ss:mss] File '/home/src/projects/project/node_modules/foo/package.json' exists according to earlier cached lookups.
Info seq [hh:mm:ss:mss] File '/home/src/projects/project/node_modules/@types/bar/package.json' exists according to earlier cached lookups.
Info seq [hh:mm:ss:mss] File '/home/src/projects/project/node_modules/foo2/package.json' exists according to earlier cached lookups.
@@ -2097,13 +2073,16 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/project
Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/node_modules 1 undefined Project: /home/src/projects/project/tsconfig.json WatchType: Failed Lookup Locations
Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/projects/project/tsconfig.json Version: 8 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms
Info seq [hh:mm:ss:mss] Project '/home/src/projects/project/tsconfig.json' (Configured)
-Info seq [hh:mm:ss:mss] Files (4)
+Info seq [hh:mm:ss:mss] Files (5)
+ /a/lib/lib.es2022.full.d.ts Text-1 "/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }"
/home/src/projects/project/node_modules/foo/index.d.ts Text-1 "export declare const foo: number;"
/home/src/projects/project/node_modules/@types/bar/index.d.ts Text-1 "export declare const bar: number;"
/home/src/projects/project/node_modules/foo2/index.d.ts Text-1 "export declare const foo2: number;"
/home/src/projects/project/index.mts SVC-1-0 "import { foo } from \"foo\";\nimport { bar } from \"bar\";\nimport { foo2 } from \"foo2\";\nimport { bar2 } from \"bar2\";\n"
+ ../../../../a/lib/lib.es2022.full.d.ts
+ Default library for target 'es2022'
node_modules/foo/index.d.ts
Imported via "foo" from file 'index.mts' with packageId 'foo/index.d.ts@1.0.0'
File is CommonJS module because 'node_modules/foo/package.json' does not have field "type"
@@ -2131,12 +2110,12 @@ After running Timeout callback:: count: 1
28: *ensureProjectForOpenFiles*
PolledWatches::
-/a/lib/lib.es2022.full.d.ts:
- {"pollingInterval":500}
/home/src/projects/node_modules: *new*
{"pollingInterval":500}
FsWatches::
+/a/lib/lib.es2022.full.d.ts:
+ {}
/home/src/projects:
{}
/home/src/projects/project:
@@ -2217,7 +2196,7 @@ Before running Timeout callback:: count: 2
Info seq [hh:mm:ss:mss] Running: *ensureProjectForOpenFiles*
Info seq [hh:mm:ss:mss] Before ensureProjectForOpenFiles:
Info seq [hh:mm:ss:mss] Project '/home/src/projects/project/tsconfig.json' (Configured)
-Info seq [hh:mm:ss:mss] Files (4)
+Info seq [hh:mm:ss:mss] Files (5)
Info seq [hh:mm:ss:mss] -----------------------------------------------
Info seq [hh:mm:ss:mss] Open files:
@@ -2225,7 +2204,7 @@ Info seq [hh:mm:ss:mss] FileName: /home/src/projects/project/index.mts Project
Info seq [hh:mm:ss:mss] Projects: /home/src/projects/project/tsconfig.json
Info seq [hh:mm:ss:mss] After ensureProjectForOpenFiles:
Info seq [hh:mm:ss:mss] Project '/home/src/projects/project/tsconfig.json' (Configured)
-Info seq [hh:mm:ss:mss] Files (4)
+Info seq [hh:mm:ss:mss] Files (5)
Info seq [hh:mm:ss:mss] -----------------------------------------------
Info seq [hh:mm:ss:mss] Open files:
@@ -2286,6 +2265,9 @@ Before running Timeout callback:: count: 2
Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles*
Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/projects/project/tsconfig.json
+Info seq [hh:mm:ss:mss] File '/a/lib/package.json' does not exist according to earlier cached lookups.
+Info seq [hh:mm:ss:mss] File '/a/package.json' does not exist according to earlier cached lookups.
+Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups.
Info seq [hh:mm:ss:mss] File '/home/src/projects/project/node_modules/foo/package.json' exists according to earlier cached lookups.
Info seq [hh:mm:ss:mss] File '/home/src/projects/project/node_modules/@types/bar/package.json' exists according to earlier cached lookups.
Info seq [hh:mm:ss:mss] Found 'package.json' at '/home/src/projects/project/node_modules/foo2/package.json'.
@@ -2347,12 +2329,15 @@ Info seq [hh:mm:ss:mss] File '/a/package.json' does not exist according to earl
Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups.
Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/projects/project/tsconfig.json Version: 9 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms
Info seq [hh:mm:ss:mss] Project '/home/src/projects/project/tsconfig.json' (Configured)
-Info seq [hh:mm:ss:mss] Files (3)
+Info seq [hh:mm:ss:mss] Files (4)
+ /a/lib/lib.es2022.full.d.ts Text-1 "/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }"
/home/src/projects/project/node_modules/foo/index.d.ts Text-1 "export declare const foo: number;"
/home/src/projects/project/node_modules/@types/bar/index.d.ts Text-1 "export declare const bar: number;"
/home/src/projects/project/index.mts SVC-1-0 "import { foo } from \"foo\";\nimport { bar } from \"bar\";\nimport { foo2 } from \"foo2\";\nimport { bar2 } from \"bar2\";\n"
+ ../../../../a/lib/lib.es2022.full.d.ts
+ Default library for target 'es2022'
node_modules/foo/index.d.ts
Imported via "foo" from file 'index.mts' with packageId 'foo/index.d.ts@1.0.0'
File is CommonJS module because 'node_modules/foo/package.json' does not have field "type"
@@ -2446,7 +2431,7 @@ Before running Timeout callback:: count: 2
Info seq [hh:mm:ss:mss] Running: *ensureProjectForOpenFiles*
Info seq [hh:mm:ss:mss] Before ensureProjectForOpenFiles:
Info seq [hh:mm:ss:mss] Project '/home/src/projects/project/tsconfig.json' (Configured)
-Info seq [hh:mm:ss:mss] Files (3)
+Info seq [hh:mm:ss:mss] Files (4)
Info seq [hh:mm:ss:mss] -----------------------------------------------
Info seq [hh:mm:ss:mss] Open files:
@@ -2454,7 +2439,7 @@ Info seq [hh:mm:ss:mss] FileName: /home/src/projects/project/index.mts Project
Info seq [hh:mm:ss:mss] Projects: /home/src/projects/project/tsconfig.json
Info seq [hh:mm:ss:mss] After ensureProjectForOpenFiles:
Info seq [hh:mm:ss:mss] Project '/home/src/projects/project/tsconfig.json' (Configured)
-Info seq [hh:mm:ss:mss] Files (3)
+Info seq [hh:mm:ss:mss] Files (4)
Info seq [hh:mm:ss:mss] -----------------------------------------------
Info seq [hh:mm:ss:mss] Open files:
@@ -2504,6 +2489,9 @@ Before running Timeout callback:: count: 2
Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles*
Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/projects/project/tsconfig.json
+Info seq [hh:mm:ss:mss] File '/a/lib/package.json' does not exist according to earlier cached lookups.
+Info seq [hh:mm:ss:mss] File '/a/package.json' does not exist according to earlier cached lookups.
+Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups.
Info seq [hh:mm:ss:mss] File '/home/src/projects/project/node_modules/foo/package.json' exists according to earlier cached lookups.
Info seq [hh:mm:ss:mss] File '/home/src/projects/project/node_modules/@types/bar/package.json' exists according to earlier cached lookups.
Info seq [hh:mm:ss:mss] Reusing resolution of module 'foo' from '/home/src/projects/project/index.mts' of old program, it was successfully resolved to '/home/src/projects/project/node_modules/foo/index.d.ts' with Package ID 'foo/index.d.ts@1.0.0'.
@@ -2596,7 +2584,8 @@ Info seq [hh:mm:ss:mss] File '/a/package.json' does not exist according to earl
Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups.
Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/projects/project/tsconfig.json Version: 10 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms
Info seq [hh:mm:ss:mss] Project '/home/src/projects/project/tsconfig.json' (Configured)
-Info seq [hh:mm:ss:mss] Files (3)
+Info seq [hh:mm:ss:mss] Files (4)
+ /a/lib/lib.es2022.full.d.ts Text-1 "/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }"
/home/src/projects/project/node_modules/foo/index.d.ts Text-1 "export declare const foo: number;"
/home/src/projects/project/node_modules/@types/bar/index.d.ts Text-1 "export declare const bar: number;"
/home/src/projects/project/index.mts SVC-1-0 "import { foo } from \"foo\";\nimport { bar } from \"bar\";\nimport { foo2 } from \"foo2\";\nimport { bar2 } from \"bar2\";\n"
@@ -2685,7 +2674,7 @@ Before running Timeout callback:: count: 2
Info seq [hh:mm:ss:mss] Running: *ensureProjectForOpenFiles*
Info seq [hh:mm:ss:mss] Before ensureProjectForOpenFiles:
Info seq [hh:mm:ss:mss] Project '/home/src/projects/project/tsconfig.json' (Configured)
-Info seq [hh:mm:ss:mss] Files (3)
+Info seq [hh:mm:ss:mss] Files (4)
Info seq [hh:mm:ss:mss] -----------------------------------------------
Info seq [hh:mm:ss:mss] Open files:
@@ -2693,7 +2682,7 @@ Info seq [hh:mm:ss:mss] FileName: /home/src/projects/project/index.mts Project
Info seq [hh:mm:ss:mss] Projects: /home/src/projects/project/tsconfig.json
Info seq [hh:mm:ss:mss] After ensureProjectForOpenFiles:
Info seq [hh:mm:ss:mss] Project '/home/src/projects/project/tsconfig.json' (Configured)
-Info seq [hh:mm:ss:mss] Files (3)
+Info seq [hh:mm:ss:mss] Files (4)
Info seq [hh:mm:ss:mss] -----------------------------------------------
Info seq [hh:mm:ss:mss] Open files:
@@ -2743,6 +2732,9 @@ Before running Timeout callback:: count: 2
Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles*
Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/projects/project/tsconfig.json
+Info seq [hh:mm:ss:mss] File '/a/lib/package.json' does not exist according to earlier cached lookups.
+Info seq [hh:mm:ss:mss] File '/a/package.json' does not exist according to earlier cached lookups.
+Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups.
Info seq [hh:mm:ss:mss] File '/home/src/projects/project/node_modules/foo/package.json' exists according to earlier cached lookups.
Info seq [hh:mm:ss:mss] File '/home/src/projects/project/node_modules/@types/bar/package.json' exists according to earlier cached lookups.
Info seq [hh:mm:ss:mss] Reusing resolution of module 'foo' from '/home/src/projects/project/index.mts' of old program, it was successfully resolved to '/home/src/projects/project/node_modules/foo/index.d.ts' with Package ID 'foo/index.d.ts@1.0.0'.
@@ -2816,7 +2808,8 @@ Info seq [hh:mm:ss:mss] File '/a/package.json' does not exist according to earl
Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups.
Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/projects/project/tsconfig.json Version: 11 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms
Info seq [hh:mm:ss:mss] Project '/home/src/projects/project/tsconfig.json' (Configured)
-Info seq [hh:mm:ss:mss] Files (3)
+Info seq [hh:mm:ss:mss] Files (4)
+ /a/lib/lib.es2022.full.d.ts Text-1 "/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }"
/home/src/projects/project/node_modules/foo/index.d.ts Text-1 "export declare const foo: number;"
/home/src/projects/project/node_modules/@types/bar/index.d.ts Text-1 "export declare const bar: number;"
/home/src/projects/project/index.mts SVC-1-0 "import { foo } from \"foo\";\nimport { bar } from \"bar\";\nimport { foo2 } from \"foo2\";\nimport { bar2 } from \"bar2\";\n"
@@ -2905,7 +2898,7 @@ Before running Timeout callback:: count: 2
Info seq [hh:mm:ss:mss] Running: *ensureProjectForOpenFiles*
Info seq [hh:mm:ss:mss] Before ensureProjectForOpenFiles:
Info seq [hh:mm:ss:mss] Project '/home/src/projects/project/tsconfig.json' (Configured)
-Info seq [hh:mm:ss:mss] Files (3)
+Info seq [hh:mm:ss:mss] Files (4)
Info seq [hh:mm:ss:mss] -----------------------------------------------
Info seq [hh:mm:ss:mss] Open files:
@@ -2913,7 +2906,7 @@ Info seq [hh:mm:ss:mss] FileName: /home/src/projects/project/index.mts Project
Info seq [hh:mm:ss:mss] Projects: /home/src/projects/project/tsconfig.json
Info seq [hh:mm:ss:mss] After ensureProjectForOpenFiles:
Info seq [hh:mm:ss:mss] Project '/home/src/projects/project/tsconfig.json' (Configured)
-Info seq [hh:mm:ss:mss] Files (3)
+Info seq [hh:mm:ss:mss] Files (4)
Info seq [hh:mm:ss:mss] -----------------------------------------------
Info seq [hh:mm:ss:mss] Open files:
@@ -2965,6 +2958,9 @@ export declare const bar2: number;
Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles*
Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/projects/project/tsconfig.json
+Info seq [hh:mm:ss:mss] File '/a/lib/package.json' does not exist according to earlier cached lookups.
+Info seq [hh:mm:ss:mss] File '/a/package.json' does not exist according to earlier cached lookups.
+Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups.
Info seq [hh:mm:ss:mss] File '/home/src/projects/project/node_modules/foo/package.json' exists according to earlier cached lookups.
Info seq [hh:mm:ss:mss] File '/home/src/projects/project/node_modules/@types/bar/package.json' exists according to earlier cached lookups.
Info seq [hh:mm:ss:mss] Reusing resolution of module 'foo' from '/home/src/projects/project/index.mts' of old program, it was successfully resolved to '/home/src/projects/project/node_modules/foo/index.d.ts' with Package ID 'foo/index.d.ts@1.0.0'.
@@ -3044,7 +3040,8 @@ Info seq [hh:mm:ss:mss] File '/a/package.json' does not exist according to earl
Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups.
Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/projects/project/tsconfig.json Version: 12 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms
Info seq [hh:mm:ss:mss] Project '/home/src/projects/project/tsconfig.json' (Configured)
-Info seq [hh:mm:ss:mss] Files (3)
+Info seq [hh:mm:ss:mss] Files (4)
+ /a/lib/lib.es2022.full.d.ts Text-1 "/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }"
/home/src/projects/project/node_modules/foo/index.d.ts Text-1 "export declare const foo: number;"
/home/src/projects/project/node_modules/@types/bar/index.d.ts Text-1 "export declare const bar: number;"
/home/src/projects/project/index.mts SVC-1-0 "import { foo } from \"foo\";\nimport { bar } from \"bar\";\nimport { foo2 } from \"foo2\";\nimport { bar2 } from \"bar2\";\n"
@@ -3133,7 +3130,7 @@ Before running Timeout callback:: count: 2
Info seq [hh:mm:ss:mss] Running: *ensureProjectForOpenFiles*
Info seq [hh:mm:ss:mss] Before ensureProjectForOpenFiles:
Info seq [hh:mm:ss:mss] Project '/home/src/projects/project/tsconfig.json' (Configured)
-Info seq [hh:mm:ss:mss] Files (3)
+Info seq [hh:mm:ss:mss] Files (4)
Info seq [hh:mm:ss:mss] -----------------------------------------------
Info seq [hh:mm:ss:mss] Open files:
@@ -3141,7 +3138,7 @@ Info seq [hh:mm:ss:mss] FileName: /home/src/projects/project/index.mts Project
Info seq [hh:mm:ss:mss] Projects: /home/src/projects/project/tsconfig.json
Info seq [hh:mm:ss:mss] After ensureProjectForOpenFiles:
Info seq [hh:mm:ss:mss] Project '/home/src/projects/project/tsconfig.json' (Configured)
-Info seq [hh:mm:ss:mss] Files (3)
+Info seq [hh:mm:ss:mss] Files (4)
Info seq [hh:mm:ss:mss] -----------------------------------------------
Info seq [hh:mm:ss:mss] Open files:
@@ -3193,6 +3190,9 @@ export declare const foo2: number;
Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles*
Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/projects/project/tsconfig.json
+Info seq [hh:mm:ss:mss] File '/a/lib/package.json' does not exist according to earlier cached lookups.
+Info seq [hh:mm:ss:mss] File '/a/package.json' does not exist according to earlier cached lookups.
+Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups.
Info seq [hh:mm:ss:mss] File '/home/src/projects/project/node_modules/foo/package.json' exists according to earlier cached lookups.
Info seq [hh:mm:ss:mss] File '/home/src/projects/project/node_modules/@types/bar/package.json' exists according to earlier cached lookups.
Info seq [hh:mm:ss:mss] Reusing resolution of module 'foo' from '/home/src/projects/project/index.mts' of old program, it was successfully resolved to '/home/src/projects/project/node_modules/foo/index.d.ts' with Package ID 'foo/index.d.ts@1.0.0'.
@@ -3253,7 +3253,8 @@ Info seq [hh:mm:ss:mss] File '/a/package.json' does not exist according to earl
Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups.
Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/projects/project/tsconfig.json Version: 13 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms
Info seq [hh:mm:ss:mss] Project '/home/src/projects/project/tsconfig.json' (Configured)
-Info seq [hh:mm:ss:mss] Files (3)
+Info seq [hh:mm:ss:mss] Files (4)
+ /a/lib/lib.es2022.full.d.ts Text-1 "/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }"
/home/src/projects/project/node_modules/foo/index.d.ts Text-1 "export declare const foo: number;"
/home/src/projects/project/node_modules/@types/bar/index.d.ts Text-1 "export declare const bar: number;"
/home/src/projects/project/index.mts SVC-1-0 "import { foo } from \"foo\";\nimport { bar } from \"bar\";\nimport { foo2 } from \"foo2\";\nimport { bar2 } from \"bar2\";\n"
@@ -3342,7 +3343,7 @@ Before running Timeout callback:: count: 2
Info seq [hh:mm:ss:mss] Running: *ensureProjectForOpenFiles*
Info seq [hh:mm:ss:mss] Before ensureProjectForOpenFiles:
Info seq [hh:mm:ss:mss] Project '/home/src/projects/project/tsconfig.json' (Configured)
-Info seq [hh:mm:ss:mss] Files (3)
+Info seq [hh:mm:ss:mss] Files (4)
Info seq [hh:mm:ss:mss] -----------------------------------------------
Info seq [hh:mm:ss:mss] Open files:
@@ -3350,7 +3351,7 @@ Info seq [hh:mm:ss:mss] FileName: /home/src/projects/project/index.mts Project
Info seq [hh:mm:ss:mss] Projects: /home/src/projects/project/tsconfig.json
Info seq [hh:mm:ss:mss] After ensureProjectForOpenFiles:
Info seq [hh:mm:ss:mss] Project '/home/src/projects/project/tsconfig.json' (Configured)
-Info seq [hh:mm:ss:mss] Files (3)
+Info seq [hh:mm:ss:mss] Files (4)
Info seq [hh:mm:ss:mss] -----------------------------------------------
Info seq [hh:mm:ss:mss] Open files: