diff --git a/src/testRunner/unittests/helpers/node10Result.ts b/src/testRunner/unittests/helpers/node10Result.ts index 132a3b26c1c..280d04ec57a 100644 --- a/src/testRunner/unittests/helpers/node10Result.ts +++ b/src/testRunner/unittests/helpers/node10Result.ts @@ -70,9 +70,9 @@ export function getFsContentsForNode10Result(): FsContents { import { foo2 } from "foo2"; import { bar2 } from "bar2"; `, + "/a/lib/lib.es2022.full.d.ts": libFile.content, "/home/src/projects/project/tsconfig.json": JSON.stringify({ compilerOptions: { - target: "es5", module: "node16", moduleResolution: "node16", traceResolution: true, diff --git a/tests/baselines/reference/tsc/moduleResolution/node10Result.js b/tests/baselines/reference/tsc/moduleResolution/node10Result.js index dc9b4ea37f7..ae4ccf5df64 100644 --- a/tests/baselines/reference/tsc/moduleResolution/node10Result.js +++ b/tests/baselines/reference/tsc/moduleResolution/node10Result.js @@ -13,6 +13,19 @@ interface RegExp {} interface String { charAt: any; } interface Array { length: number; [n: number]: T; } +//// [/a/lib/lib.es2022.full.d.ts] +/// +interface Boolean {} +interface Function {} +interface CallableFunction {} +interface NewableFunction {} +interface IArguments {} +interface Number { toExponential: any; } +interface Object {} +interface RegExp {} +interface String { charAt: any; } +interface Array { length: number; [n: number]: T; } + //// [/home/src/projects/project/index.mts] import { foo } from "foo"; import { bar } from "bar"; @@ -137,7 +150,7 @@ export const foo2 = 1; } //// [/home/src/projects/project/tsconfig.json] -{"compilerOptions":{"target":"es5","module":"node16","moduleResolution":"node16","traceResolution":true,"incremental":true,"strict":true,"types":[]},"files":["index.mts"]} +{"compilerOptions":{"module":"node16","moduleResolution":"node16","traceResolution":true,"incremental":true,"strict":true,"types":[]},"files":["index.mts"]} //// [/lib/lib.d.ts] /// @@ -326,42 +339,48 @@ File '/home/src/projects/project/node_modules/foo2/package.json' exists accordin File '/home/src/projects/project/node_modules/@types/bar2/package.json' exists according to earlier cached lookups. File '/lib/package.json' does not exist. File '/package.json' does not exist according to earlier cached lookups. -home/src/projects/project/index.mts:1:21 - error TS7016: Could 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. +error TS2318: Cannot find global type 'Array'. -1 import { foo } from "foo"; -   ~~~~~ +error TS2318: Cannot find global type 'Boolean'. -home/src/projects/project/index.mts:2:21 - error TS7016: Could 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. +error TS2318: Cannot find global type 'CallableFunction'. -2 import { bar } from "bar"; -   ~~~~~ +error TS2318: Cannot find global type 'Function'. + +error TS2318: Cannot find global type 'IArguments'. + +error TS2318: Cannot find global type 'NewableFunction'. + +error TS2318: Cannot find global type 'Number'. + +error TS2318: Cannot find global type 'Object'. + +error TS2318: Cannot find global type 'RegExp'. + +error TS2318: Cannot find global type 'String'. + +error TS6053: File '/lib/lib.es2022.full.d.ts' not found. + The file is in the program because: + Default library for target 'es2022' -Found 2 errors in the same file, starting at: home/src/projects/project/index.mts:1 +Found 11 errors. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated Program root files: ["/home/src/projects/project/index.mts"] -Program options: {"target":1,"module":100,"moduleResolution":3,"traceResolution":true,"incremental":true,"strict":true,"types":[],"project":"/home/src/projects/project","configFilePath":"/home/src/projects/project/tsconfig.json"} +Program options: {"module":100,"moduleResolution":3,"traceResolution":true,"incremental":true,"strict":true,"types":[],"project":"/home/src/projects/project","configFilePath":"/home/src/projects/project/tsconfig.json"} Program structureReused: Not Program files:: -/lib/lib.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:: -/lib/lib.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:: -/lib/lib.d.ts (used version) /home/src/projects/project/node_modules/foo2/index.d.ts (used version) -/home/src/projects/project/node_modules/@types/bar2/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.mjs] @@ -369,13 +388,12 @@ export {}; //// [/home/src/projects/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../lib/lib.d.ts","./node_modules/foo2/index.d.ts","./node_modules/@types/bar2/index.d.ts","./index.mts"],"fileInfos":[{"version":"3858781397-/// \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; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","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,"target":1},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,1]],"semanticDiagnosticsPerFile":[[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,1]},"version":"FakeTSVersion"} +{"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"} //// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../../../lib/lib.d.ts", "./node_modules/foo2/index.d.ts", "./node_modules/@types/bar2/index.d.ts", "./index.mts" @@ -387,17 +405,6 @@ export {}; ] ], "fileInfos": { - "../../../../lib/lib.d.ts": { - "original": { - "version": "3858781397-/// \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; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedFormat": 1 - }, - "version": "3858781397-/// \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; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "signature": "3858781397-/// \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; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedFormat": "commonjs" - }, "./node_modules/foo2/index.d.ts": { "original": { "version": "-1622383150-export declare const foo2: number;", @@ -428,14 +435,13 @@ export {}; }, "root": [ [ - 4, + 3, "./index.mts" ] ], "options": { "module": 100, - "strict": true, - "target": 1 + "strict": true }, "referencedMap": { "./index.mts": [ @@ -448,60 +454,10 @@ export {}; "./node_modules/foo2/index.d.ts", "./node_modules/@types/bar2/index.d.ts" ] - }, - "semanticDiagnosticsPerFile": [ - [ - "./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", - "../../../../lib/lib.d.ts" - ] + } }, "version": "FakeTSVersion", - "size": 1823 + "size": 607 } @@ -694,32 +650,43 @@ File '/home/src/projects/project/node_modules/foo2/package.json' exists accordin File '/home/src/projects/project/node_modules/@types/bar2/package.json' exists according to earlier cached lookups. File '/lib/package.json' does not exist. File '/package.json' does not exist according to earlier cached lookups. -home/src/projects/project/index.mts:1:21 - error TS7016: Could 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. +error TS2318: Cannot find global type 'Array'. -1 import { foo } from "foo"; -   ~~~~~ +error TS2318: Cannot find global type 'Boolean'. -home/src/projects/project/index.mts:2:21 - error TS7016: Could 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';` +error TS2318: Cannot find global type 'CallableFunction'. -2 import { bar } from "bar"; -   ~~~~~ +error TS2318: Cannot find global type 'Function'. + +error TS2318: Cannot find global type 'IArguments'. + +error TS2318: Cannot find global type 'NewableFunction'. + +error TS2318: Cannot find global type 'Number'. + +error TS2318: Cannot find global type 'Object'. + +error TS2318: Cannot find global type 'RegExp'. + +error TS2318: Cannot find global type 'String'. + +error TS6053: File '/lib/lib.es2022.full.d.ts' not found. + The file is in the program because: + Default library for target 'es2022' -Found 2 errors in the same file, starting at: home/src/projects/project/index.mts:1 +Found 11 errors. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated Program root files: ["/home/src/projects/project/index.mts"] -Program options: {"target":1,"module":100,"moduleResolution":3,"traceResolution":true,"incremental":true,"strict":true,"types":[],"project":"/home/src/projects/project","configFilePath":"/home/src/projects/project/tsconfig.json"} +Program options: {"module":100,"moduleResolution":3,"traceResolution":true,"incremental":true,"strict":true,"types":[],"project":"/home/src/projects/project","configFilePath":"/home/src/projects/project/tsconfig.json"} Program structureReused: Not Program files:: -/lib/lib.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:: +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: @@ -927,32 +894,43 @@ File '/home/src/projects/project/node_modules/foo2/package.json' exists accordin File '/home/src/projects/project/node_modules/@types/bar2/package.json' exists according to earlier cached lookups. File '/lib/package.json' does not exist. File '/package.json' does not exist according to earlier cached lookups. -home/src/projects/project/index.mts:1:21 - error TS7016: Could 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';` +error TS2318: Cannot find global type 'Array'. -1 import { foo } from "foo"; -   ~~~~~ +error TS2318: Cannot find global type 'Boolean'. -home/src/projects/project/index.mts:2:21 - error TS7016: Could 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';` +error TS2318: Cannot find global type 'CallableFunction'. -2 import { bar } from "bar"; -   ~~~~~ +error TS2318: Cannot find global type 'Function'. + +error TS2318: Cannot find global type 'IArguments'. + +error TS2318: Cannot find global type 'NewableFunction'. + +error TS2318: Cannot find global type 'Number'. + +error TS2318: Cannot find global type 'Object'. + +error TS2318: Cannot find global type 'RegExp'. + +error TS2318: Cannot find global type 'String'. + +error TS6053: File '/lib/lib.es2022.full.d.ts' not found. + The file is in the program because: + Default library for target 'es2022' -Found 2 errors in the same file, starting at: home/src/projects/project/index.mts:1 +Found 11 errors. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated Program root files: ["/home/src/projects/project/index.mts"] -Program options: {"target":1,"module":100,"moduleResolution":3,"traceResolution":true,"incremental":true,"strict":true,"types":[],"project":"/home/src/projects/project","configFilePath":"/home/src/projects/project/tsconfig.json"} +Program options: {"module":100,"moduleResolution":3,"traceResolution":true,"incremental":true,"strict":true,"types":[],"project":"/home/src/projects/project","configFilePath":"/home/src/projects/project/tsconfig.json"} Program structureReused: Not Program files:: -/lib/lib.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:: +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: @@ -1149,32 +1127,43 @@ File '/home/src/projects/project/node_modules/foo2/package.json' exists accordin File '/home/src/projects/project/node_modules/@types/bar2/package.json' exists according to earlier cached lookups. File '/lib/package.json' does not exist. File '/package.json' does not exist according to earlier cached lookups. -home/src/projects/project/index.mts:1:21 - error TS7016: Could 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';` +error TS2318: Cannot find global type 'Array'. -1 import { foo } from "foo"; -   ~~~~~ +error TS2318: Cannot find global type 'Boolean'. -home/src/projects/project/index.mts:2:21 - error TS7016: Could 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. +error TS2318: Cannot find global type 'CallableFunction'. -2 import { bar } from "bar"; -   ~~~~~ +error TS2318: Cannot find global type 'Function'. + +error TS2318: Cannot find global type 'IArguments'. + +error TS2318: Cannot find global type 'NewableFunction'. + +error TS2318: Cannot find global type 'Number'. + +error TS2318: Cannot find global type 'Object'. + +error TS2318: Cannot find global type 'RegExp'. + +error TS2318: Cannot find global type 'String'. + +error TS6053: File '/lib/lib.es2022.full.d.ts' not found. + The file is in the program because: + Default library for target 'es2022' -Found 2 errors in the same file, starting at: home/src/projects/project/index.mts:1 +Found 11 errors. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated Program root files: ["/home/src/projects/project/index.mts"] -Program options: {"target":1,"module":100,"moduleResolution":3,"traceResolution":true,"incremental":true,"strict":true,"types":[],"project":"/home/src/projects/project","configFilePath":"/home/src/projects/project/tsconfig.json"} +Program options: {"module":100,"moduleResolution":3,"traceResolution":true,"incremental":true,"strict":true,"types":[],"project":"/home/src/projects/project","configFilePath":"/home/src/projects/project/tsconfig.json"} Program structureReused: Not Program files:: -/lib/lib.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:: +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: @@ -1358,32 +1347,43 @@ File '/home/src/projects/project/node_modules/foo2/package.json' exists accordin File '/home/src/projects/project/node_modules/@types/bar2/package.json' exists according to earlier cached lookups. File '/lib/package.json' does not exist. File '/package.json' does not exist according to earlier cached lookups. -home/src/projects/project/index.mts:1:21 - error TS7016: Could 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. +error TS2318: Cannot find global type 'Array'. -1 import { foo } from "foo"; -   ~~~~~ +error TS2318: Cannot find global type 'Boolean'. -home/src/projects/project/index.mts:2:21 - error TS7016: Could 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. +error TS2318: Cannot find global type 'CallableFunction'. -2 import { bar } from "bar"; -   ~~~~~ +error TS2318: Cannot find global type 'Function'. + +error TS2318: Cannot find global type 'IArguments'. + +error TS2318: Cannot find global type 'NewableFunction'. + +error TS2318: Cannot find global type 'Number'. + +error TS2318: Cannot find global type 'Object'. + +error TS2318: Cannot find global type 'RegExp'. + +error TS2318: Cannot find global type 'String'. + +error TS6053: File '/lib/lib.es2022.full.d.ts' not found. + The file is in the program because: + Default library for target 'es2022' -Found 2 errors in the same file, starting at: home/src/projects/project/index.mts:1 +Found 11 errors. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated Program root files: ["/home/src/projects/project/index.mts"] -Program options: {"target":1,"module":100,"moduleResolution":3,"traceResolution":true,"incremental":true,"strict":true,"types":[],"project":"/home/src/projects/project","configFilePath":"/home/src/projects/project/tsconfig.json"} +Program options: {"module":100,"moduleResolution":3,"traceResolution":true,"incremental":true,"strict":true,"types":[],"project":"/home/src/projects/project","configFilePath":"/home/src/projects/project/tsconfig.json"} Program structureReused: Not Program files:: -/lib/lib.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:: +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: @@ -1539,29 +1539,44 @@ File '/home/src/projects/project/node_modules/foo2/package.json' exists accordin File '/home/src/projects/project/node_modules/@types/bar2/package.json' exists according to earlier cached lookups. File '/lib/package.json' does not exist. File '/package.json' does not exist according to earlier cached lookups. -home/src/projects/project/index.mts:1:21 - error TS7016: Could 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. +error TS2318: Cannot find global type 'Array'. -1 import { foo } from "foo"; -   ~~~~~ +error TS2318: Cannot find global type 'Boolean'. + +error TS2318: Cannot find global type 'CallableFunction'. + +error TS2318: Cannot find global type 'Function'. + +error TS2318: Cannot find global type 'IArguments'. + +error TS2318: Cannot find global type 'NewableFunction'. + +error TS2318: Cannot find global type 'Number'. + +error TS2318: Cannot find global type 'Object'. + +error TS2318: Cannot find global type 'RegExp'. + +error TS2318: Cannot find global type 'String'. + +error TS6053: File '/lib/lib.es2022.full.d.ts' not found. + The file is in the program because: + Default library for target 'es2022' -Found 1 error in home/src/projects/project/index.mts:1 +Found 11 errors. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated Program root files: ["/home/src/projects/project/index.mts"] -Program options: {"target":1,"module":100,"moduleResolution":3,"traceResolution":true,"incremental":true,"strict":true,"types":[],"project":"/home/src/projects/project","configFilePath":"/home/src/projects/project/tsconfig.json"} +Program options: {"module":100,"moduleResolution":3,"traceResolution":true,"incremental":true,"strict":true,"types":[],"project":"/home/src/projects/project","configFilePath":"/home/src/projects/project/tsconfig.json"} Program structureReused: Not Program files:: -/lib/lib.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/@types/bar/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/@types/bar/index.d.ts (used version) @@ -1570,13 +1585,12 @@ Shape signatures in builder refreshed for:: //// [/home/src/projects/project/index.mjs] file written with same contents //// [/home/src/projects/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../lib/lib.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":"3858781397-/// \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; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","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,"target":1},"fileIdsList":[[2,3,4]],"referencedMap":[[5,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[[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,1]},"version":"FakeTSVersion"} +{"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"} //// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../../../lib/lib.d.ts", "./node_modules/@types/bar/index.d.ts", "./node_modules/foo2/index.d.ts", "./node_modules/@types/bar2/index.d.ts", @@ -1590,17 +1604,6 @@ Shape signatures in builder refreshed for:: ] ], "fileInfos": { - "../../../../lib/lib.d.ts": { - "original": { - "version": "3858781397-/// \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; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedFormat": 1 - }, - "version": "3858781397-/// \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; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "signature": "3858781397-/// \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; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedFormat": "commonjs" - }, "./node_modules/@types/bar/index.d.ts": { "original": { "version": "-9556021903-export declare const bar: number;", @@ -1641,14 +1644,13 @@ Shape signatures in builder refreshed for:: }, "root": [ [ - 5, + 4, "./index.mts" ] ], "options": { "module": 100, - "strict": true, - "target": 1 + "strict": true }, "referencedMap": { "./index.mts": [ @@ -1657,41 +1659,10 @@ Shape signatures in builder refreshed for:: "./node_modules/@types/bar2/index.d.ts" ] }, - "exportedModulesMap": {}, - "semanticDiagnosticsPerFile": [ - [ - "./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", - "../../../../lib/lib.d.ts" - ] + "exportedModulesMap": {} }, "version": "FakeTSVersion", - "size": 1659 + "size": 760 } @@ -1819,21 +1790,45 @@ File '/home/src/projects/project/node_modules/foo2/package.json' exists accordin File '/home/src/projects/project/node_modules/@types/bar2/package.json' exists according to earlier cached lookups. File '/lib/package.json' does not exist. File '/package.json' does not exist according to earlier cached lookups. -exitCode:: ExitStatus.Success +error TS2318: Cannot find global type 'Array'. + +error TS2318: Cannot find global type 'Boolean'. + +error TS2318: Cannot find global type 'CallableFunction'. + +error TS2318: Cannot find global type 'Function'. + +error TS2318: Cannot find global type 'IArguments'. + +error TS2318: Cannot find global type 'NewableFunction'. + +error TS2318: Cannot find global type 'Number'. + +error TS2318: Cannot find global type 'Object'. + +error TS2318: Cannot find global type 'RegExp'. + +error TS2318: Cannot find global type 'String'. + +error TS6053: File '/lib/lib.es2022.full.d.ts' not found. + The file is in the program because: + Default library for target 'es2022' + + +Found 11 errors. + +exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated Program root files: ["/home/src/projects/project/index.mts"] -Program options: {"target":1,"module":100,"moduleResolution":3,"traceResolution":true,"incremental":true,"strict":true,"types":[],"project":"/home/src/projects/project","configFilePath":"/home/src/projects/project/tsconfig.json"} +Program options: {"module":100,"moduleResolution":3,"traceResolution":true,"incremental":true,"strict":true,"types":[],"project":"/home/src/projects/project","configFilePath":"/home/src/projects/project/tsconfig.json"} Program structureReused: Not Program files:: -/lib/lib.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 +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) @@ -1842,13 +1837,12 @@ Shape signatures in builder refreshed for:: //// [/home/src/projects/project/index.mjs] file written with same contents //// [/home/src/projects/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../lib/lib.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":"3858781397-/// \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; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","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,"target":1},"fileIdsList":[[2,3,4,5]],"referencedMap":[[6,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[6,3,5,2,4,1]},"version":"FakeTSVersion"} +{"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": [ - "../../../../lib/lib.d.ts", "./node_modules/foo/index.d.ts", "./node_modules/@types/bar/index.d.ts", "./node_modules/foo2/index.d.ts", @@ -1864,17 +1858,6 @@ Shape signatures in builder refreshed for:: ] ], "fileInfos": { - "../../../../lib/lib.d.ts": { - "original": { - "version": "3858781397-/// \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; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedFormat": 1 - }, - "version": "3858781397-/// \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; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "signature": "3858781397-/// \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; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedFormat": "commonjs" - }, "./node_modules/foo/index.d.ts": { "original": { "version": "-5214938848-export declare const foo: number;", @@ -1924,14 +1907,13 @@ Shape signatures in builder refreshed for:: }, "root": [ [ - 6, + 5, "./index.mts" ] ], "options": { "module": 100, - "strict": true, - "target": 1 + "strict": true }, "referencedMap": { "./index.mts": [ @@ -1941,18 +1923,10 @@ Shape signatures in builder refreshed for:: "./node_modules/@types/bar2/index.d.ts" ] }, - "exportedModulesMap": {}, - "semanticDiagnosticsPerFile": [ - "./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", - "../../../../lib/lib.d.ts" - ] + "exportedModulesMap": {} }, "version": "FakeTSVersion", - "size": 1450 + "size": 872 } @@ -2115,28 +2089,44 @@ File '/home/src/projects/project/node_modules/@types/bar/package.json' exists ac File '/home/src/projects/project/node_modules/foo2/package.json' exists according to earlier cached lookups. File '/lib/package.json' does not exist. File '/package.json' does not exist according to earlier cached lookups. -home/src/projects/project/index.mts:4:22 - error TS7016: Could 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. +error TS2318: Cannot find global type 'Array'. -4 import { bar2 } from "bar2"; -   ~~~~~~ +error TS2318: Cannot find global type 'Boolean'. + +error TS2318: Cannot find global type 'CallableFunction'. + +error TS2318: Cannot find global type 'Function'. + +error TS2318: Cannot find global type 'IArguments'. + +error TS2318: Cannot find global type 'NewableFunction'. + +error TS2318: Cannot find global type 'Number'. + +error TS2318: Cannot find global type 'Object'. + +error TS2318: Cannot find global type 'RegExp'. + +error TS2318: Cannot find global type 'String'. + +error TS6053: File '/lib/lib.es2022.full.d.ts' not found. + The file is in the program because: + Default library for target 'es2022' -Found 1 error in home/src/projects/project/index.mts:4 +Found 11 errors. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated Program root files: ["/home/src/projects/project/index.mts"] -Program options: {"target":1,"module":100,"moduleResolution":3,"traceResolution":true,"incremental":true,"strict":true,"types":[],"project":"/home/src/projects/project","configFilePath":"/home/src/projects/project/tsconfig.json"} +Program options: {"module":100,"moduleResolution":3,"traceResolution":true,"incremental":true,"strict":true,"types":[],"project":"/home/src/projects/project","configFilePath":"/home/src/projects/project/tsconfig.json"} Program structureReused: Not Program files:: -/lib/lib.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 -Semantic diagnostics in builder refreshed for:: -/home/src/projects/project/index.mts +No cached semantic diagnostics in the builder:: Shape signatures in builder refreshed for:: /home/src/projects/project/index.mts (computed .d.ts) @@ -2144,13 +2134,12 @@ Shape signatures in builder refreshed for:: //// [/home/src/projects/project/index.mjs] file written with same contents //// [/home/src/projects/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../lib/lib.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":"3858781397-/// \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; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","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,"target":1},"fileIdsList":[[2,3,4]],"referencedMap":[[5,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[[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,1]},"version":"FakeTSVersion"} +{"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"} //// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../../../lib/lib.d.ts", "./node_modules/foo/index.d.ts", "./node_modules/@types/bar/index.d.ts", "./node_modules/foo2/index.d.ts", @@ -2164,17 +2153,6 @@ Shape signatures in builder refreshed for:: ] ], "fileInfos": { - "../../../../lib/lib.d.ts": { - "original": { - "version": "3858781397-/// \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; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedFormat": 1 - }, - "version": "3858781397-/// \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; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "signature": "3858781397-/// \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; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedFormat": "commonjs" - }, "./node_modules/foo/index.d.ts": { "original": { "version": "-5214938848-export declare const foo: number;", @@ -2215,14 +2193,13 @@ Shape signatures in builder refreshed for:: }, "root": [ [ - 5, + 4, "./index.mts" ] ], "options": { "module": 100, - "strict": true, - "target": 1 + "strict": true }, "referencedMap": { "./index.mts": [ @@ -2231,41 +2208,10 @@ Shape signatures in builder refreshed for:: "./node_modules/foo2/index.d.ts" ] }, - "exportedModulesMap": {}, - "semanticDiagnosticsPerFile": [ - [ - "./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", - "../../../../lib/lib.d.ts" - ] + "exportedModulesMap": {} }, "version": "FakeTSVersion", - "size": 1654 + "size": 751 } @@ -2458,33 +2404,43 @@ File '/home/src/projects/project/node_modules/foo/package.json' exists according File '/home/src/projects/project/node_modules/@types/bar/package.json' exists according to earlier cached lookups. File '/lib/package.json' does not exist. File '/package.json' does not exist according to earlier cached lookups. -home/src/projects/project/index.mts:3:22 - error TS7016: Could 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. +error TS2318: Cannot find global type 'Array'. -3 import { foo2 } from "foo2"; -   ~~~~~~ +error TS2318: Cannot find global type 'Boolean'. -home/src/projects/project/index.mts:4:22 - error TS7016: Could 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. +error TS2318: Cannot find global type 'CallableFunction'. -4 import { bar2 } from "bar2"; -   ~~~~~~ +error TS2318: Cannot find global type 'Function'. + +error TS2318: Cannot find global type 'IArguments'. + +error TS2318: Cannot find global type 'NewableFunction'. + +error TS2318: Cannot find global type 'Number'. + +error TS2318: Cannot find global type 'Object'. + +error TS2318: Cannot find global type 'RegExp'. + +error TS2318: Cannot find global type 'String'. + +error TS6053: File '/lib/lib.es2022.full.d.ts' not found. + The file is in the program because: + Default library for target 'es2022' -Found 2 errors in the same file, starting at: home/src/projects/project/index.mts:3 +Found 11 errors. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated Program root files: ["/home/src/projects/project/index.mts"] -Program options: {"target":1,"module":100,"moduleResolution":3,"traceResolution":true,"incremental":true,"strict":true,"types":[],"project":"/home/src/projects/project","configFilePath":"/home/src/projects/project/tsconfig.json"} +Program options: {"module":100,"moduleResolution":3,"traceResolution":true,"incremental":true,"strict":true,"types":[],"project":"/home/src/projects/project","configFilePath":"/home/src/projects/project/tsconfig.json"} Program structureReused: Not Program files:: -/lib/lib.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 -Semantic diagnostics in builder refreshed for:: -/home/src/projects/project/index.mts +No cached semantic diagnostics in the builder:: Shape signatures in builder refreshed for:: /home/src/projects/project/index.mts (computed .d.ts) @@ -2492,13 +2448,12 @@ Shape signatures in builder refreshed for:: //// [/home/src/projects/project/index.mjs] file written with same contents //// [/home/src/projects/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../lib/lib.d.ts","./node_modules/foo/index.d.ts","./node_modules/@types/bar/index.d.ts","./index.mts"],"fileInfos":[{"version":"3858781397-/// \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; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","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,"target":1},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[[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,1]},"version":"FakeTSVersion"} +{"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"} //// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ - "../../../../lib/lib.d.ts", "./node_modules/foo/index.d.ts", "./node_modules/@types/bar/index.d.ts", "./index.mts" @@ -2510,17 +2465,6 @@ Shape signatures in builder refreshed for:: ] ], "fileInfos": { - "../../../../lib/lib.d.ts": { - "original": { - "version": "3858781397-/// \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; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedFormat": 1 - }, - "version": "3858781397-/// \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; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "signature": "3858781397-/// \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; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedFormat": "commonjs" - }, "./node_modules/foo/index.d.ts": { "original": { "version": "-5214938848-export declare const foo: number;", @@ -2552,14 +2496,13 @@ Shape signatures in builder refreshed for:: }, "root": [ [ - 4, + 3, "./index.mts" ] ], "options": { "module": 100, - "strict": true, - "target": 1 + "strict": true }, "referencedMap": { "./index.mts": [ @@ -2567,60 +2510,10 @@ Shape signatures in builder refreshed for:: "./node_modules/@types/bar/index.d.ts" ] }, - "exportedModulesMap": {}, - "semanticDiagnosticsPerFile": [ - [ - "./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", - "../../../../lib/lib.d.ts" - ] + "exportedModulesMap": {} }, "version": "FakeTSVersion", - "size": 1860 + "size": 637 } @@ -2813,32 +2706,43 @@ File '/home/src/projects/project/node_modules/foo/package.json' exists according File '/home/src/projects/project/node_modules/@types/bar/package.json' exists according to earlier cached lookups. File '/lib/package.json' does not exist. File '/package.json' does not exist according to earlier cached lookups. -home/src/projects/project/index.mts:3:22 - error TS7016: Could 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. +error TS2318: Cannot find global type 'Array'. -3 import { foo2 } from "foo2"; -   ~~~~~~ +error TS2318: Cannot find global type 'Boolean'. -home/src/projects/project/index.mts:4:22 - error TS7016: Could 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';` +error TS2318: Cannot find global type 'CallableFunction'. -4 import { bar2 } from "bar2"; -   ~~~~~~ +error TS2318: Cannot find global type 'Function'. + +error TS2318: Cannot find global type 'IArguments'. + +error TS2318: Cannot find global type 'NewableFunction'. + +error TS2318: Cannot find global type 'Number'. + +error TS2318: Cannot find global type 'Object'. + +error TS2318: Cannot find global type 'RegExp'. + +error TS2318: Cannot find global type 'String'. + +error TS6053: File '/lib/lib.es2022.full.d.ts' not found. + The file is in the program because: + Default library for target 'es2022' -Found 2 errors in the same file, starting at: home/src/projects/project/index.mts:3 +Found 11 errors. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated Program root files: ["/home/src/projects/project/index.mts"] -Program options: {"target":1,"module":100,"moduleResolution":3,"traceResolution":true,"incremental":true,"strict":true,"types":[],"project":"/home/src/projects/project","configFilePath":"/home/src/projects/project/tsconfig.json"} +Program options: {"module":100,"moduleResolution":3,"traceResolution":true,"incremental":true,"strict":true,"types":[],"project":"/home/src/projects/project","configFilePath":"/home/src/projects/project/tsconfig.json"} Program structureReused: Not Program files:: -/lib/lib.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 -Semantic diagnostics in builder refreshed for:: +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: @@ -3046,32 +2950,43 @@ File '/home/src/projects/project/node_modules/foo/package.json' exists according File '/home/src/projects/project/node_modules/@types/bar/package.json' exists according to earlier cached lookups. File '/lib/package.json' does not exist. File '/package.json' does not exist according to earlier cached lookups. -home/src/projects/project/index.mts:3:22 - error TS7016: Could 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';` +error TS2318: Cannot find global type 'Array'. -3 import { foo2 } from "foo2"; -   ~~~~~~ +error TS2318: Cannot find global type 'Boolean'. -home/src/projects/project/index.mts:4:22 - error TS7016: Could 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';` +error TS2318: Cannot find global type 'CallableFunction'. -4 import { bar2 } from "bar2"; -   ~~~~~~ +error TS2318: Cannot find global type 'Function'. + +error TS2318: Cannot find global type 'IArguments'. + +error TS2318: Cannot find global type 'NewableFunction'. + +error TS2318: Cannot find global type 'Number'. + +error TS2318: Cannot find global type 'Object'. + +error TS2318: Cannot find global type 'RegExp'. + +error TS2318: Cannot find global type 'String'. + +error TS6053: File '/lib/lib.es2022.full.d.ts' not found. + The file is in the program because: + Default library for target 'es2022' -Found 2 errors in the same file, starting at: home/src/projects/project/index.mts:3 +Found 11 errors. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated Program root files: ["/home/src/projects/project/index.mts"] -Program options: {"target":1,"module":100,"moduleResolution":3,"traceResolution":true,"incremental":true,"strict":true,"types":[],"project":"/home/src/projects/project","configFilePath":"/home/src/projects/project/tsconfig.json"} +Program options: {"module":100,"moduleResolution":3,"traceResolution":true,"incremental":true,"strict":true,"types":[],"project":"/home/src/projects/project","configFilePath":"/home/src/projects/project/tsconfig.json"} Program structureReused: Not Program files:: -/lib/lib.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 -Semantic diagnostics in builder refreshed for:: +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: @@ -3268,32 +3183,43 @@ File '/home/src/projects/project/node_modules/foo/package.json' exists according File '/home/src/projects/project/node_modules/@types/bar/package.json' exists according to earlier cached lookups. File '/lib/package.json' does not exist. File '/package.json' does not exist according to earlier cached lookups. -home/src/projects/project/index.mts:3:22 - error TS7016: Could 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';` +error TS2318: Cannot find global type 'Array'. -3 import { foo2 } from "foo2"; -   ~~~~~~ +error TS2318: Cannot find global type 'Boolean'. -home/src/projects/project/index.mts:4:22 - error TS7016: Could 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. +error TS2318: Cannot find global type 'CallableFunction'. -4 import { bar2 } from "bar2"; -   ~~~~~~ +error TS2318: Cannot find global type 'Function'. + +error TS2318: Cannot find global type 'IArguments'. + +error TS2318: Cannot find global type 'NewableFunction'. + +error TS2318: Cannot find global type 'Number'. + +error TS2318: Cannot find global type 'Object'. + +error TS2318: Cannot find global type 'RegExp'. + +error TS2318: Cannot find global type 'String'. + +error TS6053: File '/lib/lib.es2022.full.d.ts' not found. + The file is in the program because: + Default library for target 'es2022' -Found 2 errors in the same file, starting at: home/src/projects/project/index.mts:3 +Found 11 errors. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated Program root files: ["/home/src/projects/project/index.mts"] -Program options: {"target":1,"module":100,"moduleResolution":3,"traceResolution":true,"incremental":true,"strict":true,"types":[],"project":"/home/src/projects/project","configFilePath":"/home/src/projects/project/tsconfig.json"} +Program options: {"module":100,"moduleResolution":3,"traceResolution":true,"incremental":true,"strict":true,"types":[],"project":"/home/src/projects/project","configFilePath":"/home/src/projects/project/tsconfig.json"} Program structureReused: Not Program files:: -/lib/lib.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 -Semantic diagnostics in builder refreshed for:: +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: @@ -3477,32 +3403,43 @@ File '/home/src/projects/project/node_modules/foo/package.json' exists according File '/home/src/projects/project/node_modules/@types/bar/package.json' exists according to earlier cached lookups. File '/lib/package.json' does not exist. File '/package.json' does not exist according to earlier cached lookups. -home/src/projects/project/index.mts:3:22 - error TS7016: Could 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. +error TS2318: Cannot find global type 'Array'. -3 import { foo2 } from "foo2"; -   ~~~~~~ +error TS2318: Cannot find global type 'Boolean'. -home/src/projects/project/index.mts:4:22 - error TS7016: Could 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. +error TS2318: Cannot find global type 'CallableFunction'. -4 import { bar2 } from "bar2"; -   ~~~~~~ +error TS2318: Cannot find global type 'Function'. + +error TS2318: Cannot find global type 'IArguments'. + +error TS2318: Cannot find global type 'NewableFunction'. + +error TS2318: Cannot find global type 'Number'. + +error TS2318: Cannot find global type 'Object'. + +error TS2318: Cannot find global type 'RegExp'. + +error TS2318: Cannot find global type 'String'. + +error TS6053: File '/lib/lib.es2022.full.d.ts' not found. + The file is in the program because: + Default library for target 'es2022' -Found 2 errors in the same file, starting at: home/src/projects/project/index.mts:3 +Found 11 errors. exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated Program root files: ["/home/src/projects/project/index.mts"] -Program options: {"target":1,"module":100,"moduleResolution":3,"traceResolution":true,"incremental":true,"strict":true,"types":[],"project":"/home/src/projects/project","configFilePath":"/home/src/projects/project/tsconfig.json"} +Program options: {"module":100,"moduleResolution":3,"traceResolution":true,"incremental":true,"strict":true,"types":[],"project":"/home/src/projects/project","configFilePath":"/home/src/projects/project/tsconfig.json"} Program structureReused: Not Program files:: -/lib/lib.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 -Semantic diagnostics in builder refreshed for:: +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: diff --git a/tests/baselines/reference/tscWatch/moduleResolution/node10Result.js b/tests/baselines/reference/tscWatch/moduleResolution/node10Result.js index a6738fd67ea..9faffcf1977 100644 --- a/tests/baselines/reference/tscWatch/moduleResolution/node10Result.js +++ b/tests/baselines/reference/tscWatch/moduleResolution/node10Result.js @@ -123,8 +123,21 @@ import { foo2 } from "foo2"; import { bar2 } from "bar2"; +//// [/a/lib/lib.es2022.full.d.ts] +/// +interface Boolean {} +interface Function {} +interface CallableFunction {} +interface NewableFunction {} +interface IArguments {} +interface Number { toExponential: any; } +interface Object {} +interface RegExp {} +interface String { charAt: any; } +interface Array { length: number; [n: number]: T; } + //// [/home/src/projects/project/tsconfig.json] -{"compilerOptions":{"target":"es5","module":"node16","moduleResolution":"node16","traceResolution":true,"incremental":true,"strict":true,"types":[]},"files":["index.mts"]} +{"compilerOptions":{"module":"node16","moduleResolution":"node16","traceResolution":true,"incremental":true,"strict":true,"types":[]},"files":["index.mts"]} //// [/a/lib/lib.d.ts] /// @@ -142,14 +155,14 @@ interface Array { length: number; [n: number]: T; } /a/lib/tsc.js -w --extendedDiagnostics Output:: -[12:01:13 AM] Starting compilation in watch mode... +[12:01:15 AM] Starting compilation in watch mode... Current directory: /home/src/projects/project CaseSensitiveFileNames: false FileWatcher:: Added:: WatchInfo: /home/src/projects/project/tsconfig.json 2000 undefined Config file Synchronizing program CreatingProgramWith:: roots: ["/home/src/projects/project/index.mts"] - options: {"target":1,"module":100,"moduleResolution":3,"traceResolution":true,"incremental":true,"strict":true,"types":[],"watch":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project/tsconfig.json"} + options: {"module":100,"moduleResolution":3,"traceResolution":true,"incremental":true,"strict":true,"types":[],"watch":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project/tsconfig.json"} FileWatcher:: Added:: WatchInfo: /home/src/projects/project/index.mts 250 undefined Source file ======== Resolving module 'foo' from '/home/src/projects/project/index.mts'. ======== Explicitly specified module resolution kind: 'Node16'. @@ -322,7 +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.d.ts 250 undefined Source file +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 @@ -355,7 +368,7 @@ Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/project/tscon 2 import { bar } from "bar";    ~~~~~ -[12:01:18 AM] Found 2 errors. Watching for file changes. +[12:01:20 AM] 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 @@ -363,22 +376,22 @@ Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/project/tscon Program root files: ["/home/src/projects/project/index.mts"] -Program options: {"target":1,"module":100,"moduleResolution":3,"traceResolution":true,"incremental":true,"strict":true,"types":[],"watch":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project/tsconfig.json"} +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.d.ts +/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 Semantic diagnostics in builder refreshed for:: -/a/lib/lib.d.ts +/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.d.ts (used version) +/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/node_modules/@types/bar2/index.d.ts (used version) /home/src/projects/project/index.mts (used version) @@ -388,7 +401,7 @@ PolledWatches:: {"pollingInterval":500} FsWatches:: -/a/lib/lib.d.ts: *new* +/a/lib/lib.es2022.full.d.ts: *new* {} /home/src/projects: *new* {} @@ -426,13 +439,13 @@ export {}; //// [/home/src/projects/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.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,"target":1},"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"} +{"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.d.ts", + "../../../../a/lib/lib.es2022.full.d.ts", "./node_modules/foo2/index.d.ts", "./node_modules/@types/bar2/index.d.ts", "./index.mts" @@ -444,7 +457,7 @@ export {}; ] ], "fileInfos": { - "../../../../a/lib/lib.d.ts": { + "../../../../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, @@ -491,8 +504,7 @@ export {}; ], "options": { "module": 100, - "strict": true, - "target": 1 + "strict": true }, "referencedMap": { "./index.mts": [ @@ -507,7 +519,7 @@ export {}; ] }, "semanticDiagnosticsPerFile": [ - "../../../../a/lib/lib.d.ts", + "../../../../a/lib/lib.es2022.full.d.ts", [ "./index.mts", [ @@ -558,7 +570,7 @@ export {}; ] }, "version": "FakeTSVersion", - "size": 1745 + "size": 1746 } @@ -580,11 +592,11 @@ Scheduling invalidateFailedLookup, Cancelled earlier one Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/project/node_modules/@types/bar/index.d.ts :: WatchInfo: /home/src/projects/project/node_modules 1 undefined Failed Lookup Locations Scheduling update Synchronizing program -[12:01:22 AM] File change detected. Starting incremental compilation... +[12:01:24 AM] File change detected. Starting incremental compilation... CreatingProgramWith:: roots: ["/home/src/projects/project/index.mts"] - options: {"target":1,"module":100,"moduleResolution":3,"traceResolution":true,"incremental":true,"strict":true,"types":[],"watch":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project/tsconfig.json"} + 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. @@ -690,15 +702,15 @@ File '/package.json' does not exist according to earlier cached lookups. 2 import { bar } from "bar";    ~~~~~ -[12:01:23 AM] Found 2 errors. Watching for file changes. +[12:01:25 AM] Found 2 errors. Watching for file changes. Program root files: ["/home/src/projects/project/index.mts"] -Program options: {"target":1,"module":100,"moduleResolution":3,"traceResolution":true,"incremental":true,"strict":true,"types":[],"watch":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project/tsconfig.json"} +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.d.ts +/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 @@ -728,11 +740,11 @@ Scheduling invalidateFailedLookup Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/project/node_modules/foo/index.d.ts :: WatchInfo: /home/src/projects/project/node_modules 1 undefined Failed Lookup Locations Scheduling update Synchronizing program -[12:01:26 AM] File change detected. Starting incremental compilation... +[12:01:28 AM] File change detected. Starting incremental compilation... CreatingProgramWith:: roots: ["/home/src/projects/project/index.mts"] - options: {"target":1,"module":100,"moduleResolution":3,"traceResolution":true,"incremental":true,"strict":true,"types":[],"watch":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project/tsconfig.json"} + 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. @@ -819,15 +831,15 @@ File '/package.json' does not exist according to earlier cached lookups. 2 import { bar } from "bar";    ~~~~~ -[12:01:27 AM] Found 2 errors. Watching for file changes. +[12:01:29 AM] Found 2 errors. Watching for file changes. Program root files: ["/home/src/projects/project/index.mts"] -Program options: {"target":1,"module":100,"moduleResolution":3,"traceResolution":true,"incremental":true,"strict":true,"types":[],"watch":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project/tsconfig.json"} +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.d.ts +/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 @@ -859,11 +871,11 @@ Scheduling invalidateFailedLookup Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/project/node_modules/@types/bar/index.d.ts :: WatchInfo: /home/src/projects/project/node_modules 1 undefined Failed Lookup Locations Scheduling update Synchronizing program -[12:01:30 AM] File change detected. Starting incremental compilation... +[12:01:32 AM] File change detected. Starting incremental compilation... CreatingProgramWith:: roots: ["/home/src/projects/project/index.mts"] - options: {"target":1,"module":100,"moduleResolution":3,"traceResolution":true,"incremental":true,"strict":true,"types":[],"watch":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project/tsconfig.json"} + 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. @@ -956,15 +968,15 @@ File '/package.json' does not exist according to earlier cached lookups. 2 import { bar } from "bar";    ~~~~~ -[12:01:31 AM] Found 2 errors. Watching for file changes. +[12:01:33 AM] Found 2 errors. Watching for file changes. Program root files: ["/home/src/projects/project/index.mts"] -Program options: {"target":1,"module":100,"moduleResolution":3,"traceResolution":true,"incremental":true,"strict":true,"types":[],"watch":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project/tsconfig.json"} +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.d.ts +/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 @@ -996,11 +1008,11 @@ Scheduling invalidateFailedLookup Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/project/node_modules/foo/index.d.ts :: WatchInfo: /home/src/projects/project/node_modules 1 undefined Failed Lookup Locations Scheduling update Synchronizing program -[12:01:35 AM] File change detected. Starting incremental compilation... +[12:01:37 AM] File change detected. Starting incremental compilation... CreatingProgramWith:: roots: ["/home/src/projects/project/index.mts"] - options: {"target":1,"module":100,"moduleResolution":3,"traceResolution":true,"incremental":true,"strict":true,"types":[],"watch":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project/tsconfig.json"} + 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. @@ -1074,15 +1086,15 @@ File '/package.json' does not exist according to earlier cached lookups. 2 import { bar } from "bar";    ~~~~~ -[12:01:36 AM] Found 2 errors. Watching for file changes. +[12:01:38 AM] Found 2 errors. Watching for file changes. Program root files: ["/home/src/projects/project/index.mts"] -Program options: {"target":1,"module":100,"moduleResolution":3,"traceResolution":true,"incremental":true,"strict":true,"types":[],"watch":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project/tsconfig.json"} +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.d.ts +/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 @@ -1124,11 +1136,11 @@ Scheduling invalidateFailedLookup Elapsed:: *ms FileWatcher:: Triggered with /home/src/projects/project/node_modules/@types/bar/package.json 1:: WatchInfo: /home/src/projects/project/node_modules/@types/bar/package.json 2000 undefined File location affecting resolution Scheduling update Synchronizing program -[12:01:40 AM] File change detected. Starting incremental compilation... +[12:01:42 AM] File change detected. Starting incremental compilation... CreatingProgramWith:: roots: ["/home/src/projects/project/index.mts"] - options: {"target":1,"module":100,"moduleResolution":3,"traceResolution":true,"incremental":true,"strict":true,"types":[],"watch":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project/tsconfig.json"} + 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. @@ -1179,15 +1191,15 @@ File '/package.json' does not exist according to earlier cached lookups. 1 import { foo } from "foo";    ~~~~~ -[12:01:47 AM] Found 1 error. Watching for file changes. +[12:01:49 AM] Found 1 error. Watching for file changes. Program root files: ["/home/src/projects/project/index.mts"] -Program options: {"target":1,"module":100,"moduleResolution":3,"traceResolution":true,"incremental":true,"strict":true,"types":[],"watch":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project/tsconfig.json"} +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.d.ts +/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 @@ -1206,7 +1218,7 @@ PolledWatches:: {"pollingInterval":500} FsWatches:: -/a/lib/lib.d.ts: +/a/lib/lib.es2022.full.d.ts: {} /home/src/projects: {} @@ -1243,13 +1255,13 @@ 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.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,"target":1},"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"} +{"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.d.ts", + "../../../../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", @@ -1263,7 +1275,7 @@ exitCode:: ExitStatus.undefined ] ], "fileInfos": { - "../../../../a/lib/lib.d.ts": { + "../../../../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, @@ -1320,8 +1332,7 @@ exitCode:: ExitStatus.undefined ], "options": { "module": 100, - "strict": true, - "target": 1 + "strict": true }, "referencedMap": { "./index.mts": [ @@ -1332,7 +1343,7 @@ exitCode:: ExitStatus.undefined }, "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ - "../../../../a/lib/lib.d.ts", + "../../../../a/lib/lib.es2022.full.d.ts", [ "./index.mts", [ @@ -1364,7 +1375,7 @@ exitCode:: ExitStatus.undefined ] }, "version": "FakeTSVersion", - "size": 1581 + "size": 1582 } @@ -1400,11 +1411,11 @@ 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 -[12:01:55 AM] File change detected. Starting incremental compilation... +[12:01:57 AM] File change detected. Starting incremental compilation... CreatingProgramWith:: roots: ["/home/src/projects/project/index.mts"] - options: {"target":1,"module":100,"moduleResolution":3,"traceResolution":true,"incremental":true,"strict":true,"types":[],"watch":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project/tsconfig.json"} + 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. @@ -1443,15 +1454,15 @@ 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 -[12:02:02 AM] Found 0 errors. Watching for file changes. +[12:02:04 AM] Found 0 errors. Watching for file changes. Program root files: ["/home/src/projects/project/index.mts"] -Program options: {"target":1,"module":100,"moduleResolution":3,"traceResolution":true,"incremental":true,"strict":true,"types":[],"watch":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project/tsconfig.json"} +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.d.ts +/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 @@ -1471,7 +1482,7 @@ PolledWatches *deleted*:: {"pollingInterval":500} FsWatches:: -/a/lib/lib.d.ts: +/a/lib/lib.es2022.full.d.ts: {} /home/src/projects: {} @@ -1510,13 +1521,13 @@ 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.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,"target":1},"fileIdsList":[[2,3,4,5]],"referencedMap":[[6,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,6,3,5,2,4]},"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","./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.d.ts", + "../../../../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", @@ -1532,7 +1543,7 @@ exitCode:: ExitStatus.undefined ] ], "fileInfos": { - "../../../../a/lib/lib.d.ts": { + "../../../../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, @@ -1598,8 +1609,7 @@ exitCode:: ExitStatus.undefined ], "options": { "module": 100, - "strict": true, - "target": 1 + "strict": true }, "referencedMap": { "./index.mts": [ @@ -1611,7 +1621,7 @@ exitCode:: ExitStatus.undefined }, "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ - "../../../../a/lib/lib.d.ts", + "../../../../a/lib/lib.es2022.full.d.ts", "./index.mts", "./node_modules/@types/bar/index.d.ts", "./node_modules/@types/bar2/index.d.ts", @@ -1620,7 +1630,7 @@ exitCode:: ExitStatus.undefined ] }, "version": "FakeTSVersion", - "size": 1372 + "size": 1373 } @@ -1653,11 +1663,11 @@ Scheduling invalidateFailedLookup Elapsed:: *ms FileWatcher:: Triggered with /home/src/projects/project/node_modules/@types/bar2/package.json 1:: WatchInfo: /home/src/projects/project/node_modules/@types/bar2/package.json 2000 undefined File location affecting resolution Scheduling update Synchronizing program -[12:02:09 AM] File change detected. Starting incremental compilation... +[12:02:11 AM] File change detected. Starting incremental compilation... CreatingProgramWith:: roots: ["/home/src/projects/project/index.mts"] - options: {"target":1,"module":100,"moduleResolution":3,"traceResolution":true,"incremental":true,"strict":true,"types":[],"watch":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project/tsconfig.json"} + 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. @@ -1751,15 +1761,15 @@ Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/node_modu 4 import { bar2 } from "bar2";    ~~~~~~ -[12:02:16 AM] Found 1 error. Watching for file changes. +[12:02:18 AM] Found 1 error. Watching for file changes. Program root files: ["/home/src/projects/project/index.mts"] -Program options: {"target":1,"module":100,"moduleResolution":3,"traceResolution":true,"incremental":true,"strict":true,"types":[],"watch":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project/tsconfig.json"} +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.d.ts +/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 @@ -1776,7 +1786,7 @@ PolledWatches:: {"pollingInterval":500} FsWatches:: -/a/lib/lib.d.ts: +/a/lib/lib.es2022.full.d.ts: {} /home/src/projects: {} @@ -1817,13 +1827,13 @@ 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.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,"target":1},"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"} +{"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.d.ts", + "../../../../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", @@ -1837,7 +1847,7 @@ exitCode:: ExitStatus.undefined ] ], "fileInfos": { - "../../../../a/lib/lib.d.ts": { + "../../../../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, @@ -1894,8 +1904,7 @@ exitCode:: ExitStatus.undefined ], "options": { "module": 100, - "strict": true, - "target": 1 + "strict": true }, "referencedMap": { "./index.mts": [ @@ -1906,7 +1915,7 @@ exitCode:: ExitStatus.undefined }, "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ - "../../../../a/lib/lib.d.ts", + "../../../../a/lib/lib.es2022.full.d.ts", [ "./index.mts", [ @@ -1938,7 +1947,7 @@ exitCode:: ExitStatus.undefined ] }, "version": "FakeTSVersion", - "size": 1576 + "size": 1577 } @@ -1973,11 +1982,11 @@ Scheduling invalidateFailedLookup Elapsed:: *ms FileWatcher:: Triggered with /home/src/projects/project/node_modules/foo2/package.json 1:: WatchInfo: /home/src/projects/project/node_modules/foo2/package.json 2000 undefined File location affecting resolution Scheduling update Synchronizing program -[12:02:24 AM] File change detected. Starting incremental compilation... +[12:02:26 AM] File change detected. Starting incremental compilation... CreatingProgramWith:: roots: ["/home/src/projects/project/index.mts"] - options: {"target":1,"module":100,"moduleResolution":3,"traceResolution":true,"incremental":true,"strict":true,"types":[],"watch":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project/tsconfig.json"} + 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. @@ -2053,15 +2062,15 @@ FileWatcher:: Close:: WatchInfo: /home/src/projects/project/node_modules/foo2/in 4 import { bar2 } from "bar2";    ~~~~~~ -[12:02:31 AM] Found 2 errors. Watching for file changes. +[12:02:33 AM] Found 2 errors. Watching for file changes. Program root files: ["/home/src/projects/project/index.mts"] -Program options: {"target":1,"module":100,"moduleResolution":3,"traceResolution":true,"incremental":true,"strict":true,"types":[],"watch":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project/tsconfig.json"} +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.d.ts +/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 @@ -2077,7 +2086,7 @@ PolledWatches:: {"pollingInterval":500} FsWatches:: -/a/lib/lib.d.ts: +/a/lib/lib.es2022.full.d.ts: {} /home/src/projects: {} @@ -2116,13 +2125,13 @@ 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.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,"target":1},"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"} +{"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.d.ts", + "../../../../a/lib/lib.es2022.full.d.ts", "./node_modules/foo/index.d.ts", "./node_modules/@types/bar/index.d.ts", "./index.mts" @@ -2134,7 +2143,7 @@ exitCode:: ExitStatus.undefined ] ], "fileInfos": { - "../../../../a/lib/lib.d.ts": { + "../../../../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, @@ -2182,8 +2191,7 @@ exitCode:: ExitStatus.undefined ], "options": { "module": 100, - "strict": true, - "target": 1 + "strict": true }, "referencedMap": { "./index.mts": [ @@ -2193,7 +2201,7 @@ exitCode:: ExitStatus.undefined }, "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ - "../../../../a/lib/lib.d.ts", + "../../../../a/lib/lib.es2022.full.d.ts", [ "./index.mts", [ @@ -2244,7 +2252,7 @@ exitCode:: ExitStatus.undefined ] }, "version": "FakeTSVersion", - "size": 1782 + "size": 1783 } @@ -2266,11 +2274,11 @@ Scheduling invalidateFailedLookup Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/project/node_modules/@types/bar2/index.d.ts :: WatchInfo: /home/src/projects/project/node_modules 1 undefined Failed Lookup Locations Scheduling update Synchronizing program -[12:02:36 AM] File change detected. Starting incremental compilation... +[12:02:38 AM] File change detected. Starting incremental compilation... CreatingProgramWith:: roots: ["/home/src/projects/project/index.mts"] - options: {"target":1,"module":100,"moduleResolution":3,"traceResolution":true,"incremental":true,"strict":true,"types":[],"watch":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project/tsconfig.json"} + 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. @@ -2376,15 +2384,15 @@ File '/package.json' does not exist according to earlier cached lookups. 4 import { bar2 } from "bar2";    ~~~~~~ -[12:02:37 AM] Found 2 errors. Watching for file changes. +[12:02:39 AM] Found 2 errors. Watching for file changes. Program root files: ["/home/src/projects/project/index.mts"] -Program options: {"target":1,"module":100,"moduleResolution":3,"traceResolution":true,"incremental":true,"strict":true,"types":[],"watch":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project/tsconfig.json"} +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.d.ts +/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 @@ -2414,11 +2422,11 @@ Scheduling invalidateFailedLookup Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/project/node_modules/foo2/index.d.ts :: WatchInfo: /home/src/projects/project/node_modules 1 undefined Failed Lookup Locations Scheduling update Synchronizing program -[12:02:40 AM] File change detected. Starting incremental compilation... +[12:02:42 AM] File change detected. Starting incremental compilation... CreatingProgramWith:: roots: ["/home/src/projects/project/index.mts"] - options: {"target":1,"module":100,"moduleResolution":3,"traceResolution":true,"incremental":true,"strict":true,"types":[],"watch":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project/tsconfig.json"} + 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. @@ -2505,15 +2513,15 @@ File '/package.json' does not exist according to earlier cached lookups. 4 import { bar2 } from "bar2";    ~~~~~~ -[12:02:41 AM] Found 2 errors. Watching for file changes. +[12:02:43 AM] Found 2 errors. Watching for file changes. Program root files: ["/home/src/projects/project/index.mts"] -Program options: {"target":1,"module":100,"moduleResolution":3,"traceResolution":true,"incremental":true,"strict":true,"types":[],"watch":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project/tsconfig.json"} +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.d.ts +/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 @@ -2545,11 +2553,11 @@ Scheduling invalidateFailedLookup Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/project/node_modules/@types/bar2/index.d.ts :: WatchInfo: /home/src/projects/project/node_modules 1 undefined Failed Lookup Locations Scheduling update Synchronizing program -[12:02:44 AM] File change detected. Starting incremental compilation... +[12:02:46 AM] File change detected. Starting incremental compilation... CreatingProgramWith:: roots: ["/home/src/projects/project/index.mts"] - options: {"target":1,"module":100,"moduleResolution":3,"traceResolution":true,"incremental":true,"strict":true,"types":[],"watch":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project/tsconfig.json"} + 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. @@ -2642,15 +2650,15 @@ File '/package.json' does not exist according to earlier cached lookups. 4 import { bar2 } from "bar2";    ~~~~~~ -[12:02:45 AM] Found 2 errors. Watching for file changes. +[12:02:47 AM] Found 2 errors. Watching for file changes. Program root files: ["/home/src/projects/project/index.mts"] -Program options: {"target":1,"module":100,"moduleResolution":3,"traceResolution":true,"incremental":true,"strict":true,"types":[],"watch":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project/tsconfig.json"} +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.d.ts +/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 @@ -2682,11 +2690,11 @@ Scheduling invalidateFailedLookup Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/project/node_modules/foo2/index.d.ts :: WatchInfo: /home/src/projects/project/node_modules 1 undefined Failed Lookup Locations Scheduling update Synchronizing program -[12:02:49 AM] File change detected. Starting incremental compilation... +[12:02:51 AM] File change detected. Starting incremental compilation... CreatingProgramWith:: roots: ["/home/src/projects/project/index.mts"] - options: {"target":1,"module":100,"moduleResolution":3,"traceResolution":true,"incremental":true,"strict":true,"types":[],"watch":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project/tsconfig.json"} + 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. @@ -2760,15 +2768,15 @@ File '/package.json' does not exist according to earlier cached lookups. 4 import { bar2 } from "bar2";    ~~~~~~ -[12:02:50 AM] Found 2 errors. Watching for file changes. +[12:02:52 AM] Found 2 errors. Watching for file changes. Program root files: ["/home/src/projects/project/index.mts"] -Program options: {"target":1,"module":100,"moduleResolution":3,"traceResolution":true,"incremental":true,"strict":true,"types":[],"watch":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project/tsconfig.json"} +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.d.ts +/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 diff --git a/tests/baselines/reference/tsserver/moduleResolution/node10Result.js b/tests/baselines/reference/tsserver/moduleResolution/node10Result.js index 7d06d88bd42..bd390b243b7 100644 --- a/tests/baselines/reference/tsserver/moduleResolution/node10Result.js +++ b/tests/baselines/reference/tsserver/moduleResolution/node10Result.js @@ -124,8 +124,21 @@ import { foo2 } from "foo2"; import { bar2 } from "bar2"; +//// [/a/lib/lib.es2022.full.d.ts] +/// +interface Boolean {} +interface Function {} +interface CallableFunction {} +interface NewableFunction {} +interface IArguments {} +interface Number { toExponential: any; } +interface Object {} +interface RegExp {} +interface String { charAt: any; } +interface Array { length: number; [n: number]: T; } + //// [/home/src/projects/project/tsconfig.json] -{"compilerOptions":{"target":"es5","module":"node16","moduleResolution":"node16","traceResolution":true,"incremental":true,"strict":true,"types":[]},"files":["index.mts"]} +{"compilerOptions":{"module":"node16","moduleResolution":"node16","traceResolution":true,"incremental":true,"strict":true,"types":[]},"files":["index.mts"]} //// [/a/lib/lib.d.ts] /// @@ -169,7 +182,6 @@ Info seq [hh:mm:ss:mss] Config: /home/src/projects/project/tsconfig.json : { "/home/src/projects/project/index.mts" ], "options": { - "target": 1, "module": 100, "moduleResolution": 3, "traceResolution": true, @@ -351,7 +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.d.ts 500 undefined WatchType: Closed Script info +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 @@ -369,14 +381,14 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/projects/pro 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 (4) - /a/lib/lib.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; }" + /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.d.ts - Default library for target 'es5' + ../../../../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" @@ -420,7 +432,6 @@ Info seq [hh:mm:ss:mss] event: "deferredSize": 0 }, "compilerOptions": { - "target": "es5", "module": "node16", "moduleResolution": "node16", "traceResolution": true, @@ -474,7 +485,7 @@ PolledWatches:: {"pollingInterval":500} FsWatches:: -/a/lib/lib.d.ts: *new* +/a/lib/lib.es2022.full.d.ts: *new* {} /home/src/projects: *new* {} @@ -801,7 +812,7 @@ Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlie 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 (4) - /a/lib/lib.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; }" + /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" @@ -945,7 +956,7 @@ Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlie 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 (4) - /a/lib/lib.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; }" + /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" @@ -1177,7 +1188,7 @@ Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlie 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 (4) - /a/lib/lib.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; }" + /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" @@ -1390,7 +1401,7 @@ Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlie 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 (4) - /a/lib/lib.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; }" + /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" @@ -1593,15 +1604,15 @@ Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlie 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 (5) - /a/lib/lib.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; }" + /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.d.ts - Default library for target 'es5' + ../../../../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" @@ -1795,7 +1806,7 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /ho 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 (6) - /a/lib/lib.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; }" + /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;" @@ -1803,8 +1814,8 @@ Info seq [hh:mm:ss:mss] Files (6) /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.d.ts - Default library for target 'es5' + ../../../../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" @@ -1839,7 +1850,7 @@ PolledWatches *deleted*:: {"pollingInterval":500} FsWatches:: -/a/lib/lib.d.ts: +/a/lib/lib.es2022.full.d.ts: {} /home/src/projects: {} @@ -2063,15 +2074,15 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho 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 (5) - /a/lib/lib.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; }" + /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.d.ts - Default library for target 'es5' + ../../../../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" @@ -2103,7 +2114,7 @@ PolledWatches:: {"pollingInterval":500} FsWatches:: -/a/lib/lib.d.ts: +/a/lib/lib.es2022.full.d.ts: {} /home/src/projects: {} @@ -2319,14 +2330,14 @@ Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlie 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 (4) - /a/lib/lib.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; }" + /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.d.ts - Default library for target 'es5' + ../../../../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" @@ -2574,7 +2585,7 @@ Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlie 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 (4) - /a/lib/lib.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; }" + /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" @@ -2798,7 +2809,7 @@ Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlie 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 (4) - /a/lib/lib.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; }" + /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" @@ -3030,7 +3041,7 @@ Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlie 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 (4) - /a/lib/lib.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; }" + /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" @@ -3243,7 +3254,7 @@ Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlie 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 (4) - /a/lib/lib.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; }" + /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"