diff --git a/src/testRunner/unittests/helpers.ts b/src/testRunner/unittests/helpers.ts index 9ec9b57e661..026fdf7df54 100644 --- a/src/testRunner/unittests/helpers.ts +++ b/src/testRunner/unittests/helpers.ts @@ -118,23 +118,24 @@ export function createTestCompilerHost(texts: readonly NamedSourceText[], target }); if (useCaseSensitiveFileNames === undefined) useCaseSensitiveFileNames = ts.sys && ts.sys.useCaseSensitiveFileNames; const getCanonicalFileName = ts.createGetCanonicalFileName(useCaseSensitiveFileNames); - const filesByPath = ts.mapEntries(files, (fileName, file) => [ts.toPath(fileName, "", getCanonicalFileName), file]); + const currentDirectory = "/"; + const filesByPath = ts.mapEntries(files, (fileName, file) => [ts.toPath(fileName, currentDirectory, getCanonicalFileName), file]); const trace: string[] = []; const result: TestCompilerHost = { trace: s => trace.push(s), getTrace: () => trace, clearTrace: () => trace.length = 0, - getSourceFile: fileName => filesByPath.get(ts.toPath(fileName, "", getCanonicalFileName)), + getSourceFile: fileName => filesByPath.get(ts.toPath(fileName, currentDirectory, getCanonicalFileName)), getDefaultLibFileName: () => "lib.d.ts", writeFile: ts.notImplemented, - getCurrentDirectory: () => "", + getCurrentDirectory: () => currentDirectory, getDirectories: () => [], getCanonicalFileName, useCaseSensitiveFileNames: () => useCaseSensitiveFileNames, getNewLine: () => ts.sys ? ts.sys.newLine : newLine, - fileExists: fileName => filesByPath.has(ts.toPath(fileName, "", getCanonicalFileName)), + fileExists: fileName => filesByPath.has(ts.toPath(fileName, currentDirectory, getCanonicalFileName)), readFile: fileName => { - const file = filesByPath.get(ts.toPath(fileName, "", getCanonicalFileName)); + const file = filesByPath.get(ts.toPath(fileName, currentDirectory, getCanonicalFileName)); return file && file.text; }, }; diff --git a/tests/baselines/reference/reuseProgramStructure/can-reuse-module-resolutions-from-non-modified-files.js b/tests/baselines/reference/reuseProgramStructure/can-reuse-module-resolutions-from-non-modified-files.js index 4c328472c5a..96526409f24 100644 --- a/tests/baselines/reference/reuseProgramStructure/can-reuse-module-resolutions-from-non-modified-files.js +++ b/tests/baselines/reference/reuseProgramStructure/can-reuse-module-resolutions-from-non-modified-files.js @@ -39,7 +39,7 @@ declare module './b1' { interface B { y: string; } } resolvedModules: ./b1: { "resolvedModule": { - "resolvedFileName": "b1.ts", + "resolvedFileName": "/b1.ts", "extension": ".ts", "isExternalLibraryImport": false, "resolvedUsingTsExtension": false @@ -49,11 +49,11 @@ resolvedTypeReferenceDirectiveNames: typerefs1: { "resolvedTypeReferenceDirective": { "primary": true, - "resolvedFileName": "node_modules/@types/typerefs1/index.d.ts", - "isExternalLibraryImport": false + "resolvedFileName": "/node_modules/@types/typerefs1/index.d.ts", + "isExternalLibraryImport": true }, "failedLookupLocations": [ - "node_modules/@types/typerefs1/package.json" + "/node_modules/@types/typerefs1/package.json" ] } @@ -66,7 +66,7 @@ import { BB } from './f1'; resolvedModules: ./b2: { "resolvedModule": { - "resolvedFileName": "b2.ts", + "resolvedFileName": "/b2.ts", "extension": ".ts", "isExternalLibraryImport": false, "resolvedUsingTsExtension": false @@ -74,7 +74,7 @@ resolvedModules: } ./f1: { "resolvedModule": { - "resolvedFileName": "f1.ts", + "resolvedFileName": "/f1.ts", "extension": ".ts", "isExternalLibraryImport": false, "resolvedUsingTsExtension": false @@ -84,36 +84,36 @@ resolvedTypeReferenceDirectiveNames: typerefs2: { "resolvedTypeReferenceDirective": { "primary": true, - "resolvedFileName": "node_modules/@types/typerefs2/index.d.ts", - "isExternalLibraryImport": false + "resolvedFileName": "/node_modules/@types/typerefs2/index.d.ts", + "isExternalLibraryImport": true }, "failedLookupLocations": [ - "node_modules/@types/typerefs2/package.json" + "/node_modules/@types/typerefs2/package.json" ] } -======== Resolving type reference directive 'typerefs1', containing file 'f1.ts', root directory 'node_modules/@types'. ======== -Resolving with primary search path 'node_modules/@types'. -File 'node_modules/@types/typerefs1/package.json' does not exist. -File 'node_modules/@types/typerefs1/index.d.ts' exists - use it as a name resolution result. -======== Type reference directive 'typerefs1' was successfully resolved to 'node_modules/@types/typerefs1/index.d.ts', primary: true. ======== -======== Resolving module './b1' from 'f1.ts'. ======== +======== Resolving type reference directive 'typerefs1', containing file '/f1.ts', root directory '/node_modules/@types'. ======== +Resolving with primary search path '/node_modules/@types'. +File '/node_modules/@types/typerefs1/package.json' does not exist. +File '/node_modules/@types/typerefs1/index.d.ts' exists - use it as a name resolution result. +======== Type reference directive 'typerefs1' was successfully resolved to '/node_modules/@types/typerefs1/index.d.ts', primary: true. ======== +======== Resolving module './b1' from '/f1.ts'. ======== Explicitly specified module resolution kind: 'Classic'. -File 'b1.ts' exists - use it as a name resolution result. -======== Module name './b1' was successfully resolved to 'b1.ts'. ======== -======== Resolving type reference directive 'typerefs2', containing file 'f2.ts', root directory 'node_modules/@types'. ======== -Resolving with primary search path 'node_modules/@types'. -File 'node_modules/@types/typerefs2/package.json' does not exist. -File 'node_modules/@types/typerefs2/index.d.ts' exists - use it as a name resolution result. -======== Type reference directive 'typerefs2' was successfully resolved to 'node_modules/@types/typerefs2/index.d.ts', primary: true. ======== -======== Resolving module './b2' from 'f2.ts'. ======== +File '/b1.ts' exists - use it as a name resolution result. +======== Module name './b1' was successfully resolved to '/b1.ts'. ======== +======== Resolving type reference directive 'typerefs2', containing file '/f2.ts', root directory '/node_modules/@types'. ======== +Resolving with primary search path '/node_modules/@types'. +File '/node_modules/@types/typerefs2/package.json' does not exist. +File '/node_modules/@types/typerefs2/index.d.ts' exists - use it as a name resolution result. +======== Type reference directive 'typerefs2' was successfully resolved to '/node_modules/@types/typerefs2/index.d.ts', primary: true. ======== +======== Resolving module './b2' from '/f2.ts'. ======== Explicitly specified module resolution kind: 'Classic'. -File 'b2.ts' exists - use it as a name resolution result. -======== Module name './b2' was successfully resolved to 'b2.ts'. ======== -======== Resolving module './f1' from 'f2.ts'. ======== +File '/b2.ts' exists - use it as a name resolution result. +======== Module name './b2' was successfully resolved to '/b2.ts'. ======== +======== Resolving module './f1' from '/f2.ts'. ======== Explicitly specified module resolution kind: 'Classic'. -File 'f1.ts' exists - use it as a name resolution result. -======== Module name './f1' was successfully resolved to 'f1.ts'. ======== +File '/f1.ts' exists - use it as a name resolution result. +======== Module name './f1' was successfully resolved to '/f1.ts'. ======== MissingPaths:: [] @@ -164,7 +164,7 @@ declare module './b1' { interface B { y: string; } } resolvedModules: ./b1: { "resolvedModule": { - "resolvedFileName": "b1.ts", + "resolvedFileName": "/b1.ts", "extension": ".ts", "isExternalLibraryImport": false, "resolvedUsingTsExtension": false @@ -174,11 +174,11 @@ resolvedTypeReferenceDirectiveNames: typerefs1: { "resolvedTypeReferenceDirective": { "primary": true, - "resolvedFileName": "node_modules/@types/typerefs1/index.d.ts", - "isExternalLibraryImport": false + "resolvedFileName": "/node_modules/@types/typerefs1/index.d.ts", + "isExternalLibraryImport": true }, "failedLookupLocations": [ - "node_modules/@types/typerefs1/package.json" + "/node_modules/@types/typerefs1/package.json" ] } @@ -191,7 +191,7 @@ import { BB } from './f1'; resolvedModules: ./b2: { "resolvedModule": { - "resolvedFileName": "b2.ts", + "resolvedFileName": "/b2.ts", "extension": ".ts", "isExternalLibraryImport": false, "resolvedUsingTsExtension": false @@ -199,7 +199,7 @@ resolvedModules: } ./f1: { "resolvedModule": { - "resolvedFileName": "f1.ts", + "resolvedFileName": "/f1.ts", "extension": ".ts", "isExternalLibraryImport": false, "resolvedUsingTsExtension": false @@ -209,26 +209,26 @@ resolvedTypeReferenceDirectiveNames: typerefs2: { "resolvedTypeReferenceDirective": { "primary": true, - "resolvedFileName": "node_modules/@types/typerefs2/index.d.ts", - "isExternalLibraryImport": false + "resolvedFileName": "/node_modules/@types/typerefs2/index.d.ts", + "isExternalLibraryImport": true }, "failedLookupLocations": [ - "node_modules/@types/typerefs2/package.json" + "/node_modules/@types/typerefs2/package.json" ] } -======== Resolving type reference directive 'typerefs1', containing file 'f1.ts', root directory 'node_modules/@types'. ======== -Resolving with primary search path 'node_modules/@types'. -File 'node_modules/@types/typerefs1/package.json' does not exist. -File 'node_modules/@types/typerefs1/index.d.ts' exists - use it as a name resolution result. -======== Type reference directive 'typerefs1' was successfully resolved to 'node_modules/@types/typerefs1/index.d.ts', primary: true. ======== -======== Resolving module './b1' from 'f1.ts'. ======== +======== Resolving type reference directive 'typerefs1', containing file '/f1.ts', root directory '/node_modules/@types'. ======== +Resolving with primary search path '/node_modules/@types'. +File '/node_modules/@types/typerefs1/package.json' does not exist. +File '/node_modules/@types/typerefs1/index.d.ts' exists - use it as a name resolution result. +======== Type reference directive 'typerefs1' was successfully resolved to '/node_modules/@types/typerefs1/index.d.ts', primary: true. ======== +======== Resolving module './b1' from '/f1.ts'. ======== Explicitly specified module resolution kind: 'Classic'. -File 'b1.ts' exists - use it as a name resolution result. -======== Module name './b1' was successfully resolved to 'b1.ts'. ======== -Reusing resolution of type reference directive 'typerefs2' from 'f2.ts' of old program, it was successfully resolved to 'node_modules/@types/typerefs2/index.d.ts'. -Reusing resolution of module './b2' from 'f2.ts' of old program, it was successfully resolved to 'b2.ts'. -Reusing resolution of module './f1' from 'f2.ts' of old program, it was successfully resolved to 'f1.ts'. +File '/b1.ts' exists - use it as a name resolution result. +======== Module name './b1' was successfully resolved to '/b1.ts'. ======== +Reusing resolution of type reference directive 'typerefs2' from '/f2.ts' of old program, it was successfully resolved to '/node_modules/@types/typerefs2/index.d.ts'. +Reusing resolution of module './b2' from '/f2.ts' of old program, it was successfully resolved to '/b2.ts'. +Reusing resolution of module './f1' from '/f2.ts' of old program, it was successfully resolved to '/f1.ts'. MissingPaths:: [ "lib.d.ts" @@ -280,7 +280,7 @@ declare module './b1' { interface B { y: string; } } resolvedModules: ./b1: { "resolvedModule": { - "resolvedFileName": "b1.ts", + "resolvedFileName": "/b1.ts", "extension": ".ts", "isExternalLibraryImport": false, "resolvedUsingTsExtension": false @@ -296,7 +296,7 @@ import { BB } from './f1'; resolvedModules: ./b2: { "resolvedModule": { - "resolvedFileName": "b2.ts", + "resolvedFileName": "/b2.ts", "extension": ".ts", "isExternalLibraryImport": false, "resolvedUsingTsExtension": false @@ -304,7 +304,7 @@ resolvedModules: } ./f1: { "resolvedModule": { - "resolvedFileName": "f1.ts", + "resolvedFileName": "/f1.ts", "extension": ".ts", "isExternalLibraryImport": false, "resolvedUsingTsExtension": false @@ -314,21 +314,21 @@ resolvedTypeReferenceDirectiveNames: typerefs2: { "resolvedTypeReferenceDirective": { "primary": true, - "resolvedFileName": "node_modules/@types/typerefs2/index.d.ts", - "isExternalLibraryImport": false + "resolvedFileName": "/node_modules/@types/typerefs2/index.d.ts", + "isExternalLibraryImport": true }, "failedLookupLocations": [ - "node_modules/@types/typerefs2/package.json" + "/node_modules/@types/typerefs2/package.json" ] } -======== Resolving module './b1' from 'f1.ts'. ======== +======== Resolving module './b1' from '/f1.ts'. ======== Explicitly specified module resolution kind: 'Classic'. -File 'b1.ts' exists - use it as a name resolution result. -======== Module name './b1' was successfully resolved to 'b1.ts'. ======== -Reusing resolution of type reference directive 'typerefs2' from 'f2.ts' of old program, it was successfully resolved to 'node_modules/@types/typerefs2/index.d.ts'. -Reusing resolution of module './b2' from 'f2.ts' of old program, it was successfully resolved to 'b2.ts'. -Reusing resolution of module './f1' from 'f2.ts' of old program, it was successfully resolved to 'f1.ts'. +File '/b1.ts' exists - use it as a name resolution result. +======== Module name './b1' was successfully resolved to '/b1.ts'. ======== +Reusing resolution of type reference directive 'typerefs2' from '/f2.ts' of old program, it was successfully resolved to '/node_modules/@types/typerefs2/index.d.ts'. +Reusing resolution of module './b2' from '/f2.ts' of old program, it was successfully resolved to '/b2.ts'. +Reusing resolution of module './f1' from '/f2.ts' of old program, it was successfully resolved to '/f1.ts'. MissingPaths:: [ "lib.d.ts" @@ -380,7 +380,7 @@ declare module './b1' { interface B { y: string; } } resolvedModules: ./b1: { "resolvedModule": { - "resolvedFileName": "b1.ts", + "resolvedFileName": "/b1.ts", "extension": ".ts", "isExternalLibraryImport": false, "resolvedUsingTsExtension": false @@ -396,7 +396,7 @@ import { BB } from './f1'; resolvedModules: ./b2: { "resolvedModule": { - "resolvedFileName": "b2.ts", + "resolvedFileName": "/b2.ts", "extension": ".ts", "isExternalLibraryImport": false, "resolvedUsingTsExtension": false @@ -404,7 +404,7 @@ resolvedModules: } ./f1: { "resolvedModule": { - "resolvedFileName": "f1.ts", + "resolvedFileName": "/f1.ts", "extension": ".ts", "isExternalLibraryImport": false, "resolvedUsingTsExtension": false @@ -414,21 +414,21 @@ resolvedTypeReferenceDirectiveNames: typerefs2: { "resolvedTypeReferenceDirective": { "primary": true, - "resolvedFileName": "node_modules/@types/typerefs2/index.d.ts", - "isExternalLibraryImport": false + "resolvedFileName": "/node_modules/@types/typerefs2/index.d.ts", + "isExternalLibraryImport": true }, "failedLookupLocations": [ - "node_modules/@types/typerefs2/package.json" + "/node_modules/@types/typerefs2/package.json" ] } -======== Resolving module './b1' from 'f1.ts'. ======== +======== Resolving module './b1' from '/f1.ts'. ======== Explicitly specified module resolution kind: 'Classic'. -File 'b1.ts' exists - use it as a name resolution result. -======== Module name './b1' was successfully resolved to 'b1.ts'. ======== -Reusing resolution of type reference directive 'typerefs2' from 'f2.ts' of old program, it was successfully resolved to 'node_modules/@types/typerefs2/index.d.ts'. -Reusing resolution of module './b2' from 'f2.ts' of old program, it was successfully resolved to 'b2.ts'. -Reusing resolution of module './f1' from 'f2.ts' of old program, it was successfully resolved to 'f1.ts'. +File '/b1.ts' exists - use it as a name resolution result. +======== Module name './b1' was successfully resolved to '/b1.ts'. ======== +Reusing resolution of type reference directive 'typerefs2' from '/f2.ts' of old program, it was successfully resolved to '/node_modules/@types/typerefs2/index.d.ts'. +Reusing resolution of module './b2' from '/f2.ts' of old program, it was successfully resolved to '/b2.ts'. +Reusing resolution of module './f1' from '/f2.ts' of old program, it was successfully resolved to '/f1.ts'. MissingPaths:: [ "lib.d.ts" @@ -479,7 +479,7 @@ declare module './b1' { interface B { y: string; } } resolvedModules: ./b1: { "resolvedModule": { - "resolvedFileName": "b1.ts", + "resolvedFileName": "/b1.ts", "extension": ".ts", "isExternalLibraryImport": false, "resolvedUsingTsExtension": false @@ -495,7 +495,7 @@ import { BB } from './f1'; resolvedModules: ./b2: { "resolvedModule": { - "resolvedFileName": "b2.ts", + "resolvedFileName": "/b2.ts", "extension": ".ts", "isExternalLibraryImport": false, "resolvedUsingTsExtension": false @@ -503,7 +503,7 @@ resolvedModules: } ./f1: { "resolvedModule": { - "resolvedFileName": "f1.ts", + "resolvedFileName": "/f1.ts", "extension": ".ts", "isExternalLibraryImport": false, "resolvedUsingTsExtension": false @@ -513,18 +513,18 @@ resolvedTypeReferenceDirectiveNames: typerefs2: { "resolvedTypeReferenceDirective": { "primary": true, - "resolvedFileName": "node_modules/@types/typerefs2/index.d.ts", - "isExternalLibraryImport": false + "resolvedFileName": "/node_modules/@types/typerefs2/index.d.ts", + "isExternalLibraryImport": true }, "failedLookupLocations": [ - "node_modules/@types/typerefs2/package.json" + "/node_modules/@types/typerefs2/package.json" ] } -======== Resolving module './b1' from 'f1.ts'. ======== +======== Resolving module './b1' from '/f1.ts'. ======== Explicitly specified module resolution kind: 'Classic'. -File 'b1.ts' exists - use it as a name resolution result. -======== Module name './b1' was successfully resolved to 'b1.ts'. ======== +File '/b1.ts' exists - use it as a name resolution result. +======== Module name './b1' was successfully resolved to '/b1.ts'. ======== MissingPaths:: [ "lib.d.ts" @@ -576,7 +576,7 @@ import { B } from './b1'; resolvedModules: ./b1: { "resolvedModule": { - "resolvedFileName": "b1.ts", + "resolvedFileName": "/b1.ts", "extension": ".ts", "isExternalLibraryImport": false, "resolvedUsingTsExtension": false @@ -592,7 +592,7 @@ import { BB } from './f1'; resolvedModules: ./b2: { "resolvedModule": { - "resolvedFileName": "b2.ts", + "resolvedFileName": "/b2.ts", "extension": ".ts", "isExternalLibraryImport": false, "resolvedUsingTsExtension": false @@ -600,7 +600,7 @@ resolvedModules: } ./f1: { "resolvedModule": { - "resolvedFileName": "f1.ts", + "resolvedFileName": "/f1.ts", "extension": ".ts", "isExternalLibraryImport": false, "resolvedUsingTsExtension": false @@ -610,21 +610,21 @@ resolvedTypeReferenceDirectiveNames: typerefs2: { "resolvedTypeReferenceDirective": { "primary": true, - "resolvedFileName": "node_modules/@types/typerefs2/index.d.ts", - "isExternalLibraryImport": false + "resolvedFileName": "/node_modules/@types/typerefs2/index.d.ts", + "isExternalLibraryImport": true }, "failedLookupLocations": [ - "node_modules/@types/typerefs2/package.json" + "/node_modules/@types/typerefs2/package.json" ] } -======== Resolving module './b1' from 'f1.ts'. ======== +======== Resolving module './b1' from '/f1.ts'. ======== Explicitly specified module resolution kind: 'Classic'. -File 'b1.ts' exists - use it as a name resolution result. -======== Module name './b1' was successfully resolved to 'b1.ts'. ======== -Reusing resolution of type reference directive 'typerefs2' from 'f2.ts' of old program, it was successfully resolved to 'node_modules/@types/typerefs2/index.d.ts'. -Reusing resolution of module './b2' from 'f2.ts' of old program, it was successfully resolved to 'b2.ts'. -Reusing resolution of module './f1' from 'f2.ts' of old program, it was successfully resolved to 'f1.ts'. +File '/b1.ts' exists - use it as a name resolution result. +======== Module name './b1' was successfully resolved to '/b1.ts'. ======== +Reusing resolution of type reference directive 'typerefs2' from '/f2.ts' of old program, it was successfully resolved to '/node_modules/@types/typerefs2/index.d.ts'. +Reusing resolution of module './b2' from '/f2.ts' of old program, it was successfully resolved to '/b2.ts'. +Reusing resolution of module './f1' from '/f2.ts' of old program, it was successfully resolved to '/f1.ts'. MissingPaths:: [ "lib.d.ts" @@ -683,7 +683,7 @@ import { BB } from './f1'; resolvedModules: ./b2: { "resolvedModule": { - "resolvedFileName": "b2.ts", + "resolvedFileName": "/b2.ts", "extension": ".ts", "isExternalLibraryImport": false, "resolvedUsingTsExtension": false @@ -691,7 +691,7 @@ resolvedModules: } ./f1: { "resolvedModule": { - "resolvedFileName": "f1.ts", + "resolvedFileName": "/f1.ts", "extension": ".ts", "isExternalLibraryImport": false, "resolvedUsingTsExtension": false @@ -701,17 +701,17 @@ resolvedTypeReferenceDirectiveNames: typerefs2: { "resolvedTypeReferenceDirective": { "primary": true, - "resolvedFileName": "node_modules/@types/typerefs2/index.d.ts", - "isExternalLibraryImport": false + "resolvedFileName": "/node_modules/@types/typerefs2/index.d.ts", + "isExternalLibraryImport": true }, "failedLookupLocations": [ - "node_modules/@types/typerefs2/package.json" + "/node_modules/@types/typerefs2/package.json" ] } -Reusing resolution of type reference directive 'typerefs2' from 'f2.ts' of old program, it was successfully resolved to 'node_modules/@types/typerefs2/index.d.ts'. -Reusing resolution of module './b2' from 'f2.ts' of old program, it was successfully resolved to 'b2.ts'. -Reusing resolution of module './f1' from 'f2.ts' of old program, it was successfully resolved to 'f1.ts'. +Reusing resolution of type reference directive 'typerefs2' from '/f2.ts' of old program, it was successfully resolved to '/node_modules/@types/typerefs2/index.d.ts'. +Reusing resolution of module './b2' from '/f2.ts' of old program, it was successfully resolved to '/b2.ts'. +Reusing resolution of module './f1' from '/f2.ts' of old program, it was successfully resolved to '/f1.ts'. MissingPaths:: [ "lib.d.ts" diff --git a/tests/baselines/reference/reuseProgramStructure/change-affects-imports.js b/tests/baselines/reference/reuseProgramStructure/change-affects-imports.js index a64a2078c70..251ecd50762 100644 --- a/tests/baselines/reference/reuseProgramStructure/change-affects-imports.js +++ b/tests/baselines/reference/reuseProgramStructure/change-affects-imports.js @@ -20,14 +20,14 @@ var x = 1 resolvedTypeReferenceDirectiveNames: typerefs: { "failedLookupLocations": [ - "node_modules/@types/typerefs/package.json", - "node_modules/@types/typerefs/index.d.ts", - "node_modules/typerefs/package.json", - "node_modules/typerefs.d.ts", - "node_modules/typerefs/index.d.ts", - "node_modules/@types/typerefs/package.json", - "node_modules/@types/typerefs.d.ts", - "node_modules/@types/typerefs/index.d.ts" + "/node_modules/@types/typerefs/package.json", + "/node_modules/@types/typerefs/index.d.ts", + "/node_modules/typerefs/package.json", + "/node_modules/typerefs.d.ts", + "/node_modules/typerefs/index.d.ts", + "/node_modules/@types/typerefs/package.json", + "/node_modules/@types/typerefs.d.ts", + "/node_modules/@types/typerefs/index.d.ts" ] } @@ -50,7 +50,7 @@ var z = 1; resolvedModules: b: { "resolvedModule": { - "resolvedFileName": "b.ts", + "resolvedFileName": "/b.ts", "extension": ".ts", "isExternalLibraryImport": false, "resolvedUsingTsExtension": false @@ -73,14 +73,14 @@ var x = 1 resolvedTypeReferenceDirectiveNames: typerefs: { "failedLookupLocations": [ - "node_modules/@types/typerefs/package.json", - "node_modules/@types/typerefs/index.d.ts", - "node_modules/typerefs/package.json", - "node_modules/typerefs.d.ts", - "node_modules/typerefs/index.d.ts", - "node_modules/@types/typerefs/package.json", - "node_modules/@types/typerefs.d.ts", - "node_modules/@types/typerefs/index.d.ts" + "/node_modules/@types/typerefs/package.json", + "/node_modules/@types/typerefs/index.d.ts", + "/node_modules/typerefs/package.json", + "/node_modules/typerefs.d.ts", + "/node_modules/typerefs/index.d.ts", + "/node_modules/@types/typerefs/package.json", + "/node_modules/@types/typerefs.d.ts", + "/node_modules/@types/typerefs/index.d.ts" ] } diff --git a/tests/baselines/reference/reuseProgramStructure/change-affects-tripleslash-references.js b/tests/baselines/reference/reuseProgramStructure/change-affects-tripleslash-references.js index 7c8ceb073f5..b23f7c50821 100644 --- a/tests/baselines/reference/reuseProgramStructure/change-affects-tripleslash-references.js +++ b/tests/baselines/reference/reuseProgramStructure/change-affects-tripleslash-references.js @@ -20,14 +20,14 @@ var x = 1 resolvedTypeReferenceDirectiveNames: typerefs: { "failedLookupLocations": [ - "node_modules/@types/typerefs/package.json", - "node_modules/@types/typerefs/index.d.ts", - "node_modules/typerefs/package.json", - "node_modules/typerefs.d.ts", - "node_modules/typerefs/index.d.ts", - "node_modules/@types/typerefs/package.json", - "node_modules/@types/typerefs.d.ts", - "node_modules/@types/typerefs/index.d.ts" + "/node_modules/@types/typerefs/package.json", + "/node_modules/@types/typerefs/index.d.ts", + "/node_modules/typerefs/package.json", + "/node_modules/typerefs.d.ts", + "/node_modules/typerefs/index.d.ts", + "/node_modules/@types/typerefs/package.json", + "/node_modules/@types/typerefs.d.ts", + "/node_modules/@types/typerefs/index.d.ts" ] } diff --git a/tests/baselines/reference/reuseProgramStructure/change-affects-type-directives.js b/tests/baselines/reference/reuseProgramStructure/change-affects-type-directives.js index b7dd21299eb..1a1638312ed 100644 --- a/tests/baselines/reference/reuseProgramStructure/change-affects-type-directives.js +++ b/tests/baselines/reference/reuseProgramStructure/change-affects-type-directives.js @@ -20,14 +20,14 @@ var x = 1 resolvedTypeReferenceDirectiveNames: typerefs: { "failedLookupLocations": [ - "node_modules/@types/typerefs/package.json", - "node_modules/@types/typerefs/index.d.ts", - "node_modules/typerefs/package.json", - "node_modules/typerefs.d.ts", - "node_modules/typerefs/index.d.ts", - "node_modules/@types/typerefs/package.json", - "node_modules/@types/typerefs.d.ts", - "node_modules/@types/typerefs/index.d.ts" + "/node_modules/@types/typerefs/package.json", + "/node_modules/@types/typerefs/index.d.ts", + "/node_modules/typerefs/package.json", + "/node_modules/typerefs.d.ts", + "/node_modules/typerefs/index.d.ts", + "/node_modules/@types/typerefs/package.json", + "/node_modules/@types/typerefs.d.ts", + "/node_modules/@types/typerefs/index.d.ts" ] } @@ -63,14 +63,14 @@ var x = 1 resolvedTypeReferenceDirectiveNames: typerefs1: { "failedLookupLocations": [ - "node_modules/@types/typerefs1/package.json", - "node_modules/@types/typerefs1/index.d.ts", - "node_modules/typerefs1/package.json", - "node_modules/typerefs1.d.ts", - "node_modules/typerefs1/index.d.ts", - "node_modules/@types/typerefs1/package.json", - "node_modules/@types/typerefs1.d.ts", - "node_modules/@types/typerefs1/index.d.ts" + "/node_modules/@types/typerefs1/package.json", + "/node_modules/@types/typerefs1/index.d.ts", + "/node_modules/typerefs1/package.json", + "/node_modules/typerefs1.d.ts", + "/node_modules/typerefs1/index.d.ts", + "/node_modules/@types/typerefs1/package.json", + "/node_modules/@types/typerefs1.d.ts", + "/node_modules/@types/typerefs1/index.d.ts" ] } diff --git a/tests/baselines/reference/reuseProgramStructure/change-affects-type-references.js b/tests/baselines/reference/reuseProgramStructure/change-affects-type-references.js index ad1dca80e4d..418f2c3f2b8 100644 --- a/tests/baselines/reference/reuseProgramStructure/change-affects-type-references.js +++ b/tests/baselines/reference/reuseProgramStructure/change-affects-type-references.js @@ -20,28 +20,28 @@ var x = 1 resolvedTypeReferenceDirectiveNames: typerefs: { "failedLookupLocations": [ - "node_modules/@types/typerefs/package.json", - "node_modules/@types/typerefs/index.d.ts", - "node_modules/typerefs/package.json", - "node_modules/typerefs.d.ts", - "node_modules/typerefs/index.d.ts", - "node_modules/@types/typerefs/package.json", - "node_modules/@types/typerefs.d.ts", - "node_modules/@types/typerefs/index.d.ts" + "/node_modules/@types/typerefs/package.json", + "/node_modules/@types/typerefs/index.d.ts", + "/node_modules/typerefs/package.json", + "/node_modules/typerefs.d.ts", + "/node_modules/typerefs/index.d.ts", + "/node_modules/@types/typerefs/package.json", + "/node_modules/@types/typerefs.d.ts", + "/node_modules/@types/typerefs/index.d.ts" ] } automaticTypeDirectiveResolutions: a: { "failedLookupLocations": [ - "node_modules/@types/a/package.json", - "node_modules/@types/a/index.d.ts", - "node_modules/a/package.json", - "node_modules/a.d.ts", - "node_modules/a/index.d.ts", - "node_modules/@types/a/package.json", - "node_modules/@types/a.d.ts", - "node_modules/@types/a/index.d.ts" + "/node_modules/@types/a/package.json", + "/node_modules/@types/a/index.d.ts", + "/node_modules/a/package.json", + "/node_modules/a.d.ts", + "/node_modules/a/index.d.ts", + "/node_modules/@types/a/package.json", + "/node_modules/@types/a.d.ts", + "/node_modules/@types/a/index.d.ts" ] } @@ -77,28 +77,28 @@ var x = 1 resolvedTypeReferenceDirectiveNames: typerefs: { "failedLookupLocations": [ - "node_modules/@types/typerefs/package.json", - "node_modules/@types/typerefs/index.d.ts", - "node_modules/typerefs/package.json", - "node_modules/typerefs.d.ts", - "node_modules/typerefs/index.d.ts", - "node_modules/@types/typerefs/package.json", - "node_modules/@types/typerefs.d.ts", - "node_modules/@types/typerefs/index.d.ts" + "/node_modules/@types/typerefs/package.json", + "/node_modules/@types/typerefs/index.d.ts", + "/node_modules/typerefs/package.json", + "/node_modules/typerefs.d.ts", + "/node_modules/typerefs/index.d.ts", + "/node_modules/@types/typerefs/package.json", + "/node_modules/@types/typerefs.d.ts", + "/node_modules/@types/typerefs/index.d.ts" ] } automaticTypeDirectiveResolutions: b: { "failedLookupLocations": [ - "node_modules/@types/b/package.json", - "node_modules/@types/b/index.d.ts", - "node_modules/b/package.json", - "node_modules/b.d.ts", - "node_modules/b/index.d.ts", - "node_modules/@types/b/package.json", - "node_modules/@types/b.d.ts", - "node_modules/@types/b/index.d.ts" + "/node_modules/@types/b/package.json", + "/node_modules/@types/b/index.d.ts", + "/node_modules/b/package.json", + "/node_modules/b.d.ts", + "/node_modules/b/index.d.ts", + "/node_modules/@types/b/package.json", + "/node_modules/@types/b.d.ts", + "/node_modules/@types/b/index.d.ts" ] } diff --git a/tests/baselines/reference/reuseProgramStructure/change-does-not-affect-imports-or-type-refs.js b/tests/baselines/reference/reuseProgramStructure/change-does-not-affect-imports-or-type-refs.js index 126a143f0c9..2debc2e7a19 100644 --- a/tests/baselines/reference/reuseProgramStructure/change-does-not-affect-imports-or-type-refs.js +++ b/tests/baselines/reference/reuseProgramStructure/change-does-not-affect-imports-or-type-refs.js @@ -20,14 +20,14 @@ var x = 1 resolvedTypeReferenceDirectiveNames: typerefs: { "failedLookupLocations": [ - "node_modules/@types/typerefs/package.json", - "node_modules/@types/typerefs/index.d.ts", - "node_modules/typerefs/package.json", - "node_modules/typerefs.d.ts", - "node_modules/typerefs/index.d.ts", - "node_modules/@types/typerefs/package.json", - "node_modules/@types/typerefs.d.ts", - "node_modules/@types/typerefs/index.d.ts" + "/node_modules/@types/typerefs/package.json", + "/node_modules/@types/typerefs/index.d.ts", + "/node_modules/typerefs/package.json", + "/node_modules/typerefs.d.ts", + "/node_modules/typerefs/index.d.ts", + "/node_modules/@types/typerefs/package.json", + "/node_modules/@types/typerefs.d.ts", + "/node_modules/@types/typerefs/index.d.ts" ] } @@ -64,14 +64,14 @@ var x = 100 resolvedTypeReferenceDirectiveNames: typerefs: { "failedLookupLocations": [ - "node_modules/@types/typerefs/package.json", - "node_modules/@types/typerefs/index.d.ts", - "node_modules/typerefs/package.json", - "node_modules/typerefs.d.ts", - "node_modules/typerefs/index.d.ts", - "node_modules/@types/typerefs/package.json", - "node_modules/@types/typerefs.d.ts", - "node_modules/@types/typerefs/index.d.ts" + "/node_modules/@types/typerefs/package.json", + "/node_modules/@types/typerefs/index.d.ts", + "/node_modules/typerefs/package.json", + "/node_modules/typerefs.d.ts", + "/node_modules/typerefs/index.d.ts", + "/node_modules/@types/typerefs/package.json", + "/node_modules/@types/typerefs.d.ts", + "/node_modules/@types/typerefs/index.d.ts" ] } diff --git a/tests/baselines/reference/reuseProgramStructure/change-doesnot-affect-type-references.js b/tests/baselines/reference/reuseProgramStructure/change-doesnot-affect-type-references.js index ebd73889412..c38d945c68c 100644 --- a/tests/baselines/reference/reuseProgramStructure/change-doesnot-affect-type-references.js +++ b/tests/baselines/reference/reuseProgramStructure/change-doesnot-affect-type-references.js @@ -20,28 +20,28 @@ var x = 1 resolvedTypeReferenceDirectiveNames: typerefs: { "failedLookupLocations": [ - "node_modules/@types/typerefs/package.json", - "node_modules/@types/typerefs/index.d.ts", - "node_modules/typerefs/package.json", - "node_modules/typerefs.d.ts", - "node_modules/typerefs/index.d.ts", - "node_modules/@types/typerefs/package.json", - "node_modules/@types/typerefs.d.ts", - "node_modules/@types/typerefs/index.d.ts" + "/node_modules/@types/typerefs/package.json", + "/node_modules/@types/typerefs/index.d.ts", + "/node_modules/typerefs/package.json", + "/node_modules/typerefs.d.ts", + "/node_modules/typerefs/index.d.ts", + "/node_modules/@types/typerefs/package.json", + "/node_modules/@types/typerefs.d.ts", + "/node_modules/@types/typerefs/index.d.ts" ] } automaticTypeDirectiveResolutions: a: { "failedLookupLocations": [ - "node_modules/@types/a/package.json", - "node_modules/@types/a/index.d.ts", - "node_modules/a/package.json", - "node_modules/a.d.ts", - "node_modules/a/index.d.ts", - "node_modules/@types/a/package.json", - "node_modules/@types/a.d.ts", - "node_modules/@types/a/index.d.ts" + "/node_modules/@types/a/package.json", + "/node_modules/@types/a/index.d.ts", + "/node_modules/a/package.json", + "/node_modules/a.d.ts", + "/node_modules/a/index.d.ts", + "/node_modules/@types/a/package.json", + "/node_modules/@types/a.d.ts", + "/node_modules/@types/a/index.d.ts" ] } @@ -77,28 +77,28 @@ var x = 1 resolvedTypeReferenceDirectiveNames: typerefs: { "failedLookupLocations": [ - "node_modules/@types/typerefs/package.json", - "node_modules/@types/typerefs/index.d.ts", - "node_modules/typerefs/package.json", - "node_modules/typerefs.d.ts", - "node_modules/typerefs/index.d.ts", - "node_modules/@types/typerefs/package.json", - "node_modules/@types/typerefs.d.ts", - "node_modules/@types/typerefs/index.d.ts" + "/node_modules/@types/typerefs/package.json", + "/node_modules/@types/typerefs/index.d.ts", + "/node_modules/typerefs/package.json", + "/node_modules/typerefs.d.ts", + "/node_modules/typerefs/index.d.ts", + "/node_modules/@types/typerefs/package.json", + "/node_modules/@types/typerefs.d.ts", + "/node_modules/@types/typerefs/index.d.ts" ] } automaticTypeDirectiveResolutions: a: { "failedLookupLocations": [ - "node_modules/@types/a/package.json", - "node_modules/@types/a/index.d.ts", - "node_modules/a/package.json", - "node_modules/a.d.ts", - "node_modules/a/index.d.ts", - "node_modules/@types/a/package.json", - "node_modules/@types/a.d.ts", - "node_modules/@types/a/index.d.ts" + "/node_modules/@types/a/package.json", + "/node_modules/@types/a/index.d.ts", + "/node_modules/a/package.json", + "/node_modules/a.d.ts", + "/node_modules/a/index.d.ts", + "/node_modules/@types/a/package.json", + "/node_modules/@types/a.d.ts", + "/node_modules/@types/a/index.d.ts" ] } diff --git a/tests/baselines/reference/reuseProgramStructure/config-path-changes.js b/tests/baselines/reference/reuseProgramStructure/config-path-changes.js index d751189dca0..b366f1da591 100644 --- a/tests/baselines/reference/reuseProgramStructure/config-path-changes.js +++ b/tests/baselines/reference/reuseProgramStructure/config-path-changes.js @@ -26,12 +26,12 @@ typerefs: { "/a/node_modules/@types/typerefs/index.d.ts", "/node_modules/@types/typerefs/package.json", "/node_modules/@types/typerefs/index.d.ts", - "node_modules/typerefs/package.json", - "node_modules/typerefs.d.ts", - "node_modules/typerefs/index.d.ts", - "node_modules/@types/typerefs/package.json", - "node_modules/@types/typerefs.d.ts", - "node_modules/@types/typerefs/index.d.ts" + "/node_modules/typerefs/package.json", + "/node_modules/typerefs.d.ts", + "/node_modules/typerefs/index.d.ts", + "/node_modules/@types/typerefs/package.json", + "/node_modules/@types/typerefs.d.ts", + "/node_modules/@types/typerefs/index.d.ts" ] } @@ -74,12 +74,12 @@ typerefs: { "/a/node_modules/@types/typerefs/index.d.ts", "/node_modules/@types/typerefs/package.json", "/node_modules/@types/typerefs/index.d.ts", - "node_modules/typerefs/package.json", - "node_modules/typerefs.d.ts", - "node_modules/typerefs/index.d.ts", - "node_modules/@types/typerefs/package.json", - "node_modules/@types/typerefs.d.ts", - "node_modules/@types/typerefs/index.d.ts" + "/node_modules/typerefs/package.json", + "/node_modules/typerefs.d.ts", + "/node_modules/typerefs/index.d.ts", + "/node_modules/@types/typerefs/package.json", + "/node_modules/@types/typerefs.d.ts", + "/node_modules/@types/typerefs/index.d.ts" ] } diff --git a/tests/baselines/reference/reuseProgramStructure/fetches-imports-after-npm-install.js b/tests/baselines/reference/reuseProgramStructure/fetches-imports-after-npm-install.js index f0c69c4133b..eda662540f2 100644 --- a/tests/baselines/reference/reuseProgramStructure/fetches-imports-after-npm-install.js +++ b/tests/baselines/reference/reuseProgramStructure/fetches-imports-after-npm-install.js @@ -6,21 +6,21 @@ const myX: number = a.x; resolvedModules: a: { "failedLookupLocations": [ - "node_modules/a/package.json", - "node_modules/a.ts", - "node_modules/a.tsx", - "node_modules/a.d.ts", - "node_modules/a/index.ts", - "node_modules/a/index.tsx", - "node_modules/a/index.d.ts", - "node_modules/@types/a/package.json", - "node_modules/@types/a.d.ts", - "node_modules/@types/a/index.d.ts", - "node_modules/a/package.json", - "node_modules/a.js", - "node_modules/a.jsx", - "node_modules/a/index.js", - "node_modules/a/index.jsx" + "/node_modules/a/package.json", + "/node_modules/a.ts", + "/node_modules/a.tsx", + "/node_modules/a.d.ts", + "/node_modules/a/index.ts", + "/node_modules/a/index.tsx", + "/node_modules/a/index.d.ts", + "/node_modules/@types/a/package.json", + "/node_modules/@types/a.d.ts", + "/node_modules/@types/a/index.d.ts", + "/node_modules/a/package.json", + "/node_modules/a.js", + "/node_modules/a.jsx", + "/node_modules/a/index.js", + "/node_modules/a/index.jsx" ] } @@ -29,27 +29,27 @@ File: file2.ts -======== Resolving module 'a' from 'file1.ts'. ======== +======== Resolving module 'a' from '/file1.ts'. ======== Explicitly specified module resolution kind: 'Node10'. Loading module 'a' from 'node_modules' folder, target file types: TypeScript, Declaration. Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. -File 'node_modules/a/package.json' does not exist. -File 'node_modules/a.ts' does not exist. -File 'node_modules/a.tsx' does not exist. -File 'node_modules/a.d.ts' does not exist. -File 'node_modules/a/index.ts' does not exist. -File 'node_modules/a/index.tsx' does not exist. -File 'node_modules/a/index.d.ts' does not exist. -File 'node_modules/@types/a/package.json' does not exist. -File 'node_modules/@types/a.d.ts' does not exist. -File 'node_modules/@types/a/index.d.ts' does not exist. +File '/node_modules/a/package.json' does not exist. +File '/node_modules/a.ts' does not exist. +File '/node_modules/a.tsx' does not exist. +File '/node_modules/a.d.ts' does not exist. +File '/node_modules/a/index.ts' does not exist. +File '/node_modules/a/index.tsx' does not exist. +File '/node_modules/a/index.d.ts' does not exist. +File '/node_modules/@types/a/package.json' does not exist. +File '/node_modules/@types/a.d.ts' does not exist. +File '/node_modules/@types/a/index.d.ts' does not exist. Loading module 'a' from 'node_modules' folder, target file types: JavaScript. Searching all ancestor node_modules directories for fallback extensions: JavaScript. -File 'node_modules/a/package.json' does not exist according to earlier cached lookups. -File 'node_modules/a.js' does not exist. -File 'node_modules/a.jsx' does not exist. -File 'node_modules/a/index.js' does not exist. -File 'node_modules/a/index.jsx' does not exist. +File '/node_modules/a/package.json' does not exist according to earlier cached lookups. +File '/node_modules/a.js' does not exist. +File '/node_modules/a.jsx' does not exist. +File '/node_modules/a/index.js' does not exist. +File '/node_modules/a/index.jsx' does not exist. ======== Module name 'a' was not resolved. ======== MissingPaths:: [ @@ -61,7 +61,7 @@ file1.ts(2,20): error TS2307: Cannot find module 'a' or its corresponding type d Program 2 Reused:: SafeModules -File: node_modules/a/index.d.ts +File: /node_modules/a/index.d.ts export declare let x: number; @@ -73,18 +73,18 @@ const myX: number = a.x; resolvedModules: a: { "resolvedModule": { - "resolvedFileName": "node_modules/a/index.d.ts", + "resolvedFileName": "/node_modules/a/index.d.ts", "extension": ".d.ts", "isExternalLibraryImport": true, "resolvedUsingTsExtension": false }, "failedLookupLocations": [ - "node_modules/a/package.json", - "node_modules/a.ts", - "node_modules/a.tsx", - "node_modules/a.d.ts", - "node_modules/a/index.ts", - "node_modules/a/index.tsx" + "/node_modules/a/package.json", + "/node_modules/a.ts", + "/node_modules/a.tsx", + "/node_modules/a.d.ts", + "/node_modules/a/index.ts", + "/node_modules/a/index.tsx" ] } @@ -93,18 +93,18 @@ File: file2.ts -======== Resolving module 'a' from 'file1.ts'. ======== +======== Resolving module 'a' from '/file1.ts'. ======== Explicitly specified module resolution kind: 'Node10'. Loading module 'a' from 'node_modules' folder, target file types: TypeScript, Declaration. Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. -File 'node_modules/a/package.json' does not exist. -File 'node_modules/a.ts' does not exist. -File 'node_modules/a.tsx' does not exist. -File 'node_modules/a.d.ts' does not exist. -File 'node_modules/a/index.ts' does not exist. -File 'node_modules/a/index.tsx' does not exist. -File 'node_modules/a/index.d.ts' exists - use it as a name resolution result. -======== Module name 'a' was successfully resolved to 'node_modules/a/index.d.ts'. ======== +File '/node_modules/a/package.json' does not exist. +File '/node_modules/a.ts' does not exist. +File '/node_modules/a.tsx' does not exist. +File '/node_modules/a.d.ts' does not exist. +File '/node_modules/a/index.ts' does not exist. +File '/node_modules/a/index.tsx' does not exist. +File '/node_modules/a/index.d.ts' exists - use it as a name resolution result. +======== Module name 'a' was successfully resolved to '/node_modules/a/index.d.ts'. ======== MissingPaths:: [] diff --git a/tests/baselines/reference/reuseProgramStructure/handles-file-preprocessing-dignostics-when-diagnostics-are-not-queried.js b/tests/baselines/reference/reuseProgramStructure/handles-file-preprocessing-dignostics-when-diagnostics-are-not-queried.js index b190df362b1..4dafc99ca0a 100644 --- a/tests/baselines/reference/reuseProgramStructure/handles-file-preprocessing-dignostics-when-diagnostics-are-not-queried.js +++ b/tests/baselines/reference/reuseProgramStructure/handles-file-preprocessing-dignostics-when-diagnostics-are-not-queried.js @@ -546,7 +546,7 @@ Skipped diagnostics Program 1 Reused:: Not Diagnostics: -/src/project/src/anotherFile.ts(4,22): error TS1149: File name '/src/project/node_modules/fp-ts/lib/struct.d.ts' differs from already included file name '/src/project/node_modules/fp-ts/lib/Struct.d.ts' only in casing. +src/project/src/anotherFile.ts(4,22): error TS1149: File name '/src/project/node_modules/fp-ts/lib/struct.d.ts' differs from already included file name '/src/project/node_modules/fp-ts/lib/Struct.d.ts' only in casing. The file is in the program because: Imported via "fp-ts/lib/Struct" from file '/src/project/src/struct.d.ts' Imported via "fp-ts/lib/struct" from file '/src/project/src/struct.d.ts' @@ -555,7 +555,7 @@ Diagnostics: Imported via "fp-ts/lib/Struct" from file '/src/project/src/oneMore.ts' Imported via "fp-ts/lib/struct" from file '/src/project/src/oneMore.ts' Root file specified for compilation -/src/project/src/anotherFile.ts(5,22): error TS1149: File name '/src/project/src/Struct.d.ts' differs from already included file name '/src/project/src/struct.d.ts' only in casing. +src/project/src/anotherFile.ts(5,22): error TS1149: File name '/src/project/src/Struct.d.ts' differs from already included file name '/src/project/src/struct.d.ts' only in casing. The file is in the program because: Root file specified for compilation Imported via "./Struct" from file '/src/project/src/struct.d.ts' @@ -564,7 +564,7 @@ Diagnostics: Imported via "./struct" from file '/src/project/src/anotherFile.ts' Imported via "./Struct" from file '/src/project/src/oneMore.ts' Imported via "./struct" from file '/src/project/src/oneMore.ts' -/src/project/src/oneMore.ts(4,22): error TS1149: File name '/src/project/node_modules/fp-ts/lib/struct.d.ts' differs from already included file name '/src/project/node_modules/fp-ts/lib/Struct.d.ts' only in casing. +src/project/src/oneMore.ts(4,22): error TS1149: File name '/src/project/node_modules/fp-ts/lib/struct.d.ts' differs from already included file name '/src/project/node_modules/fp-ts/lib/Struct.d.ts' only in casing. The file is in the program because: Imported via "fp-ts/lib/Struct" from file '/src/project/src/struct.d.ts' Imported via "fp-ts/lib/struct" from file '/src/project/src/struct.d.ts' @@ -573,7 +573,7 @@ Diagnostics: Imported via "fp-ts/lib/Struct" from file '/src/project/src/oneMore.ts' Imported via "fp-ts/lib/struct" from file '/src/project/src/oneMore.ts' Root file specified for compilation -/src/project/src/oneMore.ts(5,22): error TS1149: File name '/src/project/src/Struct.d.ts' differs from already included file name '/src/project/src/struct.d.ts' only in casing. +src/project/src/oneMore.ts(5,22): error TS1149: File name '/src/project/src/Struct.d.ts' differs from already included file name '/src/project/src/struct.d.ts' only in casing. The file is in the program because: Root file specified for compilation Imported via "./Struct" from file '/src/project/src/struct.d.ts' @@ -582,7 +582,7 @@ Diagnostics: Imported via "./struct" from file '/src/project/src/anotherFile.ts' Imported via "./Struct" from file '/src/project/src/oneMore.ts' Imported via "./struct" from file '/src/project/src/oneMore.ts' -/src/project/src/struct.d.ts(3,22): error TS1261: Already included file name '/src/project/node_modules/fp-ts/lib/Struct.d.ts' differs from file name '/src/project/node_modules/fp-ts/lib/struct.d.ts' only in casing. +src/project/src/struct.d.ts(3,22): error TS1261: Already included file name '/src/project/node_modules/fp-ts/lib/Struct.d.ts' differs from file name '/src/project/node_modules/fp-ts/lib/struct.d.ts' only in casing. The file is in the program because: Imported via "fp-ts/lib/Struct" from file '/src/project/src/struct.d.ts' Imported via "fp-ts/lib/struct" from file '/src/project/src/struct.d.ts' @@ -591,7 +591,7 @@ Diagnostics: Imported via "fp-ts/lib/Struct" from file '/src/project/src/oneMore.ts' Imported via "fp-ts/lib/struct" from file '/src/project/src/oneMore.ts' Root file specified for compilation -/src/project/src/struct.d.ts(4,22): error TS1149: File name '/src/project/node_modules/fp-ts/lib/struct.d.ts' differs from already included file name '/src/project/node_modules/fp-ts/lib/Struct.d.ts' only in casing. +src/project/src/struct.d.ts(4,22): error TS1149: File name '/src/project/node_modules/fp-ts/lib/struct.d.ts' differs from already included file name '/src/project/node_modules/fp-ts/lib/Struct.d.ts' only in casing. The file is in the program because: Imported via "fp-ts/lib/Struct" from file '/src/project/src/struct.d.ts' Imported via "fp-ts/lib/struct" from file '/src/project/src/struct.d.ts' @@ -600,7 +600,7 @@ Diagnostics: Imported via "fp-ts/lib/Struct" from file '/src/project/src/oneMore.ts' Imported via "fp-ts/lib/struct" from file '/src/project/src/oneMore.ts' Root file specified for compilation -/src/project/src/struct.d.ts(5,22): error TS1149: File name '/src/project/src/Struct.d.ts' differs from already included file name '/src/project/src/struct.d.ts' only in casing. +src/project/src/struct.d.ts(5,22): error TS1149: File name '/src/project/src/Struct.d.ts' differs from already included file name '/src/project/src/struct.d.ts' only in casing. The file is in the program because: Root file specified for compilation Imported via "./Struct" from file '/src/project/src/struct.d.ts' @@ -885,7 +885,7 @@ MissingPaths:: [ "lib.d.ts" ] -/src/project/src/anotherFile.ts(4,22): error TS1149: File name '/src/project/node_modules/fp-ts/lib/struct.d.ts' differs from already included file name '/src/project/node_modules/fp-ts/lib/Struct.d.ts' only in casing. +src/project/src/anotherFile.ts(4,22): error TS1149: File name '/src/project/node_modules/fp-ts/lib/struct.d.ts' differs from already included file name '/src/project/node_modules/fp-ts/lib/Struct.d.ts' only in casing. The file is in the program because: Imported via "fp-ts/lib/Struct" from file '/src/project/src/struct.d.ts' Imported via "fp-ts/lib/struct" from file '/src/project/src/struct.d.ts' @@ -894,7 +894,7 @@ MissingPaths:: [ Imported via "fp-ts/lib/Struct" from file '/src/project/src/oneMore.ts' Imported via "fp-ts/lib/struct" from file '/src/project/src/oneMore.ts' Root file specified for compilation -/src/project/src/anotherFile.ts(5,22): error TS1149: File name '/src/project/src/Struct.d.ts' differs from already included file name '/src/project/src/struct.d.ts' only in casing. +src/project/src/anotherFile.ts(5,22): error TS1149: File name '/src/project/src/Struct.d.ts' differs from already included file name '/src/project/src/struct.d.ts' only in casing. The file is in the program because: Root file specified for compilation Imported via "./Struct" from file '/src/project/src/struct.d.ts' @@ -903,7 +903,7 @@ MissingPaths:: [ Imported via "./struct" from file '/src/project/src/anotherFile.ts' Imported via "./Struct" from file '/src/project/src/oneMore.ts' Imported via "./struct" from file '/src/project/src/oneMore.ts' -/src/project/src/oneMore.ts(4,22): error TS1149: File name '/src/project/node_modules/fp-ts/lib/struct.d.ts' differs from already included file name '/src/project/node_modules/fp-ts/lib/Struct.d.ts' only in casing. +src/project/src/oneMore.ts(4,22): error TS1149: File name '/src/project/node_modules/fp-ts/lib/struct.d.ts' differs from already included file name '/src/project/node_modules/fp-ts/lib/Struct.d.ts' only in casing. The file is in the program because: Imported via "fp-ts/lib/Struct" from file '/src/project/src/struct.d.ts' Imported via "fp-ts/lib/struct" from file '/src/project/src/struct.d.ts' @@ -912,7 +912,7 @@ MissingPaths:: [ Imported via "fp-ts/lib/Struct" from file '/src/project/src/oneMore.ts' Imported via "fp-ts/lib/struct" from file '/src/project/src/oneMore.ts' Root file specified for compilation -/src/project/src/oneMore.ts(5,22): error TS1149: File name '/src/project/src/Struct.d.ts' differs from already included file name '/src/project/src/struct.d.ts' only in casing. +src/project/src/oneMore.ts(5,22): error TS1149: File name '/src/project/src/Struct.d.ts' differs from already included file name '/src/project/src/struct.d.ts' only in casing. The file is in the program because: Root file specified for compilation Imported via "./Struct" from file '/src/project/src/struct.d.ts' @@ -921,7 +921,7 @@ MissingPaths:: [ Imported via "./struct" from file '/src/project/src/anotherFile.ts' Imported via "./Struct" from file '/src/project/src/oneMore.ts' Imported via "./struct" from file '/src/project/src/oneMore.ts' -/src/project/src/struct.d.ts(7,22): error TS1261: Already included file name '/src/project/node_modules/fp-ts/lib/Struct.d.ts' differs from file name '/src/project/node_modules/fp-ts/lib/struct.d.ts' only in casing. +src/project/src/struct.d.ts(7,22): error TS1261: Already included file name '/src/project/node_modules/fp-ts/lib/Struct.d.ts' differs from file name '/src/project/node_modules/fp-ts/lib/struct.d.ts' only in casing. The file is in the program because: Imported via "fp-ts/lib/Struct" from file '/src/project/src/struct.d.ts' Imported via "fp-ts/lib/struct" from file '/src/project/src/struct.d.ts' @@ -930,7 +930,7 @@ MissingPaths:: [ Imported via "fp-ts/lib/Struct" from file '/src/project/src/oneMore.ts' Imported via "fp-ts/lib/struct" from file '/src/project/src/oneMore.ts' Root file specified for compilation -/src/project/src/struct.d.ts(8,22): error TS1149: File name '/src/project/node_modules/fp-ts/lib/struct.d.ts' differs from already included file name '/src/project/node_modules/fp-ts/lib/Struct.d.ts' only in casing. +src/project/src/struct.d.ts(8,22): error TS1149: File name '/src/project/node_modules/fp-ts/lib/struct.d.ts' differs from already included file name '/src/project/node_modules/fp-ts/lib/Struct.d.ts' only in casing. The file is in the program because: Imported via "fp-ts/lib/Struct" from file '/src/project/src/struct.d.ts' Imported via "fp-ts/lib/struct" from file '/src/project/src/struct.d.ts' @@ -939,7 +939,7 @@ MissingPaths:: [ Imported via "fp-ts/lib/Struct" from file '/src/project/src/oneMore.ts' Imported via "fp-ts/lib/struct" from file '/src/project/src/oneMore.ts' Root file specified for compilation -/src/project/src/struct.d.ts(9,22): error TS1149: File name '/src/project/src/Struct.d.ts' differs from already included file name '/src/project/src/struct.d.ts' only in casing. +src/project/src/struct.d.ts(9,22): error TS1149: File name '/src/project/src/Struct.d.ts' differs from already included file name '/src/project/src/struct.d.ts' only in casing. The file is in the program because: Root file specified for compilation Imported via "./Struct" from file '/src/project/src/struct.d.ts' @@ -953,7 +953,7 @@ MissingPaths:: [ Program 2 Reused:: Completely Diagnostics: -/src/project/src/anotherFile.ts(4,22): error TS1149: File name '/src/project/node_modules/fp-ts/lib/struct.d.ts' differs from already included file name '/src/project/node_modules/fp-ts/lib/Struct.d.ts' only in casing. +src/project/src/anotherFile.ts(4,22): error TS1149: File name '/src/project/node_modules/fp-ts/lib/struct.d.ts' differs from already included file name '/src/project/node_modules/fp-ts/lib/Struct.d.ts' only in casing. The file is in the program because: Imported via "fp-ts/lib/Struct" from file '/src/project/src/struct.d.ts' Imported via "fp-ts/lib/struct" from file '/src/project/src/struct.d.ts' @@ -962,7 +962,7 @@ Diagnostics: Imported via "fp-ts/lib/Struct" from file '/src/project/src/oneMore.ts' Imported via "fp-ts/lib/struct" from file '/src/project/src/oneMore.ts' Root file specified for compilation -/src/project/src/anotherFile.ts(5,22): error TS1149: File name '/src/project/src/Struct.d.ts' differs from already included file name '/src/project/src/struct.d.ts' only in casing. +src/project/src/anotherFile.ts(5,22): error TS1149: File name '/src/project/src/Struct.d.ts' differs from already included file name '/src/project/src/struct.d.ts' only in casing. The file is in the program because: Root file specified for compilation Imported via "./Struct" from file '/src/project/src/struct.d.ts' @@ -971,7 +971,7 @@ Diagnostics: Imported via "./struct" from file '/src/project/src/anotherFile.ts' Imported via "./Struct" from file '/src/project/src/oneMore.ts' Imported via "./struct" from file '/src/project/src/oneMore.ts' -/src/project/src/oneMore.ts(4,22): error TS1149: File name '/src/project/node_modules/fp-ts/lib/struct.d.ts' differs from already included file name '/src/project/node_modules/fp-ts/lib/Struct.d.ts' only in casing. +src/project/src/oneMore.ts(4,22): error TS1149: File name '/src/project/node_modules/fp-ts/lib/struct.d.ts' differs from already included file name '/src/project/node_modules/fp-ts/lib/Struct.d.ts' only in casing. The file is in the program because: Imported via "fp-ts/lib/Struct" from file '/src/project/src/struct.d.ts' Imported via "fp-ts/lib/struct" from file '/src/project/src/struct.d.ts' @@ -980,7 +980,7 @@ Diagnostics: Imported via "fp-ts/lib/Struct" from file '/src/project/src/oneMore.ts' Imported via "fp-ts/lib/struct" from file '/src/project/src/oneMore.ts' Root file specified for compilation -/src/project/src/oneMore.ts(5,22): error TS1149: File name '/src/project/src/Struct.d.ts' differs from already included file name '/src/project/src/struct.d.ts' only in casing. +src/project/src/oneMore.ts(5,22): error TS1149: File name '/src/project/src/Struct.d.ts' differs from already included file name '/src/project/src/struct.d.ts' only in casing. The file is in the program because: Root file specified for compilation Imported via "./Struct" from file '/src/project/src/struct.d.ts' @@ -989,7 +989,7 @@ Diagnostics: Imported via "./struct" from file '/src/project/src/anotherFile.ts' Imported via "./Struct" from file '/src/project/src/oneMore.ts' Imported via "./struct" from file '/src/project/src/oneMore.ts' -/src/project/src/struct.d.ts(5,22): error TS1261: Already included file name '/src/project/node_modules/fp-ts/lib/Struct.d.ts' differs from file name '/src/project/node_modules/fp-ts/lib/struct.d.ts' only in casing. +src/project/src/struct.d.ts(5,22): error TS1261: Already included file name '/src/project/node_modules/fp-ts/lib/Struct.d.ts' differs from file name '/src/project/node_modules/fp-ts/lib/struct.d.ts' only in casing. The file is in the program because: Imported via "fp-ts/lib/Struct" from file '/src/project/src/struct.d.ts' Imported via "fp-ts/lib/struct" from file '/src/project/src/struct.d.ts' @@ -998,7 +998,7 @@ Diagnostics: Imported via "fp-ts/lib/Struct" from file '/src/project/src/oneMore.ts' Imported via "fp-ts/lib/struct" from file '/src/project/src/oneMore.ts' Root file specified for compilation -/src/project/src/struct.d.ts(6,22): error TS1149: File name '/src/project/node_modules/fp-ts/lib/struct.d.ts' differs from already included file name '/src/project/node_modules/fp-ts/lib/Struct.d.ts' only in casing. +src/project/src/struct.d.ts(6,22): error TS1149: File name '/src/project/node_modules/fp-ts/lib/struct.d.ts' differs from already included file name '/src/project/node_modules/fp-ts/lib/Struct.d.ts' only in casing. The file is in the program because: Imported via "fp-ts/lib/Struct" from file '/src/project/src/struct.d.ts' Imported via "fp-ts/lib/struct" from file '/src/project/src/struct.d.ts' @@ -1007,7 +1007,7 @@ Diagnostics: Imported via "fp-ts/lib/Struct" from file '/src/project/src/oneMore.ts' Imported via "fp-ts/lib/struct" from file '/src/project/src/oneMore.ts' Root file specified for compilation -/src/project/src/struct.d.ts(7,22): error TS1149: File name '/src/project/src/Struct.d.ts' differs from already included file name '/src/project/src/struct.d.ts' only in casing. +src/project/src/struct.d.ts(7,22): error TS1149: File name '/src/project/src/Struct.d.ts' differs from already included file name '/src/project/src/struct.d.ts' only in casing. The file is in the program because: Root file specified for compilation Imported via "./Struct" from file '/src/project/src/struct.d.ts' @@ -1507,7 +1507,7 @@ MissingPaths:: [ "lib.d.ts" ] -/src/project/src/anotherFile.ts(4,22): error TS1149: File name '/src/project/node_modules/fp-ts/lib/struct.d.ts' differs from already included file name '/src/project/node_modules/fp-ts/lib/Struct.d.ts' only in casing. +src/project/src/anotherFile.ts(4,22): error TS1149: File name '/src/project/node_modules/fp-ts/lib/struct.d.ts' differs from already included file name '/src/project/node_modules/fp-ts/lib/Struct.d.ts' only in casing. The file is in the program because: Imported via "fp-ts/lib/Struct" from file '/src/project/src/struct.d.ts' Imported via "fp-ts/lib/Struct" from file '/src/project/src/anotherFile.ts' @@ -1515,7 +1515,7 @@ MissingPaths:: [ Imported via "fp-ts/lib/Struct" from file '/src/project/src/oneMore.ts' Imported via "fp-ts/lib/struct" from file '/src/project/src/oneMore.ts' Root file specified for compilation -/src/project/src/anotherFile.ts(5,22): error TS1149: File name '/src/project/src/Struct.d.ts' differs from already included file name '/src/project/src/struct.d.ts' only in casing. +src/project/src/anotherFile.ts(5,22): error TS1149: File name '/src/project/src/Struct.d.ts' differs from already included file name '/src/project/src/struct.d.ts' only in casing. The file is in the program because: Root file specified for compilation Imported via "./Struct" from file '/src/project/src/struct.d.ts' @@ -1523,7 +1523,7 @@ MissingPaths:: [ Imported via "./struct" from file '/src/project/src/anotherFile.ts' Imported via "./Struct" from file '/src/project/src/oneMore.ts' Imported via "./struct" from file '/src/project/src/oneMore.ts' -/src/project/src/oneMore.ts(4,22): error TS1149: File name '/src/project/node_modules/fp-ts/lib/struct.d.ts' differs from already included file name '/src/project/node_modules/fp-ts/lib/Struct.d.ts' only in casing. +src/project/src/oneMore.ts(4,22): error TS1149: File name '/src/project/node_modules/fp-ts/lib/struct.d.ts' differs from already included file name '/src/project/node_modules/fp-ts/lib/Struct.d.ts' only in casing. The file is in the program because: Imported via "fp-ts/lib/Struct" from file '/src/project/src/struct.d.ts' Imported via "fp-ts/lib/Struct" from file '/src/project/src/anotherFile.ts' @@ -1531,7 +1531,7 @@ MissingPaths:: [ Imported via "fp-ts/lib/Struct" from file '/src/project/src/oneMore.ts' Imported via "fp-ts/lib/struct" from file '/src/project/src/oneMore.ts' Root file specified for compilation -/src/project/src/oneMore.ts(5,22): error TS1149: File name '/src/project/src/Struct.d.ts' differs from already included file name '/src/project/src/struct.d.ts' only in casing. +src/project/src/oneMore.ts(5,22): error TS1149: File name '/src/project/src/Struct.d.ts' differs from already included file name '/src/project/src/struct.d.ts' only in casing. The file is in the program because: Root file specified for compilation Imported via "./Struct" from file '/src/project/src/struct.d.ts' @@ -1539,7 +1539,7 @@ MissingPaths:: [ Imported via "./struct" from file '/src/project/src/anotherFile.ts' Imported via "./Struct" from file '/src/project/src/oneMore.ts' Imported via "./struct" from file '/src/project/src/oneMore.ts' -/src/project/src/struct.d.ts(3,22): error TS1261: Already included file name '/src/project/node_modules/fp-ts/lib/Struct.d.ts' differs from file name '/src/project/node_modules/fp-ts/lib/struct.d.ts' only in casing. +src/project/src/struct.d.ts(3,22): error TS1261: Already included file name '/src/project/node_modules/fp-ts/lib/Struct.d.ts' differs from file name '/src/project/node_modules/fp-ts/lib/struct.d.ts' only in casing. The file is in the program because: Imported via "fp-ts/lib/Struct" from file '/src/project/src/struct.d.ts' Imported via "fp-ts/lib/Struct" from file '/src/project/src/anotherFile.ts' @@ -1547,7 +1547,7 @@ MissingPaths:: [ Imported via "fp-ts/lib/Struct" from file '/src/project/src/oneMore.ts' Imported via "fp-ts/lib/struct" from file '/src/project/src/oneMore.ts' Root file specified for compilation -/src/project/src/struct.d.ts(4,22): error TS1149: File name '/src/project/src/Struct.d.ts' differs from already included file name '/src/project/src/struct.d.ts' only in casing. +src/project/src/struct.d.ts(4,22): error TS1149: File name '/src/project/src/Struct.d.ts' differs from already included file name '/src/project/src/struct.d.ts' only in casing. The file is in the program because: Root file specified for compilation Imported via "./Struct" from file '/src/project/src/struct.d.ts' @@ -1560,7 +1560,7 @@ MissingPaths:: [ Program 4 Reused:: SafeModules Diagnostics: -/src/project/src/anotherFile.ts(4,22): error TS1149: File name '/src/project/node_modules/fp-ts/lib/struct.d.ts' differs from already included file name '/src/project/node_modules/fp-ts/lib/Struct.d.ts' only in casing. +src/project/src/anotherFile.ts(4,22): error TS1149: File name '/src/project/node_modules/fp-ts/lib/struct.d.ts' differs from already included file name '/src/project/node_modules/fp-ts/lib/Struct.d.ts' only in casing. The file is in the program because: Imported via "fp-ts/lib/Struct" from file '/src/project/src/struct.d.ts' Imported via "fp-ts/lib/struct" from file '/src/project/src/struct.d.ts' @@ -1569,7 +1569,7 @@ Diagnostics: Imported via "fp-ts/lib/Struct" from file '/src/project/src/oneMore.ts' Imported via "fp-ts/lib/struct" from file '/src/project/src/oneMore.ts' Root file specified for compilation -/src/project/src/anotherFile.ts(5,22): error TS1149: File name '/src/project/src/Struct.d.ts' differs from already included file name '/src/project/src/struct.d.ts' only in casing. +src/project/src/anotherFile.ts(5,22): error TS1149: File name '/src/project/src/Struct.d.ts' differs from already included file name '/src/project/src/struct.d.ts' only in casing. The file is in the program because: Root file specified for compilation Imported via "./Struct" from file '/src/project/src/struct.d.ts' @@ -1577,7 +1577,7 @@ Diagnostics: Imported via "./struct" from file '/src/project/src/anotherFile.ts' Imported via "./Struct" from file '/src/project/src/oneMore.ts' Imported via "./struct" from file '/src/project/src/oneMore.ts' -/src/project/src/oneMore.ts(4,22): error TS1149: File name '/src/project/node_modules/fp-ts/lib/struct.d.ts' differs from already included file name '/src/project/node_modules/fp-ts/lib/Struct.d.ts' only in casing. +src/project/src/oneMore.ts(4,22): error TS1149: File name '/src/project/node_modules/fp-ts/lib/struct.d.ts' differs from already included file name '/src/project/node_modules/fp-ts/lib/Struct.d.ts' only in casing. The file is in the program because: Imported via "fp-ts/lib/Struct" from file '/src/project/src/struct.d.ts' Imported via "fp-ts/lib/struct" from file '/src/project/src/struct.d.ts' @@ -1586,7 +1586,7 @@ Diagnostics: Imported via "fp-ts/lib/Struct" from file '/src/project/src/oneMore.ts' Imported via "fp-ts/lib/struct" from file '/src/project/src/oneMore.ts' Root file specified for compilation -/src/project/src/oneMore.ts(5,22): error TS1149: File name '/src/project/src/Struct.d.ts' differs from already included file name '/src/project/src/struct.d.ts' only in casing. +src/project/src/oneMore.ts(5,22): error TS1149: File name '/src/project/src/Struct.d.ts' differs from already included file name '/src/project/src/struct.d.ts' only in casing. The file is in the program because: Root file specified for compilation Imported via "./Struct" from file '/src/project/src/struct.d.ts' @@ -1594,7 +1594,7 @@ Diagnostics: Imported via "./struct" from file '/src/project/src/anotherFile.ts' Imported via "./Struct" from file '/src/project/src/oneMore.ts' Imported via "./struct" from file '/src/project/src/oneMore.ts' -/src/project/src/struct.d.ts(3,22): error TS1261: Already included file name '/src/project/node_modules/fp-ts/lib/Struct.d.ts' differs from file name '/src/project/node_modules/fp-ts/lib/struct.d.ts' only in casing. +src/project/src/struct.d.ts(3,22): error TS1261: Already included file name '/src/project/node_modules/fp-ts/lib/Struct.d.ts' differs from file name '/src/project/node_modules/fp-ts/lib/struct.d.ts' only in casing. The file is in the program because: Imported via "fp-ts/lib/Struct" from file '/src/project/src/struct.d.ts' Imported via "fp-ts/lib/struct" from file '/src/project/src/struct.d.ts' @@ -1603,7 +1603,7 @@ Diagnostics: Imported via "fp-ts/lib/Struct" from file '/src/project/src/oneMore.ts' Imported via "fp-ts/lib/struct" from file '/src/project/src/oneMore.ts' Root file specified for compilation -/src/project/src/struct.d.ts(4,22): error TS1149: File name '/src/project/node_modules/fp-ts/lib/struct.d.ts' differs from already included file name '/src/project/node_modules/fp-ts/lib/Struct.d.ts' only in casing. +src/project/src/struct.d.ts(4,22): error TS1149: File name '/src/project/node_modules/fp-ts/lib/struct.d.ts' differs from already included file name '/src/project/node_modules/fp-ts/lib/Struct.d.ts' only in casing. The file is in the program because: Imported via "fp-ts/lib/Struct" from file '/src/project/src/struct.d.ts' Imported via "fp-ts/lib/struct" from file '/src/project/src/struct.d.ts' @@ -1612,7 +1612,7 @@ Diagnostics: Imported via "fp-ts/lib/Struct" from file '/src/project/src/oneMore.ts' Imported via "fp-ts/lib/struct" from file '/src/project/src/oneMore.ts' Root file specified for compilation -/src/project/src/struct.d.ts(5,22): error TS1149: File name '/src/project/src/Struct.d.ts' differs from already included file name '/src/project/src/struct.d.ts' only in casing. +src/project/src/struct.d.ts(5,22): error TS1149: File name '/src/project/src/Struct.d.ts' differs from already included file name '/src/project/src/struct.d.ts' only in casing. The file is in the program because: Root file specified for compilation Imported via "./Struct" from file '/src/project/src/struct.d.ts' diff --git a/tests/baselines/reference/reuseProgramStructure/handles-file-preprocessing-dignostics.js b/tests/baselines/reference/reuseProgramStructure/handles-file-preprocessing-dignostics.js index 59afd7f8220..8905c8095a9 100644 --- a/tests/baselines/reference/reuseProgramStructure/handles-file-preprocessing-dignostics.js +++ b/tests/baselines/reference/reuseProgramStructure/handles-file-preprocessing-dignostics.js @@ -267,7 +267,7 @@ MissingPaths:: [ "lib.d.ts" ] -/src/project/src/anotherFile.ts(4,22): error TS1149: File name '/src/project/node_modules/fp-ts/lib/struct.d.ts' differs from already included file name '/src/project/node_modules/fp-ts/lib/Struct.d.ts' only in casing. +src/project/src/anotherFile.ts(4,22): error TS1149: File name '/src/project/node_modules/fp-ts/lib/struct.d.ts' differs from already included file name '/src/project/node_modules/fp-ts/lib/Struct.d.ts' only in casing. The file is in the program because: Imported via "fp-ts/lib/Struct" from file '/src/project/src/struct.d.ts' Imported via "fp-ts/lib/struct" from file '/src/project/src/struct.d.ts' @@ -276,7 +276,7 @@ MissingPaths:: [ Imported via "fp-ts/lib/Struct" from file '/src/project/src/oneMore.ts' Imported via "fp-ts/lib/struct" from file '/src/project/src/oneMore.ts' Root file specified for compilation -/src/project/src/anotherFile.ts(5,22): error TS1149: File name '/src/project/src/Struct.d.ts' differs from already included file name '/src/project/src/struct.d.ts' only in casing. +src/project/src/anotherFile.ts(5,22): error TS1149: File name '/src/project/src/Struct.d.ts' differs from already included file name '/src/project/src/struct.d.ts' only in casing. The file is in the program because: Root file specified for compilation Imported via "./Struct" from file '/src/project/src/struct.d.ts' @@ -285,7 +285,7 @@ MissingPaths:: [ Imported via "./struct" from file '/src/project/src/anotherFile.ts' Imported via "./Struct" from file '/src/project/src/oneMore.ts' Imported via "./struct" from file '/src/project/src/oneMore.ts' -/src/project/src/oneMore.ts(4,22): error TS1149: File name '/src/project/node_modules/fp-ts/lib/struct.d.ts' differs from already included file name '/src/project/node_modules/fp-ts/lib/Struct.d.ts' only in casing. +src/project/src/oneMore.ts(4,22): error TS1149: File name '/src/project/node_modules/fp-ts/lib/struct.d.ts' differs from already included file name '/src/project/node_modules/fp-ts/lib/Struct.d.ts' only in casing. The file is in the program because: Imported via "fp-ts/lib/Struct" from file '/src/project/src/struct.d.ts' Imported via "fp-ts/lib/struct" from file '/src/project/src/struct.d.ts' @@ -294,7 +294,7 @@ MissingPaths:: [ Imported via "fp-ts/lib/Struct" from file '/src/project/src/oneMore.ts' Imported via "fp-ts/lib/struct" from file '/src/project/src/oneMore.ts' Root file specified for compilation -/src/project/src/oneMore.ts(5,22): error TS1149: File name '/src/project/src/Struct.d.ts' differs from already included file name '/src/project/src/struct.d.ts' only in casing. +src/project/src/oneMore.ts(5,22): error TS1149: File name '/src/project/src/Struct.d.ts' differs from already included file name '/src/project/src/struct.d.ts' only in casing. The file is in the program because: Root file specified for compilation Imported via "./Struct" from file '/src/project/src/struct.d.ts' @@ -303,7 +303,7 @@ MissingPaths:: [ Imported via "./struct" from file '/src/project/src/anotherFile.ts' Imported via "./Struct" from file '/src/project/src/oneMore.ts' Imported via "./struct" from file '/src/project/src/oneMore.ts' -/src/project/src/struct.d.ts(3,22): error TS1261: Already included file name '/src/project/node_modules/fp-ts/lib/Struct.d.ts' differs from file name '/src/project/node_modules/fp-ts/lib/struct.d.ts' only in casing. +src/project/src/struct.d.ts(3,22): error TS1261: Already included file name '/src/project/node_modules/fp-ts/lib/Struct.d.ts' differs from file name '/src/project/node_modules/fp-ts/lib/struct.d.ts' only in casing. The file is in the program because: Imported via "fp-ts/lib/Struct" from file '/src/project/src/struct.d.ts' Imported via "fp-ts/lib/struct" from file '/src/project/src/struct.d.ts' @@ -312,7 +312,7 @@ MissingPaths:: [ Imported via "fp-ts/lib/Struct" from file '/src/project/src/oneMore.ts' Imported via "fp-ts/lib/struct" from file '/src/project/src/oneMore.ts' Root file specified for compilation -/src/project/src/struct.d.ts(4,22): error TS1149: File name '/src/project/node_modules/fp-ts/lib/struct.d.ts' differs from already included file name '/src/project/node_modules/fp-ts/lib/Struct.d.ts' only in casing. +src/project/src/struct.d.ts(4,22): error TS1149: File name '/src/project/node_modules/fp-ts/lib/struct.d.ts' differs from already included file name '/src/project/node_modules/fp-ts/lib/Struct.d.ts' only in casing. The file is in the program because: Imported via "fp-ts/lib/Struct" from file '/src/project/src/struct.d.ts' Imported via "fp-ts/lib/struct" from file '/src/project/src/struct.d.ts' @@ -321,7 +321,7 @@ MissingPaths:: [ Imported via "fp-ts/lib/Struct" from file '/src/project/src/oneMore.ts' Imported via "fp-ts/lib/struct" from file '/src/project/src/oneMore.ts' Root file specified for compilation -/src/project/src/struct.d.ts(5,22): error TS1149: File name '/src/project/src/Struct.d.ts' differs from already included file name '/src/project/src/struct.d.ts' only in casing. +src/project/src/struct.d.ts(5,22): error TS1149: File name '/src/project/src/Struct.d.ts' differs from already included file name '/src/project/src/struct.d.ts' only in casing. The file is in the program because: Root file specified for compilation Imported via "./Struct" from file '/src/project/src/struct.d.ts' @@ -604,7 +604,7 @@ MissingPaths:: [ "lib.d.ts" ] -/src/project/src/anotherFile.ts(4,22): error TS1149: File name '/src/project/node_modules/fp-ts/lib/struct.d.ts' differs from already included file name '/src/project/node_modules/fp-ts/lib/Struct.d.ts' only in casing. +src/project/src/anotherFile.ts(4,22): error TS1149: File name '/src/project/node_modules/fp-ts/lib/struct.d.ts' differs from already included file name '/src/project/node_modules/fp-ts/lib/Struct.d.ts' only in casing. The file is in the program because: Imported via "fp-ts/lib/Struct" from file '/src/project/src/struct.d.ts' Imported via "fp-ts/lib/struct" from file '/src/project/src/struct.d.ts' @@ -613,7 +613,7 @@ MissingPaths:: [ Imported via "fp-ts/lib/Struct" from file '/src/project/src/oneMore.ts' Imported via "fp-ts/lib/struct" from file '/src/project/src/oneMore.ts' Root file specified for compilation -/src/project/src/anotherFile.ts(5,22): error TS1149: File name '/src/project/src/Struct.d.ts' differs from already included file name '/src/project/src/struct.d.ts' only in casing. +src/project/src/anotherFile.ts(5,22): error TS1149: File name '/src/project/src/Struct.d.ts' differs from already included file name '/src/project/src/struct.d.ts' only in casing. The file is in the program because: Root file specified for compilation Imported via "./Struct" from file '/src/project/src/struct.d.ts' @@ -622,7 +622,7 @@ MissingPaths:: [ Imported via "./struct" from file '/src/project/src/anotherFile.ts' Imported via "./Struct" from file '/src/project/src/oneMore.ts' Imported via "./struct" from file '/src/project/src/oneMore.ts' -/src/project/src/oneMore.ts(4,22): error TS1149: File name '/src/project/node_modules/fp-ts/lib/struct.d.ts' differs from already included file name '/src/project/node_modules/fp-ts/lib/Struct.d.ts' only in casing. +src/project/src/oneMore.ts(4,22): error TS1149: File name '/src/project/node_modules/fp-ts/lib/struct.d.ts' differs from already included file name '/src/project/node_modules/fp-ts/lib/Struct.d.ts' only in casing. The file is in the program because: Imported via "fp-ts/lib/Struct" from file '/src/project/src/struct.d.ts' Imported via "fp-ts/lib/struct" from file '/src/project/src/struct.d.ts' @@ -631,7 +631,7 @@ MissingPaths:: [ Imported via "fp-ts/lib/Struct" from file '/src/project/src/oneMore.ts' Imported via "fp-ts/lib/struct" from file '/src/project/src/oneMore.ts' Root file specified for compilation -/src/project/src/oneMore.ts(5,22): error TS1149: File name '/src/project/src/Struct.d.ts' differs from already included file name '/src/project/src/struct.d.ts' only in casing. +src/project/src/oneMore.ts(5,22): error TS1149: File name '/src/project/src/Struct.d.ts' differs from already included file name '/src/project/src/struct.d.ts' only in casing. The file is in the program because: Root file specified for compilation Imported via "./Struct" from file '/src/project/src/struct.d.ts' @@ -640,7 +640,7 @@ MissingPaths:: [ Imported via "./struct" from file '/src/project/src/anotherFile.ts' Imported via "./Struct" from file '/src/project/src/oneMore.ts' Imported via "./struct" from file '/src/project/src/oneMore.ts' -/src/project/src/struct.d.ts(5,22): error TS1261: Already included file name '/src/project/node_modules/fp-ts/lib/Struct.d.ts' differs from file name '/src/project/node_modules/fp-ts/lib/struct.d.ts' only in casing. +src/project/src/struct.d.ts(5,22): error TS1261: Already included file name '/src/project/node_modules/fp-ts/lib/Struct.d.ts' differs from file name '/src/project/node_modules/fp-ts/lib/struct.d.ts' only in casing. The file is in the program because: Imported via "fp-ts/lib/Struct" from file '/src/project/src/struct.d.ts' Imported via "fp-ts/lib/struct" from file '/src/project/src/struct.d.ts' @@ -649,7 +649,7 @@ MissingPaths:: [ Imported via "fp-ts/lib/Struct" from file '/src/project/src/oneMore.ts' Imported via "fp-ts/lib/struct" from file '/src/project/src/oneMore.ts' Root file specified for compilation -/src/project/src/struct.d.ts(6,22): error TS1149: File name '/src/project/node_modules/fp-ts/lib/struct.d.ts' differs from already included file name '/src/project/node_modules/fp-ts/lib/Struct.d.ts' only in casing. +src/project/src/struct.d.ts(6,22): error TS1149: File name '/src/project/node_modules/fp-ts/lib/struct.d.ts' differs from already included file name '/src/project/node_modules/fp-ts/lib/Struct.d.ts' only in casing. The file is in the program because: Imported via "fp-ts/lib/Struct" from file '/src/project/src/struct.d.ts' Imported via "fp-ts/lib/struct" from file '/src/project/src/struct.d.ts' @@ -658,7 +658,7 @@ MissingPaths:: [ Imported via "fp-ts/lib/Struct" from file '/src/project/src/oneMore.ts' Imported via "fp-ts/lib/struct" from file '/src/project/src/oneMore.ts' Root file specified for compilation -/src/project/src/struct.d.ts(7,22): error TS1149: File name '/src/project/src/Struct.d.ts' differs from already included file name '/src/project/src/struct.d.ts' only in casing. +src/project/src/struct.d.ts(7,22): error TS1149: File name '/src/project/src/Struct.d.ts' differs from already included file name '/src/project/src/struct.d.ts' only in casing. The file is in the program because: Root file specified for compilation Imported via "./Struct" from file '/src/project/src/struct.d.ts' @@ -926,7 +926,7 @@ MissingPaths:: [ "lib.d.ts" ] -/src/project/src/anotherFile.ts(4,22): error TS1149: File name '/src/project/node_modules/fp-ts/lib/struct.d.ts' differs from already included file name '/src/project/node_modules/fp-ts/lib/Struct.d.ts' only in casing. +src/project/src/anotherFile.ts(4,22): error TS1149: File name '/src/project/node_modules/fp-ts/lib/struct.d.ts' differs from already included file name '/src/project/node_modules/fp-ts/lib/Struct.d.ts' only in casing. The file is in the program because: Imported via "fp-ts/lib/Struct" from file '/src/project/src/struct.d.ts' Imported via "fp-ts/lib/struct" from file '/src/project/src/struct.d.ts' @@ -935,7 +935,7 @@ MissingPaths:: [ Imported via "fp-ts/lib/Struct" from file '/src/project/src/oneMore.ts' Imported via "fp-ts/lib/struct" from file '/src/project/src/oneMore.ts' Root file specified for compilation -/src/project/src/anotherFile.ts(5,22): error TS1149: File name '/src/project/src/Struct.d.ts' differs from already included file name '/src/project/src/struct.d.ts' only in casing. +src/project/src/anotherFile.ts(5,22): error TS1149: File name '/src/project/src/Struct.d.ts' differs from already included file name '/src/project/src/struct.d.ts' only in casing. The file is in the program because: Root file specified for compilation Imported via "./Struct" from file '/src/project/src/struct.d.ts' @@ -943,7 +943,7 @@ MissingPaths:: [ Imported via "./struct" from file '/src/project/src/anotherFile.ts' Imported via "./Struct" from file '/src/project/src/oneMore.ts' Imported via "./struct" from file '/src/project/src/oneMore.ts' -/src/project/src/oneMore.ts(4,22): error TS1149: File name '/src/project/node_modules/fp-ts/lib/struct.d.ts' differs from already included file name '/src/project/node_modules/fp-ts/lib/Struct.d.ts' only in casing. +src/project/src/oneMore.ts(4,22): error TS1149: File name '/src/project/node_modules/fp-ts/lib/struct.d.ts' differs from already included file name '/src/project/node_modules/fp-ts/lib/Struct.d.ts' only in casing. The file is in the program because: Imported via "fp-ts/lib/Struct" from file '/src/project/src/struct.d.ts' Imported via "fp-ts/lib/struct" from file '/src/project/src/struct.d.ts' @@ -952,7 +952,7 @@ MissingPaths:: [ Imported via "fp-ts/lib/Struct" from file '/src/project/src/oneMore.ts' Imported via "fp-ts/lib/struct" from file '/src/project/src/oneMore.ts' Root file specified for compilation -/src/project/src/oneMore.ts(5,22): error TS1149: File name '/src/project/src/Struct.d.ts' differs from already included file name '/src/project/src/struct.d.ts' only in casing. +src/project/src/oneMore.ts(5,22): error TS1149: File name '/src/project/src/Struct.d.ts' differs from already included file name '/src/project/src/struct.d.ts' only in casing. The file is in the program because: Root file specified for compilation Imported via "./Struct" from file '/src/project/src/struct.d.ts' @@ -960,7 +960,7 @@ MissingPaths:: [ Imported via "./struct" from file '/src/project/src/anotherFile.ts' Imported via "./Struct" from file '/src/project/src/oneMore.ts' Imported via "./struct" from file '/src/project/src/oneMore.ts' -/src/project/src/struct.d.ts(3,22): error TS1261: Already included file name '/src/project/node_modules/fp-ts/lib/Struct.d.ts' differs from file name '/src/project/node_modules/fp-ts/lib/struct.d.ts' only in casing. +src/project/src/struct.d.ts(3,22): error TS1261: Already included file name '/src/project/node_modules/fp-ts/lib/Struct.d.ts' differs from file name '/src/project/node_modules/fp-ts/lib/struct.d.ts' only in casing. The file is in the program because: Imported via "fp-ts/lib/Struct" from file '/src/project/src/struct.d.ts' Imported via "fp-ts/lib/struct" from file '/src/project/src/struct.d.ts' @@ -969,7 +969,7 @@ MissingPaths:: [ Imported via "fp-ts/lib/Struct" from file '/src/project/src/oneMore.ts' Imported via "fp-ts/lib/struct" from file '/src/project/src/oneMore.ts' Root file specified for compilation -/src/project/src/struct.d.ts(4,22): error TS1149: File name '/src/project/node_modules/fp-ts/lib/struct.d.ts' differs from already included file name '/src/project/node_modules/fp-ts/lib/Struct.d.ts' only in casing. +src/project/src/struct.d.ts(4,22): error TS1149: File name '/src/project/node_modules/fp-ts/lib/struct.d.ts' differs from already included file name '/src/project/node_modules/fp-ts/lib/Struct.d.ts' only in casing. The file is in the program because: Imported via "fp-ts/lib/Struct" from file '/src/project/src/struct.d.ts' Imported via "fp-ts/lib/struct" from file '/src/project/src/struct.d.ts' @@ -978,7 +978,7 @@ MissingPaths:: [ Imported via "fp-ts/lib/Struct" from file '/src/project/src/oneMore.ts' Imported via "fp-ts/lib/struct" from file '/src/project/src/oneMore.ts' Root file specified for compilation -/src/project/src/struct.d.ts(5,22): error TS1149: File name '/src/project/src/Struct.d.ts' differs from already included file name '/src/project/src/struct.d.ts' only in casing. +src/project/src/struct.d.ts(5,22): error TS1149: File name '/src/project/src/Struct.d.ts' differs from already included file name '/src/project/src/struct.d.ts' only in casing. The file is in the program because: Root file specified for compilation Imported via "./Struct" from file '/src/project/src/struct.d.ts' diff --git a/tests/baselines/reference/reuseProgramStructure/missing-file-is-created.js b/tests/baselines/reference/reuseProgramStructure/missing-file-is-created.js index 0da2b41e027..787248be35f 100644 --- a/tests/baselines/reference/reuseProgramStructure/missing-file-is-created.js +++ b/tests/baselines/reference/reuseProgramStructure/missing-file-is-created.js @@ -20,14 +20,14 @@ var x = 1 resolvedTypeReferenceDirectiveNames: typerefs: { "failedLookupLocations": [ - "node_modules/@types/typerefs/package.json", - "node_modules/@types/typerefs/index.d.ts", - "node_modules/typerefs/package.json", - "node_modules/typerefs.d.ts", - "node_modules/typerefs/index.d.ts", - "node_modules/@types/typerefs/package.json", - "node_modules/@types/typerefs.d.ts", - "node_modules/@types/typerefs/index.d.ts" + "/node_modules/@types/typerefs/package.json", + "/node_modules/@types/typerefs/index.d.ts", + "/node_modules/typerefs/package.json", + "/node_modules/typerefs.d.ts", + "/node_modules/typerefs/index.d.ts", + "/node_modules/@types/typerefs/package.json", + "/node_modules/@types/typerefs.d.ts", + "/node_modules/@types/typerefs/index.d.ts" ] } @@ -68,14 +68,14 @@ var x = 1 resolvedTypeReferenceDirectiveNames: typerefs: { "failedLookupLocations": [ - "node_modules/@types/typerefs/package.json", - "node_modules/@types/typerefs/index.d.ts", - "node_modules/typerefs/package.json", - "node_modules/typerefs.d.ts", - "node_modules/typerefs/index.d.ts", - "node_modules/@types/typerefs/package.json", - "node_modules/@types/typerefs.d.ts", - "node_modules/@types/typerefs/index.d.ts" + "/node_modules/@types/typerefs/package.json", + "/node_modules/@types/typerefs/index.d.ts", + "/node_modules/typerefs/package.json", + "/node_modules/typerefs.d.ts", + "/node_modules/typerefs/index.d.ts", + "/node_modules/@types/typerefs/package.json", + "/node_modules/@types/typerefs.d.ts", + "/node_modules/@types/typerefs/index.d.ts" ] } diff --git a/tests/baselines/reference/reuseProgramStructure/missing-files-remain-missing.js b/tests/baselines/reference/reuseProgramStructure/missing-files-remain-missing.js index 8f886fddd36..a1135cd7779 100644 --- a/tests/baselines/reference/reuseProgramStructure/missing-files-remain-missing.js +++ b/tests/baselines/reference/reuseProgramStructure/missing-files-remain-missing.js @@ -20,14 +20,14 @@ var x = 1 resolvedTypeReferenceDirectiveNames: typerefs: { "failedLookupLocations": [ - "node_modules/@types/typerefs/package.json", - "node_modules/@types/typerefs/index.d.ts", - "node_modules/typerefs/package.json", - "node_modules/typerefs.d.ts", - "node_modules/typerefs/index.d.ts", - "node_modules/@types/typerefs/package.json", - "node_modules/@types/typerefs.d.ts", - "node_modules/@types/typerefs/index.d.ts" + "/node_modules/@types/typerefs/package.json", + "/node_modules/@types/typerefs/index.d.ts", + "/node_modules/typerefs/package.json", + "/node_modules/typerefs.d.ts", + "/node_modules/typerefs/index.d.ts", + "/node_modules/@types/typerefs/package.json", + "/node_modules/@types/typerefs.d.ts", + "/node_modules/@types/typerefs/index.d.ts" ] } @@ -63,14 +63,14 @@ var x = 1 resolvedTypeReferenceDirectiveNames: typerefs: { "failedLookupLocations": [ - "node_modules/@types/typerefs/package.json", - "node_modules/@types/typerefs/index.d.ts", - "node_modules/typerefs/package.json", - "node_modules/typerefs.d.ts", - "node_modules/typerefs/index.d.ts", - "node_modules/@types/typerefs/package.json", - "node_modules/@types/typerefs.d.ts", - "node_modules/@types/typerefs/index.d.ts" + "/node_modules/@types/typerefs/package.json", + "/node_modules/@types/typerefs/index.d.ts", + "/node_modules/typerefs/package.json", + "/node_modules/typerefs.d.ts", + "/node_modules/typerefs/index.d.ts", + "/node_modules/@types/typerefs/package.json", + "/node_modules/@types/typerefs.d.ts", + "/node_modules/@types/typerefs/index.d.ts" ] } diff --git a/tests/baselines/reference/reuseProgramStructure/module-kind-changes.js b/tests/baselines/reference/reuseProgramStructure/module-kind-changes.js index 2ce4f8610a9..2ce7a1eadc5 100644 --- a/tests/baselines/reference/reuseProgramStructure/module-kind-changes.js +++ b/tests/baselines/reference/reuseProgramStructure/module-kind-changes.js @@ -20,14 +20,14 @@ var x = 1 resolvedTypeReferenceDirectiveNames: typerefs: { "failedLookupLocations": [ - "node_modules/@types/typerefs/package.json", - "node_modules/@types/typerefs/index.d.ts", - "node_modules/typerefs/package.json", - "node_modules/typerefs.d.ts", - "node_modules/typerefs/index.d.ts", - "node_modules/@types/typerefs/package.json", - "node_modules/@types/typerefs.d.ts", - "node_modules/@types/typerefs/index.d.ts" + "/node_modules/@types/typerefs/package.json", + "/node_modules/@types/typerefs/index.d.ts", + "/node_modules/typerefs/package.json", + "/node_modules/typerefs.d.ts", + "/node_modules/typerefs/index.d.ts", + "/node_modules/@types/typerefs/package.json", + "/node_modules/@types/typerefs.d.ts", + "/node_modules/@types/typerefs/index.d.ts" ] } @@ -64,14 +64,14 @@ var x = 1 resolvedTypeReferenceDirectiveNames: typerefs: { "failedLookupLocations": [ - "node_modules/@types/typerefs/package.json", - "node_modules/@types/typerefs/index.d.ts", - "node_modules/typerefs/package.json", - "node_modules/typerefs.d.ts", - "node_modules/typerefs/index.d.ts", - "node_modules/@types/typerefs/package.json", - "node_modules/@types/typerefs.d.ts", - "node_modules/@types/typerefs/index.d.ts" + "/node_modules/@types/typerefs/package.json", + "/node_modules/@types/typerefs/index.d.ts", + "/node_modules/typerefs/package.json", + "/node_modules/typerefs.d.ts", + "/node_modules/typerefs/index.d.ts", + "/node_modules/@types/typerefs/package.json", + "/node_modules/@types/typerefs.d.ts", + "/node_modules/@types/typerefs/index.d.ts" ] } diff --git a/tests/baselines/reference/reuseProgramStructure/redirect-previous-duplicate-packages.js b/tests/baselines/reference/reuseProgramStructure/redirect-previous-duplicate-packages.js index fcff7e884e0..34ce07ed76d 100644 --- a/tests/baselines/reference/reuseProgramStructure/redirect-previous-duplicate-packages.js +++ b/tests/baselines/reference/reuseProgramStructure/redirect-previous-duplicate-packages.js @@ -110,8 +110,8 @@ MissingPaths:: [ "lib.d.ts" ] -/node_modules/b/index.d.ts(2,8): error TS1259: Module '"/node_modules/b/node_modules/x/index"' can only be default-imported using the 'allowSyntheticDefaultImports' flag -/node_modules/b/node_modules/x/index.d.ts(3,16): error TS2714: The expression of an export assignment must be an identifier or qualified name in an ambient context. +node_modules/b/index.d.ts(2,8): error TS1259: Module '"/node_modules/b/node_modules/x/index"' can only be default-imported using the 'allowSyntheticDefaultImports' flag +node_modules/b/node_modules/x/index.d.ts(3,16): error TS2714: The expression of an export assignment must be an identifier or qualified name in an ambient context. diff --git a/tests/baselines/reference/reuseProgramStructure/redirect-target-changes.js b/tests/baselines/reference/reuseProgramStructure/redirect-target-changes.js index 9805b725e42..87c6b191780 100644 --- a/tests/baselines/reference/reuseProgramStructure/redirect-target-changes.js +++ b/tests/baselines/reference/reuseProgramStructure/redirect-target-changes.js @@ -220,7 +220,7 @@ MissingPaths:: [ "lib.d.ts" ] -/a.ts(3,3): error TS2345: Argument of type 'import("/node_modules/b/node_modules/x/index").default' is not assignable to parameter of type 'import("/node_modules/a/node_modules/x/index").default'. +a.ts(3,3): error TS2345: Argument of type 'import("/node_modules/b/node_modules/x/index").default' is not assignable to parameter of type 'import("/node_modules/a/node_modules/x/index").default'. Property 'y' is missing in type 'import("/node_modules/b/node_modules/x/index").default' but required in type 'import("/node_modules/a/node_modules/x/index").default'. diff --git a/tests/baselines/reference/reuseProgramStructure/redirect-underlying-changes.js b/tests/baselines/reference/reuseProgramStructure/redirect-underlying-changes.js index a54f008e9be..66aa61c2108 100644 --- a/tests/baselines/reference/reuseProgramStructure/redirect-underlying-changes.js +++ b/tests/baselines/reference/reuseProgramStructure/redirect-underlying-changes.js @@ -225,7 +225,7 @@ MissingPaths:: [ "lib.d.ts" ] -/a.ts(3,3): error TS2345: Argument of type 'import("/node_modules/b/node_modules/x/index").default' is not assignable to parameter of type 'import("/node_modules/a/node_modules/x/index").default'. +a.ts(3,3): error TS2345: Argument of type 'import("/node_modules/b/node_modules/x/index").default' is not assignable to parameter of type 'import("/node_modules/a/node_modules/x/index").default'. Types have separate declarations of a private property 'x'. diff --git a/tests/baselines/reference/reuseProgramStructure/redirect-with-getSourceFileByPath-previous-duplicate-packages.js b/tests/baselines/reference/reuseProgramStructure/redirect-with-getSourceFileByPath-previous-duplicate-packages.js index fcff7e884e0..34ce07ed76d 100644 --- a/tests/baselines/reference/reuseProgramStructure/redirect-with-getSourceFileByPath-previous-duplicate-packages.js +++ b/tests/baselines/reference/reuseProgramStructure/redirect-with-getSourceFileByPath-previous-duplicate-packages.js @@ -110,8 +110,8 @@ MissingPaths:: [ "lib.d.ts" ] -/node_modules/b/index.d.ts(2,8): error TS1259: Module '"/node_modules/b/node_modules/x/index"' can only be default-imported using the 'allowSyntheticDefaultImports' flag -/node_modules/b/node_modules/x/index.d.ts(3,16): error TS2714: The expression of an export assignment must be an identifier or qualified name in an ambient context. +node_modules/b/index.d.ts(2,8): error TS1259: Module '"/node_modules/b/node_modules/x/index"' can only be default-imported using the 'allowSyntheticDefaultImports' flag +node_modules/b/node_modules/x/index.d.ts(3,16): error TS2714: The expression of an export assignment must be an identifier or qualified name in an ambient context. diff --git a/tests/baselines/reference/reuseProgramStructure/redirect-with-getSourceFileByPath-target-changes.js b/tests/baselines/reference/reuseProgramStructure/redirect-with-getSourceFileByPath-target-changes.js index 9805b725e42..87c6b191780 100644 --- a/tests/baselines/reference/reuseProgramStructure/redirect-with-getSourceFileByPath-target-changes.js +++ b/tests/baselines/reference/reuseProgramStructure/redirect-with-getSourceFileByPath-target-changes.js @@ -220,7 +220,7 @@ MissingPaths:: [ "lib.d.ts" ] -/a.ts(3,3): error TS2345: Argument of type 'import("/node_modules/b/node_modules/x/index").default' is not assignable to parameter of type 'import("/node_modules/a/node_modules/x/index").default'. +a.ts(3,3): error TS2345: Argument of type 'import("/node_modules/b/node_modules/x/index").default' is not assignable to parameter of type 'import("/node_modules/a/node_modules/x/index").default'. Property 'y' is missing in type 'import("/node_modules/b/node_modules/x/index").default' but required in type 'import("/node_modules/a/node_modules/x/index").default'. diff --git a/tests/baselines/reference/reuseProgramStructure/redirect-with-getSourceFileByPath-underlying-changes.js b/tests/baselines/reference/reuseProgramStructure/redirect-with-getSourceFileByPath-underlying-changes.js index a54f008e9be..66aa61c2108 100644 --- a/tests/baselines/reference/reuseProgramStructure/redirect-with-getSourceFileByPath-underlying-changes.js +++ b/tests/baselines/reference/reuseProgramStructure/redirect-with-getSourceFileByPath-underlying-changes.js @@ -225,7 +225,7 @@ MissingPaths:: [ "lib.d.ts" ] -/a.ts(3,3): error TS2345: Argument of type 'import("/node_modules/b/node_modules/x/index").default' is not assignable to parameter of type 'import("/node_modules/a/node_modules/x/index").default'. +a.ts(3,3): error TS2345: Argument of type 'import("/node_modules/b/node_modules/x/index").default' is not assignable to parameter of type 'import("/node_modules/a/node_modules/x/index").default'. Types have separate declarations of a private property 'x'. diff --git a/tests/baselines/reference/reuseProgramStructure/resolution-cache-follows-imports.js b/tests/baselines/reference/reuseProgramStructure/resolution-cache-follows-imports.js index bde8203f05f..d6272a55f03 100644 --- a/tests/baselines/reference/reuseProgramStructure/resolution-cache-follows-imports.js +++ b/tests/baselines/reference/reuseProgramStructure/resolution-cache-follows-imports.js @@ -1,5 +1,5 @@ Program 1 Reused:: Not -File: b.ts +File: /b.ts var y = 2 @@ -11,7 +11,7 @@ var x = 1 resolvedModules: b: { "resolvedModule": { - "resolvedFileName": "b.ts", + "resolvedFileName": "/b.ts", "extension": ".ts", "isExternalLibraryImport": false, "resolvedUsingTsExtension": false @@ -23,12 +23,12 @@ MissingPaths:: [ "lib.d.ts" ] -a.ts(2,17): error TS2306: File 'b.ts' is not a module. +a.ts(2,17): error TS2306: File '/b.ts' is not a module. Program 2 Reused:: Completely -File: b.ts +File: /b.ts var y = 2 @@ -40,7 +40,7 @@ var x = 2 resolvedModules: b: { "resolvedModule": { - "resolvedFileName": "b.ts", + "resolvedFileName": "/b.ts", "extension": ".ts", "isExternalLibraryImport": false, "resolvedUsingTsExtension": false @@ -52,7 +52,7 @@ MissingPaths:: [ "lib.d.ts" ] -a.ts(2,17): error TS2306: File 'b.ts' is not a module. +a.ts(2,17): error TS2306: File '/b.ts' is not a module. @@ -71,7 +71,7 @@ MissingPaths:: [ Program 4 Reused:: SafeModules -File: b.ts +File: /b.ts var y = 2 @@ -85,7 +85,7 @@ var x = 2 resolvedModules: b: { "resolvedModule": { - "resolvedFileName": "b.ts", + "resolvedFileName": "/b.ts", "extension": ".ts", "isExternalLibraryImport": false, "resolvedUsingTsExtension": false @@ -93,14 +93,14 @@ b: { } c: { "failedLookupLocations": [ - "c.ts", - "c.tsx", - "c.d.ts", - "node_modules/@types/c/package.json", - "node_modules/@types/c.d.ts", - "node_modules/@types/c/index.d.ts", - "c.js", - "c.jsx" + "/c.ts", + "/c.tsx", + "/c.d.ts", + "/node_modules/@types/c/package.json", + "/node_modules/@types/c.d.ts", + "/node_modules/@types/c/index.d.ts", + "/c.js", + "/c.jsx" ] } @@ -109,7 +109,7 @@ MissingPaths:: [ "lib.d.ts" ] -a.ts(2,15): error TS2306: File 'b.ts' is not a module. +a.ts(2,15): error TS2306: File '/b.ts' is not a module. a.ts(3,31): error TS2792: Cannot find module 'c'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? diff --git a/tests/baselines/reference/reuseProgramStructure/resolved-type-directives-cache-follows-type-directives.js b/tests/baselines/reference/reuseProgramStructure/resolved-type-directives-cache-follows-type-directives.js index e11d3be8926..a8d8fd3ccb5 100644 --- a/tests/baselines/reference/reuseProgramStructure/resolved-type-directives-cache-follows-type-directives.js +++ b/tests/baselines/reference/reuseProgramStructure/resolved-type-directives-cache-follows-type-directives.js @@ -117,6 +117,6 @@ MissingPaths:: [ "lib.d.ts" ] -/a.ts(2,39): error TS2688: Cannot find type definition file for 'typedefs2'. +a.ts(2,39): error TS2688: Cannot find type definition file for 'typedefs2'. diff --git a/tests/baselines/reference/reuseProgramStructure/rootdir-changes.js b/tests/baselines/reference/reuseProgramStructure/rootdir-changes.js index e83cf28f215..8f615ba668b 100644 --- a/tests/baselines/reference/reuseProgramStructure/rootdir-changes.js +++ b/tests/baselines/reference/reuseProgramStructure/rootdir-changes.js @@ -20,14 +20,14 @@ var x = 1 resolvedTypeReferenceDirectiveNames: typerefs: { "failedLookupLocations": [ - "node_modules/@types/typerefs/package.json", - "node_modules/@types/typerefs/index.d.ts", - "node_modules/typerefs/package.json", - "node_modules/typerefs.d.ts", - "node_modules/typerefs/index.d.ts", - "node_modules/@types/typerefs/package.json", - "node_modules/@types/typerefs.d.ts", - "node_modules/@types/typerefs/index.d.ts" + "/node_modules/@types/typerefs/package.json", + "/node_modules/@types/typerefs/index.d.ts", + "/node_modules/typerefs/package.json", + "/node_modules/typerefs.d.ts", + "/node_modules/typerefs/index.d.ts", + "/node_modules/@types/typerefs/package.json", + "/node_modules/@types/typerefs.d.ts", + "/node_modules/@types/typerefs/index.d.ts" ] } @@ -66,14 +66,14 @@ var x = 1 resolvedTypeReferenceDirectiveNames: typerefs: { "failedLookupLocations": [ - "node_modules/@types/typerefs/package.json", - "node_modules/@types/typerefs/index.d.ts", - "node_modules/typerefs/package.json", - "node_modules/typerefs.d.ts", - "node_modules/typerefs/index.d.ts", - "node_modules/@types/typerefs/package.json", - "node_modules/@types/typerefs.d.ts", - "node_modules/@types/typerefs/index.d.ts" + "/node_modules/@types/typerefs/package.json", + "/node_modules/@types/typerefs/index.d.ts", + "/node_modules/typerefs/package.json", + "/node_modules/typerefs.d.ts", + "/node_modules/typerefs/index.d.ts", + "/node_modules/@types/typerefs/package.json", + "/node_modules/@types/typerefs.d.ts", + "/node_modules/@types/typerefs/index.d.ts" ] } diff --git a/tests/baselines/reference/reuseProgramStructure/should-not-reuse-ambient-module-declarations-from-non-modified-files.js b/tests/baselines/reference/reuseProgramStructure/should-not-reuse-ambient-module-declarations-from-non-modified-files.js index 2f35b2999b1..9cd7a56ea4d 100644 --- a/tests/baselines/reference/reuseProgramStructure/should-not-reuse-ambient-module-declarations-from-non-modified-files.js +++ b/tests/baselines/reference/reuseProgramStructure/should-not-reuse-ambient-module-declarations-from-non-modified-files.js @@ -223,6 +223,6 @@ MissingPaths:: [ "lib.d.ts" ] -/a/b/app.ts(2,21): error TS2792: Cannot find module 'fs'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? +a/b/app.ts(2,21): error TS2792: Cannot find module 'fs'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option?