mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-06 02:33:53 -06:00
Fix node16 tests (#48974)
This commit is contained in:
parent
eb1a8b14cc
commit
1e157ef1b2
@ -126,7 +126,7 @@ namespace ts.tscWatch {
|
||||
path: `${projectRoot}/node_modules/pkg2`,
|
||||
symLink: `${projectRoot}/packages/pkg2`,
|
||||
},
|
||||
{ ...libFile, path: `/a/lib/lib.es2020.full.d.ts` }
|
||||
{ ...libFile, path: `/a/lib/lib.es2022.full.d.ts` }
|
||||
], { currentDirectory: projectRoot }),
|
||||
commandLineArgs: ["-b", "packages/pkg1", "-w", "--verbose", "--traceResolution"],
|
||||
changes: [
|
||||
|
||||
@ -178,7 +178,7 @@ namespace ts {
|
||||
}`,
|
||||
}, ""),
|
||||
modifyFs: fs => {
|
||||
fs.writeFileSync("/lib/lib.es2020.full.d.ts", tscWatch.libFile.content);
|
||||
fs.writeFileSync("/lib/lib.es2022.full.d.ts", tscWatch.libFile.content);
|
||||
fs.symlinkSync("/src", "/src/src-types/node_modules");
|
||||
fs.symlinkSync("/src", "/src/src-dogs/node_modules");
|
||||
},
|
||||
|
||||
@ -14,7 +14,7 @@ interface Array<T> { length: number; [n: number]: T; }
|
||||
interface ReadonlyArray<T> {}
|
||||
declare const console: { log(msg: any): void; };
|
||||
|
||||
//// [/lib/lib.es2020.full.d.ts]
|
||||
//// [/lib/lib.es2022.full.d.ts]
|
||||
/// <reference no-default-lib="true"/>
|
||||
interface Boolean {}
|
||||
interface Function {}
|
||||
@ -134,33 +134,296 @@ Output::
|
||||
|
||||
[[90m12:00:26 AM[0m] Building project '/src/src-types/tsconfig.json'...
|
||||
|
||||
[91merror[0m[90m TS6053: [0mFile '/lib/lib.es2022.full.d.ts' not found.
|
||||
The file is in the program because:
|
||||
Default library for target 'es2022'
|
||||
[[90m12:00:33 AM[0m] Project 'src/src-dogs/tsconfig.json' is out of date because output file 'src/src-dogs/dog.js' does not exist
|
||||
|
||||
[91merror[0m[90m TS2318: [0mCannot find global type 'Array'.
|
||||
[[90m12:00:34 AM[0m] Building project '/src/src-dogs/tsconfig.json'...
|
||||
|
||||
[91merror[0m[90m TS2318: [0mCannot find global type 'Boolean'.
|
||||
|
||||
[91merror[0m[90m TS2318: [0mCannot find global type 'Function'.
|
||||
|
||||
[91merror[0m[90m TS2318: [0mCannot find global type 'IArguments'.
|
||||
|
||||
[91merror[0m[90m TS2318: [0mCannot find global type 'Number'.
|
||||
|
||||
[91merror[0m[90m TS2318: [0mCannot find global type 'Object'.
|
||||
|
||||
[91merror[0m[90m TS2318: [0mCannot find global type 'RegExp'.
|
||||
|
||||
[91merror[0m[90m TS2318: [0mCannot find global type 'String'.
|
||||
|
||||
[[90m12:00:27 AM[0m] Project 'src/src-dogs/tsconfig.json' can't be built because its dependency 'src/src-types' has errors
|
||||
|
||||
[[90m12:00:28 AM[0m] Skipping build of project '/src/src-dogs/tsconfig.json' because its dependency '/src/src-types' has errors
|
||||
|
||||
|
||||
Found 9 errors.
|
||||
|
||||
exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped
|
||||
exitCode:: ExitStatus.Success
|
||||
|
||||
|
||||
//// [/src/src-dogs/dog.d.ts]
|
||||
import { DogConfig } from 'src-types';
|
||||
export declare abstract class Dog {
|
||||
static getCapabilities(): DogConfig;
|
||||
}
|
||||
|
||||
|
||||
//// [/src/src-dogs/dog.js]
|
||||
import { DOG_CONFIG } from './dogconfig.js';
|
||||
export class Dog {
|
||||
static getCapabilities() {
|
||||
return DOG_CONFIG;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//// [/src/src-dogs/dogconfig.d.ts]
|
||||
import { DogConfig } from 'src-types';
|
||||
export declare const DOG_CONFIG: DogConfig;
|
||||
|
||||
|
||||
//// [/src/src-dogs/dogconfig.js]
|
||||
export const DOG_CONFIG = {
|
||||
name: 'Default dog',
|
||||
};
|
||||
|
||||
|
||||
//// [/src/src-dogs/index.d.ts]
|
||||
export * from 'src-types';
|
||||
export * from './lassie/lassiedog.js';
|
||||
|
||||
|
||||
//// [/src/src-dogs/index.js]
|
||||
export * from 'src-types';
|
||||
export * from './lassie/lassiedog.js';
|
||||
|
||||
|
||||
//// [/src/src-dogs/lassie/lassieconfig.d.ts]
|
||||
import { DogConfig } from 'src-types';
|
||||
export declare const LASSIE_CONFIG: DogConfig;
|
||||
|
||||
|
||||
//// [/src/src-dogs/lassie/lassieconfig.js]
|
||||
export const LASSIE_CONFIG = { name: 'Lassie' };
|
||||
|
||||
|
||||
//// [/src/src-dogs/lassie/lassiedog.d.ts]
|
||||
import { Dog } from '../dog.js';
|
||||
export declare class LassieDog extends Dog {
|
||||
protected static getDogConfig: () => import("../index.js").DogConfig;
|
||||
}
|
||||
|
||||
|
||||
//// [/src/src-dogs/lassie/lassiedog.js]
|
||||
import { Dog } from '../dog.js';
|
||||
import { LASSIE_CONFIG } from './lassieconfig.js';
|
||||
export class LassieDog extends Dog {
|
||||
static getDogConfig = () => LASSIE_CONFIG;
|
||||
}
|
||||
|
||||
|
||||
//// [/src/src-dogs/tsconfig.tsbuildinfo]
|
||||
{"program":{"fileNames":["../../lib/lib.es2022.full.d.ts","../src-types/dogconfig.d.ts","../src-types/index.d.ts","./dogconfig.ts","./dog.ts","./lassie/lassieconfig.ts","./lassie/lassiedog.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// <reference no-default-lib=\"true\"/>\ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array<T> { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-2632060142-export interface DogConfig {\r\n name: string;\r\n}\r\n","impliedFormat":99},{"version":"-5608794531-export * from './dogconfig.js';\r\n","impliedFormat":99},{"version":"1966273863-import { DogConfig } from 'src-types';\n\nexport const DOG_CONFIG: DogConfig = {\n name: 'Default dog',\n};\n","signature":"17588480778-import { DogConfig } from 'src-types';\r\nexport declare const DOG_CONFIG: DogConfig;\r\n","impliedFormat":99},{"version":"6091345804-import { DogConfig } from 'src-types';\nimport { DOG_CONFIG } from './dogconfig.js';\n\nexport abstract class Dog {\n\n public static getCapabilities(): DogConfig {\n return DOG_CONFIG;\n }\n}\n","signature":"22128633249-import { DogConfig } from 'src-types';\r\nexport declare abstract class Dog {\r\n static getCapabilities(): DogConfig;\r\n}\r\n","impliedFormat":99},{"version":"4440579024-import { DogConfig } from 'src-types';\n\nexport const LASSIE_CONFIG: DogConfig = { name: 'Lassie' };\n","signature":"8131483665-import { DogConfig } from 'src-types';\r\nexport declare const LASSIE_CONFIG: DogConfig;\r\n","impliedFormat":99},{"version":"-32303727812-import { Dog } from '../dog.js';\nimport { LASSIE_CONFIG } from './lassieconfig.js';\n\nexport class LassieDog extends Dog {\n protected static getDogConfig = () => LASSIE_CONFIG;\n}\n","signature":"-20244062422-import { Dog } from '../dog.js';\r\nexport declare class LassieDog extends Dog {\r\n protected static getDogConfig: () => import(\"../index.js\").DogConfig;\r\n}\r\n","impliedFormat":99},{"version":"-15974991320-export * from 'src-types';\nexport * from './lassie/lassiedog.js';\n","signature":"-16783836862-export * from 'src-types';\r\nexport * from './lassie/lassiedog.js';\r\n","impliedFormat":99}],"options":{"composite":true,"declaration":true,"module":100},"fileIdsList":[[3,4],[3],[3,7],[5,6],[2],[5,8]],"referencedMap":[[5,1],[4,2],[8,3],[6,2],[7,4],[3,5]],"exportedModulesMap":[[5,2],[4,2],[8,3],[6,2],[7,6],[3,5]],"semanticDiagnosticsPerFile":[1,5,4,8,6,7,2,3]},"version":"FakeTSVersion"}
|
||||
|
||||
//// [/src/src-dogs/tsconfig.tsbuildinfo.readable.baseline.txt]
|
||||
{
|
||||
"program": {
|
||||
"fileNames": [
|
||||
"../../lib/lib.es2022.full.d.ts",
|
||||
"../src-types/dogconfig.d.ts",
|
||||
"../src-types/index.d.ts",
|
||||
"./dogconfig.ts",
|
||||
"./dog.ts",
|
||||
"./lassie/lassieconfig.ts",
|
||||
"./lassie/lassiedog.ts",
|
||||
"./index.ts"
|
||||
],
|
||||
"fileNamesList": [
|
||||
[
|
||||
"../src-types/index.d.ts",
|
||||
"./dogconfig.ts"
|
||||
],
|
||||
[
|
||||
"../src-types/index.d.ts"
|
||||
],
|
||||
[
|
||||
"../src-types/index.d.ts",
|
||||
"./lassie/lassiedog.ts"
|
||||
],
|
||||
[
|
||||
"./dog.ts",
|
||||
"./lassie/lassieconfig.ts"
|
||||
],
|
||||
[
|
||||
"../src-types/dogconfig.d.ts"
|
||||
],
|
||||
[
|
||||
"./dog.ts",
|
||||
"./index.ts"
|
||||
]
|
||||
],
|
||||
"fileInfos": {
|
||||
"../../lib/lib.es2022.full.d.ts": {
|
||||
"version": "-7698705165-/// <reference no-default-lib=\"true\"/>\ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array<T> { length: number; [n: number]: T; }",
|
||||
"signature": "-7698705165-/// <reference no-default-lib=\"true\"/>\ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array<T> { length: number; [n: number]: T; }",
|
||||
"affectsGlobalScope": true,
|
||||
"impliedFormat": 1
|
||||
},
|
||||
"../src-types/dogconfig.d.ts": {
|
||||
"version": "-2632060142-export interface DogConfig {\r\n name: string;\r\n}\r\n",
|
||||
"signature": "-2632060142-export interface DogConfig {\r\n name: string;\r\n}\r\n",
|
||||
"impliedFormat": 99
|
||||
},
|
||||
"../src-types/index.d.ts": {
|
||||
"version": "-5608794531-export * from './dogconfig.js';\r\n",
|
||||
"signature": "-5608794531-export * from './dogconfig.js';\r\n",
|
||||
"impliedFormat": 99
|
||||
},
|
||||
"./dogconfig.ts": {
|
||||
"version": "1966273863-import { DogConfig } from 'src-types';\n\nexport const DOG_CONFIG: DogConfig = {\n name: 'Default dog',\n};\n",
|
||||
"signature": "17588480778-import { DogConfig } from 'src-types';\r\nexport declare const DOG_CONFIG: DogConfig;\r\n",
|
||||
"impliedFormat": 99
|
||||
},
|
||||
"./dog.ts": {
|
||||
"version": "6091345804-import { DogConfig } from 'src-types';\nimport { DOG_CONFIG } from './dogconfig.js';\n\nexport abstract class Dog {\n\n public static getCapabilities(): DogConfig {\n return DOG_CONFIG;\n }\n}\n",
|
||||
"signature": "22128633249-import { DogConfig } from 'src-types';\r\nexport declare abstract class Dog {\r\n static getCapabilities(): DogConfig;\r\n}\r\n",
|
||||
"impliedFormat": 99
|
||||
},
|
||||
"./lassie/lassieconfig.ts": {
|
||||
"version": "4440579024-import { DogConfig } from 'src-types';\n\nexport const LASSIE_CONFIG: DogConfig = { name: 'Lassie' };\n",
|
||||
"signature": "8131483665-import { DogConfig } from 'src-types';\r\nexport declare const LASSIE_CONFIG: DogConfig;\r\n",
|
||||
"impliedFormat": 99
|
||||
},
|
||||
"./lassie/lassiedog.ts": {
|
||||
"version": "-32303727812-import { Dog } from '../dog.js';\nimport { LASSIE_CONFIG } from './lassieconfig.js';\n\nexport class LassieDog extends Dog {\n protected static getDogConfig = () => LASSIE_CONFIG;\n}\n",
|
||||
"signature": "-20244062422-import { Dog } from '../dog.js';\r\nexport declare class LassieDog extends Dog {\r\n protected static getDogConfig: () => import(\"../index.js\").DogConfig;\r\n}\r\n",
|
||||
"impliedFormat": 99
|
||||
},
|
||||
"./index.ts": {
|
||||
"version": "-15974991320-export * from 'src-types';\nexport * from './lassie/lassiedog.js';\n",
|
||||
"signature": "-16783836862-export * from 'src-types';\r\nexport * from './lassie/lassiedog.js';\r\n",
|
||||
"impliedFormat": 99
|
||||
}
|
||||
},
|
||||
"options": {
|
||||
"composite": true,
|
||||
"declaration": true,
|
||||
"module": 100
|
||||
},
|
||||
"referencedMap": {
|
||||
"./dog.ts": [
|
||||
"../src-types/index.d.ts",
|
||||
"./dogconfig.ts"
|
||||
],
|
||||
"./dogconfig.ts": [
|
||||
"../src-types/index.d.ts"
|
||||
],
|
||||
"./index.ts": [
|
||||
"../src-types/index.d.ts",
|
||||
"./lassie/lassiedog.ts"
|
||||
],
|
||||
"./lassie/lassieconfig.ts": [
|
||||
"../src-types/index.d.ts"
|
||||
],
|
||||
"./lassie/lassiedog.ts": [
|
||||
"./dog.ts",
|
||||
"./lassie/lassieconfig.ts"
|
||||
],
|
||||
"../src-types/index.d.ts": [
|
||||
"../src-types/dogconfig.d.ts"
|
||||
]
|
||||
},
|
||||
"exportedModulesMap": {
|
||||
"./dog.ts": [
|
||||
"../src-types/index.d.ts"
|
||||
],
|
||||
"./dogconfig.ts": [
|
||||
"../src-types/index.d.ts"
|
||||
],
|
||||
"./index.ts": [
|
||||
"../src-types/index.d.ts",
|
||||
"./lassie/lassiedog.ts"
|
||||
],
|
||||
"./lassie/lassieconfig.ts": [
|
||||
"../src-types/index.d.ts"
|
||||
],
|
||||
"./lassie/lassiedog.ts": [
|
||||
"./dog.ts",
|
||||
"./index.ts"
|
||||
],
|
||||
"../src-types/index.d.ts": [
|
||||
"../src-types/dogconfig.d.ts"
|
||||
]
|
||||
},
|
||||
"semanticDiagnosticsPerFile": [
|
||||
"../../lib/lib.es2022.full.d.ts",
|
||||
"./dog.ts",
|
||||
"./dogconfig.ts",
|
||||
"./index.ts",
|
||||
"./lassie/lassieconfig.ts",
|
||||
"./lassie/lassiedog.ts",
|
||||
"../src-types/dogconfig.d.ts",
|
||||
"../src-types/index.d.ts"
|
||||
]
|
||||
},
|
||||
"version": "FakeTSVersion",
|
||||
"size": 2712
|
||||
}
|
||||
|
||||
//// [/src/src-types/dogconfig.d.ts]
|
||||
export interface DogConfig {
|
||||
name: string;
|
||||
}
|
||||
|
||||
|
||||
//// [/src/src-types/dogconfig.js]
|
||||
export {};
|
||||
|
||||
|
||||
//// [/src/src-types/index.d.ts]
|
||||
export * from './dogconfig.js';
|
||||
|
||||
|
||||
//// [/src/src-types/index.js]
|
||||
export * from './dogconfig.js';
|
||||
|
||||
|
||||
//// [/src/src-types/tsconfig.tsbuildinfo]
|
||||
{"program":{"fileNames":["../../lib/lib.es2022.full.d.ts","./dogconfig.ts","./index.ts"],"fileInfos":[{"version":"-7698705165-/// <reference no-default-lib=\"true\"/>\ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array<T> { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-5575793279-export interface DogConfig {\n name: string;\n}","signature":"-2632060142-export interface DogConfig {\r\n name: string;\r\n}\r\n","impliedFormat":99},{"version":"-6189272282-export * from './dogconfig.js';","signature":"-5608794531-export * from './dogconfig.js';\r\n","impliedFormat":99}],"options":{"composite":true,"declaration":true,"module":100},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3]},"version":"FakeTSVersion"}
|
||||
|
||||
//// [/src/src-types/tsconfig.tsbuildinfo.readable.baseline.txt]
|
||||
{
|
||||
"program": {
|
||||
"fileNames": [
|
||||
"../../lib/lib.es2022.full.d.ts",
|
||||
"./dogconfig.ts",
|
||||
"./index.ts"
|
||||
],
|
||||
"fileNamesList": [
|
||||
[
|
||||
"./dogconfig.ts"
|
||||
]
|
||||
],
|
||||
"fileInfos": {
|
||||
"../../lib/lib.es2022.full.d.ts": {
|
||||
"version": "-7698705165-/// <reference no-default-lib=\"true\"/>\ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array<T> { length: number; [n: number]: T; }",
|
||||
"signature": "-7698705165-/// <reference no-default-lib=\"true\"/>\ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array<T> { length: number; [n: number]: T; }",
|
||||
"affectsGlobalScope": true,
|
||||
"impliedFormat": 1
|
||||
},
|
||||
"./dogconfig.ts": {
|
||||
"version": "-5575793279-export interface DogConfig {\n name: string;\n}",
|
||||
"signature": "-2632060142-export interface DogConfig {\r\n name: string;\r\n}\r\n",
|
||||
"impliedFormat": 99
|
||||
},
|
||||
"./index.ts": {
|
||||
"version": "-6189272282-export * from './dogconfig.js';",
|
||||
"signature": "-5608794531-export * from './dogconfig.js';\r\n",
|
||||
"impliedFormat": 99
|
||||
}
|
||||
},
|
||||
"options": {
|
||||
"composite": true,
|
||||
"declaration": true,
|
||||
"module": 100
|
||||
},
|
||||
"referencedMap": {
|
||||
"./index.ts": [
|
||||
"./dogconfig.ts"
|
||||
]
|
||||
},
|
||||
"exportedModulesMap": {
|
||||
"./index.ts": [
|
||||
"./dogconfig.ts"
|
||||
]
|
||||
},
|
||||
"semanticDiagnosticsPerFile": [
|
||||
"../../lib/lib.es2022.full.d.ts",
|
||||
"./dogconfig.ts",
|
||||
"./index.ts"
|
||||
]
|
||||
},
|
||||
"version": "FakeTSVersion",
|
||||
"size": 1038
|
||||
}
|
||||
|
||||
|
||||
@ -22,7 +22,7 @@ export type { TheNum } from './const.cjs';
|
||||
{"name":"pkg2","version":"1.0.0","main":"build/index.js","type":"module"}
|
||||
|
||||
//// [/user/username/projects/myproject/node_modules/pkg2] symlink(/user/username/projects/myproject/packages/pkg2)
|
||||
//// [/a/lib/lib.es2020.full.d.ts]
|
||||
//// [/a/lib/lib.es2022.full.d.ts]
|
||||
/// <reference no-default-lib="true"/>
|
||||
interface Boolean {}
|
||||
interface Function {}
|
||||
@ -60,31 +60,46 @@ File '/user/username/projects/myproject/packages/pkg2/const.cts' exist - use it
|
||||
File '/a/lib/package.json' does not exist.
|
||||
File '/a/package.json' does not exist.
|
||||
File '/package.json' does not exist.
|
||||
[91merror[0m[90m TS6053: [0mFile '/a/lib/lib.es2022.full.d.ts' not found.
|
||||
The file is in the program because:
|
||||
Default library for target 'es2022'
|
||||
[[90m12:01:00 AM[0m] Project 'packages/pkg1/tsconfig.json' is out of date because output file 'packages/pkg1/build/index.js' does not exist
|
||||
|
||||
[91merror[0m[90m TS2318: [0mCannot find global type 'Array'.
|
||||
[[90m12:01:01 AM[0m] Building project '/user/username/projects/myproject/packages/pkg1/tsconfig.json'...
|
||||
|
||||
[91merror[0m[90m TS2318: [0mCannot find global type 'Boolean'.
|
||||
|
||||
[91merror[0m[90m TS2318: [0mCannot find global type 'Function'.
|
||||
|
||||
[91merror[0m[90m TS2318: [0mCannot find global type 'IArguments'.
|
||||
|
||||
[91merror[0m[90m TS2318: [0mCannot find global type 'Number'.
|
||||
|
||||
[91merror[0m[90m TS2318: [0mCannot find global type 'Object'.
|
||||
|
||||
[91merror[0m[90m TS2318: [0mCannot find global type 'RegExp'.
|
||||
|
||||
[91merror[0m[90m TS2318: [0mCannot find global type 'String'.
|
||||
|
||||
[[90m12:00:45 AM[0m] Project 'packages/pkg1/tsconfig.json' can't be built because its dependency 'packages/pkg2' has errors
|
||||
|
||||
[[90m12:00:46 AM[0m] Skipping build of project '/user/username/projects/myproject/packages/pkg1/tsconfig.json' because its dependency '/user/username/projects/myproject/packages/pkg2' has errors
|
||||
|
||||
[[90m12:00:47 AM[0m] Found 9 errors. Watching for file changes.
|
||||
Found 'package.json' at '/user/username/projects/myproject/packages/pkg1/package.json'.
|
||||
'package.json' does not have a 'typesVersions' field.
|
||||
======== Resolving module 'pkg2' from '/user/username/projects/myproject/packages/pkg1/index.ts'. ========
|
||||
Module resolution kind is not specified, using 'Node16'.
|
||||
File '/user/username/projects/myproject/packages/pkg1/package.json' exists according to earlier cached lookups.
|
||||
Loading module 'pkg2' from 'node_modules' folder, target file type 'TypeScript'.
|
||||
Directory '/user/username/projects/myproject/packages/pkg1/node_modules' does not exist, skipping all lookups in it.
|
||||
Directory '/user/username/projects/myproject/packages/node_modules' does not exist, skipping all lookups in it.
|
||||
Found 'package.json' at '/user/username/projects/myproject/node_modules/pkg2/package.json'.
|
||||
'package.json' does not have a 'typesVersions' field.
|
||||
'package.json' does not have a 'typings' field.
|
||||
'package.json' does not have a 'types' field.
|
||||
'package.json' has 'main' field 'build/index.js' that references '/user/username/projects/myproject/node_modules/pkg2/build/index.js'.
|
||||
File '/user/username/projects/myproject/node_modules/pkg2/build/index.js' exist - use it as a name resolution result.
|
||||
File '/user/username/projects/myproject/node_modules/pkg2/build/index.js' has an unsupported extension, so skipping it.
|
||||
Loading module as file / folder, candidate module location '/user/username/projects/myproject/node_modules/pkg2/build/index.js', target file type 'TypeScript'.
|
||||
File name '/user/username/projects/myproject/node_modules/pkg2/build/index.js' has a '.js' extension - stripping it.
|
||||
File '/user/username/projects/myproject/node_modules/pkg2/build/index.ts' does not exist.
|
||||
File '/user/username/projects/myproject/node_modules/pkg2/build/index.tsx' does not exist.
|
||||
File '/user/username/projects/myproject/node_modules/pkg2/build/index.d.ts' exist - use it as a name resolution result.
|
||||
Resolving real path for '/user/username/projects/myproject/node_modules/pkg2/build/index.d.ts', result '/user/username/projects/myproject/packages/pkg2/build/index.d.ts'.
|
||||
======== Module name 'pkg2' was successfully resolved to '/user/username/projects/myproject/packages/pkg2/build/index.d.ts' with Package ID 'pkg2/build/index.d.ts@1.0.0'. ========
|
||||
File '/user/username/projects/myproject/packages/pkg2/build/package.json' does not exist.
|
||||
File '/user/username/projects/myproject/packages/pkg2/package.json' exists according to earlier cached lookups.
|
||||
======== Resolving module './const.cjs' from '/user/username/projects/myproject/packages/pkg2/build/index.d.ts'. ========
|
||||
Using compiler options of project reference redirect '/user/username/projects/myproject/packages/pkg2/tsconfig.json'.
|
||||
Module resolution kind is not specified, using 'Node16'.
|
||||
Loading module as file / folder, candidate module location '/user/username/projects/myproject/packages/pkg2/build/const.cjs', target file type 'TypeScript'.
|
||||
File name '/user/username/projects/myproject/packages/pkg2/build/const.cjs' has a '.cjs' extension - stripping it.
|
||||
File '/user/username/projects/myproject/packages/pkg2/build/const.cts' does not exist.
|
||||
File '/user/username/projects/myproject/packages/pkg2/build/const.d.cts' exist - use it as a name resolution result.
|
||||
======== Module name './const.cjs' was successfully resolved to '/user/username/projects/myproject/packages/pkg2/build/const.d.cts'. ========
|
||||
File '/a/lib/package.json' does not exist according to earlier cached lookups.
|
||||
File '/a/package.json' does not exist according to earlier cached lookups.
|
||||
File '/package.json' does not exist according to earlier cached lookups.
|
||||
[[90m12:01:07 AM[0m] Found 0 errors. Watching for file changes.
|
||||
|
||||
|
||||
|
||||
@ -92,12 +107,40 @@ Program root files: ["/user/username/projects/myproject/packages/pkg2/const.cts"
|
||||
Program options: {"composite":true,"outDir":"/user/username/projects/myproject/packages/pkg2/build","module":100,"watch":true,"traceResolution":true,"configFilePath":"/user/username/projects/myproject/packages/pkg2/tsconfig.json"}
|
||||
Program structureReused: Not
|
||||
Program files::
|
||||
/a/lib/lib.es2022.full.d.ts
|
||||
/user/username/projects/myproject/packages/pkg2/const.cts
|
||||
/user/username/projects/myproject/packages/pkg2/index.ts
|
||||
|
||||
No cached semantic diagnostics in the builder::
|
||||
Semantic diagnostics in builder refreshed for::
|
||||
/a/lib/lib.es2022.full.d.ts
|
||||
/user/username/projects/myproject/packages/pkg2/const.cts
|
||||
/user/username/projects/myproject/packages/pkg2/index.ts
|
||||
|
||||
No shapes updated in the builder::
|
||||
Shape signatures in builder refreshed for::
|
||||
/a/lib/lib.es2022.full.d.ts (used version)
|
||||
/user/username/projects/myproject/packages/pkg2/const.cts (computed .d.ts during emit)
|
||||
/user/username/projects/myproject/packages/pkg2/index.ts (computed .d.ts during emit)
|
||||
|
||||
Program root files: ["/user/username/projects/myproject/packages/pkg1/index.ts"]
|
||||
Program options: {"outDir":"/user/username/projects/myproject/packages/pkg1/build","module":100,"watch":true,"traceResolution":true,"configFilePath":"/user/username/projects/myproject/packages/pkg1/tsconfig.json"}
|
||||
Program structureReused: Not
|
||||
Program files::
|
||||
/a/lib/lib.es2022.full.d.ts
|
||||
/user/username/projects/myproject/packages/pkg2/build/const.d.cts
|
||||
/user/username/projects/myproject/packages/pkg2/build/index.d.ts
|
||||
/user/username/projects/myproject/packages/pkg1/index.ts
|
||||
|
||||
Semantic diagnostics in builder refreshed for::
|
||||
/a/lib/lib.es2022.full.d.ts
|
||||
/user/username/projects/myproject/packages/pkg2/build/const.d.cts
|
||||
/user/username/projects/myproject/packages/pkg2/build/index.d.ts
|
||||
/user/username/projects/myproject/packages/pkg1/index.ts
|
||||
|
||||
Shape signatures in builder refreshed for::
|
||||
/a/lib/lib.es2022.full.d.ts (used version)
|
||||
/user/username/projects/myproject/packages/pkg2/build/const.d.cts (used version)
|
||||
/user/username/projects/myproject/packages/pkg2/build/index.d.ts (used version)
|
||||
/user/username/projects/myproject/packages/pkg1/index.ts (used version)
|
||||
|
||||
WatchedFiles::
|
||||
/user/username/projects/myproject/packages/pkg2/tsconfig.json:
|
||||
@ -108,16 +151,24 @@ WatchedFiles::
|
||||
{"fileName":"/user/username/projects/myproject/packages/pkg2/index.ts","pollingInterval":250}
|
||||
/user/username/projects/myproject/packages/pkg2/package.json:
|
||||
{"fileName":"/user/username/projects/myproject/packages/pkg2/package.json","pollingInterval":250}
|
||||
{"fileName":"/user/username/projects/myproject/packages/pkg2/package.json","pollingInterval":250}
|
||||
/a/lib/package.json:
|
||||
{"fileName":"/a/lib/package.json","pollingInterval":250}
|
||||
{"fileName":"/a/lib/package.json","pollingInterval":250}
|
||||
/a/package.json:
|
||||
{"fileName":"/a/package.json","pollingInterval":250}
|
||||
{"fileName":"/a/package.json","pollingInterval":250}
|
||||
/package.json:
|
||||
{"fileName":"/package.json","pollingInterval":250}
|
||||
{"fileName":"/package.json","pollingInterval":250}
|
||||
/user/username/projects/myproject/packages/pkg1/tsconfig.json:
|
||||
{"fileName":"/user/username/projects/myproject/packages/pkg1/tsconfig.json","pollingInterval":250}
|
||||
/user/username/projects/myproject/packages/pkg1/index.ts:
|
||||
{"fileName":"/user/username/projects/myproject/packages/pkg1/index.ts","pollingInterval":250}
|
||||
/user/username/projects/myproject/packages/pkg1/package.json:
|
||||
{"fileName":"/user/username/projects/myproject/packages/pkg1/package.json","pollingInterval":250}
|
||||
/user/username/projects/myproject/packages/pkg2/build/package.json:
|
||||
{"fileName":"/user/username/projects/myproject/packages/pkg2/build/package.json","pollingInterval":250}
|
||||
|
||||
FsWatches::
|
||||
|
||||
@ -129,6 +180,86 @@ FsWatchesRecursive::
|
||||
|
||||
exitCode:: ExitStatus.undefined
|
||||
|
||||
//// [/user/username/projects/myproject/packages/pkg2/build/const.cjs]
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
|
||||
|
||||
//// [/user/username/projects/myproject/packages/pkg2/build/const.d.cts]
|
||||
export declare type TheNum = 42;
|
||||
|
||||
|
||||
//// [/user/username/projects/myproject/packages/pkg2/build/index.js]
|
||||
export {};
|
||||
|
||||
|
||||
//// [/user/username/projects/myproject/packages/pkg2/build/index.d.ts]
|
||||
export type { TheNum } from './const.cjs';
|
||||
|
||||
|
||||
//// [/user/username/projects/myproject/packages/pkg2/build/tsconfig.tsbuildinfo]
|
||||
{"program":{"fileNames":["../../../../../../../a/lib/lib.es2022.full.d.ts","../const.cts","../index.ts"],"fileInfos":[{"version":"-7698705165-/// <reference no-default-lib=\"true\"/>\ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array<T> { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-11202312776-export type TheNum = 42;","signature":"-9649133742-export declare type TheNum = 42;\n","impliedFormat":1},{"version":"-9668872159-export type { TheNum } from './const.cjs';","signature":"-9835135925-export type { TheNum } from './const.cjs';\n","impliedFormat":99}],"options":{"composite":true,"module":100,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3]},"version":"FakeTSVersion"}
|
||||
|
||||
//// [/user/username/projects/myproject/packages/pkg2/build/tsconfig.tsbuildinfo.readable.baseline.txt]
|
||||
{
|
||||
"program": {
|
||||
"fileNames": [
|
||||
"../../../../../../../a/lib/lib.es2022.full.d.ts",
|
||||
"../const.cts",
|
||||
"../index.ts"
|
||||
],
|
||||
"fileNamesList": [
|
||||
[
|
||||
"../const.cts"
|
||||
]
|
||||
],
|
||||
"fileInfos": {
|
||||
"../../../../../../../a/lib/lib.es2022.full.d.ts": {
|
||||
"version": "-7698705165-/// <reference no-default-lib=\"true\"/>\ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array<T> { length: number; [n: number]: T; }",
|
||||
"signature": "-7698705165-/// <reference no-default-lib=\"true\"/>\ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array<T> { length: number; [n: number]: T; }",
|
||||
"affectsGlobalScope": true,
|
||||
"impliedFormat": 1
|
||||
},
|
||||
"../const.cts": {
|
||||
"version": "-11202312776-export type TheNum = 42;",
|
||||
"signature": "-9649133742-export declare type TheNum = 42;\n",
|
||||
"impliedFormat": 1
|
||||
},
|
||||
"../index.ts": {
|
||||
"version": "-9668872159-export type { TheNum } from './const.cjs';",
|
||||
"signature": "-9835135925-export type { TheNum } from './const.cjs';\n",
|
||||
"impliedFormat": 99
|
||||
}
|
||||
},
|
||||
"options": {
|
||||
"composite": true,
|
||||
"module": 100,
|
||||
"outDir": "./"
|
||||
},
|
||||
"referencedMap": {
|
||||
"../index.ts": [
|
||||
"../const.cts"
|
||||
]
|
||||
},
|
||||
"exportedModulesMap": {
|
||||
"../index.ts": [
|
||||
"../const.cts"
|
||||
]
|
||||
},
|
||||
"semanticDiagnosticsPerFile": [
|
||||
"../../../../../../../a/lib/lib.es2022.full.d.ts",
|
||||
"../const.cts",
|
||||
"../index.ts"
|
||||
]
|
||||
},
|
||||
"version": "FakeTSVersion",
|
||||
"size": 1019
|
||||
}
|
||||
|
||||
//// [/user/username/projects/myproject/packages/pkg1/build/index.js]
|
||||
export const theNum = 42;
|
||||
|
||||
|
||||
|
||||
Change:: reports import errors after change to package file
|
||||
|
||||
@ -138,6 +269,78 @@ Input::
|
||||
|
||||
|
||||
Output::
|
||||
>> Screen clear
|
||||
[[90m12:01:11 AM[0m] File change detected. Starting incremental compilation...
|
||||
|
||||
[[90m12:01:12 AM[0m] Project 'packages/pkg1/tsconfig.json' is out of date because oldest output 'packages/pkg1/build/index.js' is older than newest input 'packages/pkg2'
|
||||
|
||||
[[90m12:01:13 AM[0m] Building project '/user/username/projects/myproject/packages/pkg1/tsconfig.json'...
|
||||
|
||||
Found 'package.json' at '/user/username/projects/myproject/packages/pkg1/package.json'.
|
||||
'package.json' does not have a 'typesVersions' field.
|
||||
======== Resolving module 'pkg2' from '/user/username/projects/myproject/packages/pkg1/index.ts'. ========
|
||||
Module resolution kind is not specified, using 'Node16'.
|
||||
File '/user/username/projects/myproject/packages/pkg1/package.json' exists according to earlier cached lookups.
|
||||
Loading module 'pkg2' from 'node_modules' folder, target file type 'TypeScript'.
|
||||
Directory '/user/username/projects/myproject/packages/pkg1/node_modules' does not exist, skipping all lookups in it.
|
||||
Directory '/user/username/projects/myproject/packages/node_modules' does not exist, skipping all lookups in it.
|
||||
Found 'package.json' at '/user/username/projects/myproject/node_modules/pkg2/package.json'.
|
||||
'package.json' does not have a 'typesVersions' field.
|
||||
File '/user/username/projects/myproject/node_modules/pkg2.ts' does not exist.
|
||||
File '/user/username/projects/myproject/node_modules/pkg2.tsx' does not exist.
|
||||
File '/user/username/projects/myproject/node_modules/pkg2.d.ts' does not exist.
|
||||
'package.json' does not have a 'typings' field.
|
||||
'package.json' does not have a 'types' field.
|
||||
'package.json' has 'main' field 'build/index.js' that references '/user/username/projects/myproject/node_modules/pkg2/build/index.js'.
|
||||
File '/user/username/projects/myproject/node_modules/pkg2/build/index.js' exist - use it as a name resolution result.
|
||||
File '/user/username/projects/myproject/node_modules/pkg2/build/index.js' has an unsupported extension, so skipping it.
|
||||
Loading module as file / folder, candidate module location '/user/username/projects/myproject/node_modules/pkg2/build/index.js', target file type 'TypeScript'.
|
||||
File '/user/username/projects/myproject/node_modules/pkg2/build/index.js.ts' does not exist.
|
||||
File '/user/username/projects/myproject/node_modules/pkg2/build/index.js.tsx' does not exist.
|
||||
File '/user/username/projects/myproject/node_modules/pkg2/build/index.js.d.ts' does not exist.
|
||||
File name '/user/username/projects/myproject/node_modules/pkg2/build/index.js' has a '.js' extension - stripping it.
|
||||
File '/user/username/projects/myproject/node_modules/pkg2/build/index.ts' does not exist.
|
||||
File '/user/username/projects/myproject/node_modules/pkg2/build/index.tsx' does not exist.
|
||||
File '/user/username/projects/myproject/node_modules/pkg2/build/index.d.ts' exist - use it as a name resolution result.
|
||||
Resolving real path for '/user/username/projects/myproject/node_modules/pkg2/build/index.d.ts', result '/user/username/projects/myproject/packages/pkg2/build/index.d.ts'.
|
||||
======== Module name 'pkg2' was successfully resolved to '/user/username/projects/myproject/packages/pkg2/build/index.d.ts' with Package ID 'pkg2/build/index.d.ts@1.0.0'. ========
|
||||
File '/user/username/projects/myproject/packages/pkg2/build/package.json' does not exist.
|
||||
Found 'package.json' at '/user/username/projects/myproject/packages/pkg2/package.json'.
|
||||
'package.json' does not have a 'typesVersions' field.
|
||||
======== Resolving module './const.cjs' from '/user/username/projects/myproject/packages/pkg2/build/index.d.ts'. ========
|
||||
Using compiler options of project reference redirect '/user/username/projects/myproject/packages/pkg2/tsconfig.json'.
|
||||
Module resolution kind is not specified, using 'Node16'.
|
||||
Loading module as file / folder, candidate module location '/user/username/projects/myproject/packages/pkg2/build/const.cjs', target file type 'TypeScript'.
|
||||
File name '/user/username/projects/myproject/packages/pkg2/build/const.cjs' has a '.cjs' extension - stripping it.
|
||||
File '/user/username/projects/myproject/packages/pkg2/build/const.cts' does not exist.
|
||||
File '/user/username/projects/myproject/packages/pkg2/build/const.d.cts' exist - use it as a name resolution result.
|
||||
======== Module name './const.cjs' was successfully resolved to '/user/username/projects/myproject/packages/pkg2/build/const.d.cts'. ========
|
||||
File '/a/lib/package.json' does not exist.
|
||||
File '/a/package.json' does not exist.
|
||||
File '/package.json' does not exist.
|
||||
[96mpackages/pkg1/index.ts[0m:[93m1[0m:[93m29[0m - [91merror[0m[90m TS1471: [0mModule 'pkg2' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead.
|
||||
|
||||
[7m1[0m import type { TheNum } from 'pkg2'
|
||||
[7m [0m [91m ~~~~~~[0m
|
||||
|
||||
[[90m12:01:14 AM[0m] Found 1 error. Watching for file changes.
|
||||
|
||||
|
||||
|
||||
Program root files: ["/user/username/projects/myproject/packages/pkg1/index.ts"]
|
||||
Program options: {"outDir":"/user/username/projects/myproject/packages/pkg1/build","module":100,"watch":true,"traceResolution":true,"configFilePath":"/user/username/projects/myproject/packages/pkg1/tsconfig.json"}
|
||||
Program structureReused: Not
|
||||
Program files::
|
||||
/a/lib/lib.es2022.full.d.ts
|
||||
/user/username/projects/myproject/packages/pkg2/build/const.d.cts
|
||||
/user/username/projects/myproject/packages/pkg2/build/index.d.ts
|
||||
/user/username/projects/myproject/packages/pkg1/index.ts
|
||||
|
||||
Semantic diagnostics in builder refreshed for::
|
||||
/user/username/projects/myproject/packages/pkg1/index.ts
|
||||
|
||||
Shape signatures in builder refreshed for::
|
||||
/user/username/projects/myproject/packages/pkg1/index.ts (computed .d.ts)
|
||||
|
||||
WatchedFiles::
|
||||
/user/username/projects/myproject/packages/pkg2/tsconfig.json:
|
||||
@ -148,16 +351,24 @@ WatchedFiles::
|
||||
{"fileName":"/user/username/projects/myproject/packages/pkg2/index.ts","pollingInterval":250}
|
||||
/user/username/projects/myproject/packages/pkg2/package.json:
|
||||
{"fileName":"/user/username/projects/myproject/packages/pkg2/package.json","pollingInterval":250}
|
||||
{"fileName":"/user/username/projects/myproject/packages/pkg2/package.json","pollingInterval":250}
|
||||
/a/lib/package.json:
|
||||
{"fileName":"/a/lib/package.json","pollingInterval":250}
|
||||
{"fileName":"/a/lib/package.json","pollingInterval":250}
|
||||
/a/package.json:
|
||||
{"fileName":"/a/package.json","pollingInterval":250}
|
||||
{"fileName":"/a/package.json","pollingInterval":250}
|
||||
/package.json:
|
||||
{"fileName":"/package.json","pollingInterval":250}
|
||||
{"fileName":"/package.json","pollingInterval":250}
|
||||
/user/username/projects/myproject/packages/pkg1/tsconfig.json:
|
||||
{"fileName":"/user/username/projects/myproject/packages/pkg1/tsconfig.json","pollingInterval":250}
|
||||
/user/username/projects/myproject/packages/pkg1/index.ts:
|
||||
{"fileName":"/user/username/projects/myproject/packages/pkg1/index.ts","pollingInterval":250}
|
||||
/user/username/projects/myproject/packages/pkg1/package.json:
|
||||
{"fileName":"/user/username/projects/myproject/packages/pkg1/package.json","pollingInterval":250}
|
||||
/user/username/projects/myproject/packages/pkg2/build/package.json:
|
||||
{"fileName":"/user/username/projects/myproject/packages/pkg2/build/package.json","pollingInterval":250}
|
||||
|
||||
FsWatches::
|
||||
|
||||
@ -178,6 +389,67 @@ Input::
|
||||
|
||||
|
||||
Output::
|
||||
>> Screen clear
|
||||
[[90m12:01:18 AM[0m] File change detected. Starting incremental compilation...
|
||||
|
||||
[[90m12:01:19 AM[0m] Project 'packages/pkg1/tsconfig.json' is out of date because oldest output 'packages/pkg1/build/index.js' is older than newest input 'packages/pkg2'
|
||||
|
||||
[[90m12:01:20 AM[0m] Building project '/user/username/projects/myproject/packages/pkg1/tsconfig.json'...
|
||||
|
||||
Found 'package.json' at '/user/username/projects/myproject/packages/pkg1/package.json'.
|
||||
'package.json' does not have a 'typesVersions' field.
|
||||
======== Resolving module 'pkg2' from '/user/username/projects/myproject/packages/pkg1/index.ts'. ========
|
||||
Module resolution kind is not specified, using 'Node16'.
|
||||
File '/user/username/projects/myproject/packages/pkg1/package.json' exists according to earlier cached lookups.
|
||||
Loading module 'pkg2' from 'node_modules' folder, target file type 'TypeScript'.
|
||||
Directory '/user/username/projects/myproject/packages/pkg1/node_modules' does not exist, skipping all lookups in it.
|
||||
Directory '/user/username/projects/myproject/packages/node_modules' does not exist, skipping all lookups in it.
|
||||
Found 'package.json' at '/user/username/projects/myproject/node_modules/pkg2/package.json'.
|
||||
'package.json' does not have a 'typesVersions' field.
|
||||
'package.json' does not have a 'typings' field.
|
||||
'package.json' does not have a 'types' field.
|
||||
'package.json' has 'main' field 'build/index.js' that references '/user/username/projects/myproject/node_modules/pkg2/build/index.js'.
|
||||
File '/user/username/projects/myproject/node_modules/pkg2/build/index.js' exist - use it as a name resolution result.
|
||||
File '/user/username/projects/myproject/node_modules/pkg2/build/index.js' has an unsupported extension, so skipping it.
|
||||
Loading module as file / folder, candidate module location '/user/username/projects/myproject/node_modules/pkg2/build/index.js', target file type 'TypeScript'.
|
||||
File name '/user/username/projects/myproject/node_modules/pkg2/build/index.js' has a '.js' extension - stripping it.
|
||||
File '/user/username/projects/myproject/node_modules/pkg2/build/index.ts' does not exist.
|
||||
File '/user/username/projects/myproject/node_modules/pkg2/build/index.tsx' does not exist.
|
||||
File '/user/username/projects/myproject/node_modules/pkg2/build/index.d.ts' exist - use it as a name resolution result.
|
||||
Resolving real path for '/user/username/projects/myproject/node_modules/pkg2/build/index.d.ts', result '/user/username/projects/myproject/packages/pkg2/build/index.d.ts'.
|
||||
======== Module name 'pkg2' was successfully resolved to '/user/username/projects/myproject/packages/pkg2/build/index.d.ts' with Package ID 'pkg2/build/index.d.ts@1.0.0'. ========
|
||||
File '/user/username/projects/myproject/packages/pkg2/build/package.json' does not exist.
|
||||
Found 'package.json' at '/user/username/projects/myproject/packages/pkg2/package.json'.
|
||||
'package.json' does not have a 'typesVersions' field.
|
||||
======== Resolving module './const.cjs' from '/user/username/projects/myproject/packages/pkg2/build/index.d.ts'. ========
|
||||
Using compiler options of project reference redirect '/user/username/projects/myproject/packages/pkg2/tsconfig.json'.
|
||||
Module resolution kind is not specified, using 'Node16'.
|
||||
Loading module as file / folder, candidate module location '/user/username/projects/myproject/packages/pkg2/build/const.cjs', target file type 'TypeScript'.
|
||||
File name '/user/username/projects/myproject/packages/pkg2/build/const.cjs' has a '.cjs' extension - stripping it.
|
||||
File '/user/username/projects/myproject/packages/pkg2/build/const.cts' does not exist.
|
||||
File '/user/username/projects/myproject/packages/pkg2/build/const.d.cts' exist - use it as a name resolution result.
|
||||
======== Module name './const.cjs' was successfully resolved to '/user/username/projects/myproject/packages/pkg2/build/const.d.cts'. ========
|
||||
File '/a/lib/package.json' does not exist.
|
||||
File '/a/package.json' does not exist.
|
||||
File '/package.json' does not exist.
|
||||
[[90m12:01:24 AM[0m] Found 0 errors. Watching for file changes.
|
||||
|
||||
|
||||
|
||||
Program root files: ["/user/username/projects/myproject/packages/pkg1/index.ts"]
|
||||
Program options: {"outDir":"/user/username/projects/myproject/packages/pkg1/build","module":100,"watch":true,"traceResolution":true,"configFilePath":"/user/username/projects/myproject/packages/pkg1/tsconfig.json"}
|
||||
Program structureReused: Not
|
||||
Program files::
|
||||
/a/lib/lib.es2022.full.d.ts
|
||||
/user/username/projects/myproject/packages/pkg2/build/const.d.cts
|
||||
/user/username/projects/myproject/packages/pkg2/build/index.d.ts
|
||||
/user/username/projects/myproject/packages/pkg1/index.ts
|
||||
|
||||
Semantic diagnostics in builder refreshed for::
|
||||
/user/username/projects/myproject/packages/pkg1/index.ts
|
||||
|
||||
Shape signatures in builder refreshed for::
|
||||
/user/username/projects/myproject/packages/pkg1/index.ts (computed .d.ts)
|
||||
|
||||
WatchedFiles::
|
||||
/user/username/projects/myproject/packages/pkg2/tsconfig.json:
|
||||
@ -188,16 +460,24 @@ WatchedFiles::
|
||||
{"fileName":"/user/username/projects/myproject/packages/pkg2/index.ts","pollingInterval":250}
|
||||
/user/username/projects/myproject/packages/pkg2/package.json:
|
||||
{"fileName":"/user/username/projects/myproject/packages/pkg2/package.json","pollingInterval":250}
|
||||
{"fileName":"/user/username/projects/myproject/packages/pkg2/package.json","pollingInterval":250}
|
||||
/a/lib/package.json:
|
||||
{"fileName":"/a/lib/package.json","pollingInterval":250}
|
||||
{"fileName":"/a/lib/package.json","pollingInterval":250}
|
||||
/a/package.json:
|
||||
{"fileName":"/a/package.json","pollingInterval":250}
|
||||
{"fileName":"/a/package.json","pollingInterval":250}
|
||||
/package.json:
|
||||
{"fileName":"/package.json","pollingInterval":250}
|
||||
{"fileName":"/package.json","pollingInterval":250}
|
||||
/user/username/projects/myproject/packages/pkg1/tsconfig.json:
|
||||
{"fileName":"/user/username/projects/myproject/packages/pkg1/tsconfig.json","pollingInterval":250}
|
||||
/user/username/projects/myproject/packages/pkg1/index.ts:
|
||||
{"fileName":"/user/username/projects/myproject/packages/pkg1/index.ts","pollingInterval":250}
|
||||
/user/username/projects/myproject/packages/pkg1/package.json:
|
||||
{"fileName":"/user/username/projects/myproject/packages/pkg1/package.json","pollingInterval":250}
|
||||
/user/username/projects/myproject/packages/pkg2/build/package.json:
|
||||
{"fileName":"/user/username/projects/myproject/packages/pkg2/build/package.json","pollingInterval":250}
|
||||
|
||||
FsWatches::
|
||||
|
||||
@ -209,6 +489,7 @@ FsWatchesRecursive::
|
||||
|
||||
exitCode:: ExitStatus.undefined
|
||||
|
||||
//// [/user/username/projects/myproject/packages/pkg1/build/index.js] file written with same contents
|
||||
|
||||
Change:: reports import errors after change to package file
|
||||
|
||||
@ -218,6 +499,78 @@ Input::
|
||||
|
||||
|
||||
Output::
|
||||
>> Screen clear
|
||||
[[90m12:01:28 AM[0m] File change detected. Starting incremental compilation...
|
||||
|
||||
[[90m12:01:29 AM[0m] Project 'packages/pkg1/tsconfig.json' is out of date because oldest output 'packages/pkg1/build/index.js' is older than newest input 'packages/pkg2'
|
||||
|
||||
[[90m12:01:30 AM[0m] Building project '/user/username/projects/myproject/packages/pkg1/tsconfig.json'...
|
||||
|
||||
Found 'package.json' at '/user/username/projects/myproject/packages/pkg1/package.json'.
|
||||
'package.json' does not have a 'typesVersions' field.
|
||||
======== Resolving module 'pkg2' from '/user/username/projects/myproject/packages/pkg1/index.ts'. ========
|
||||
Module resolution kind is not specified, using 'Node16'.
|
||||
File '/user/username/projects/myproject/packages/pkg1/package.json' exists according to earlier cached lookups.
|
||||
Loading module 'pkg2' from 'node_modules' folder, target file type 'TypeScript'.
|
||||
Directory '/user/username/projects/myproject/packages/pkg1/node_modules' does not exist, skipping all lookups in it.
|
||||
Directory '/user/username/projects/myproject/packages/node_modules' does not exist, skipping all lookups in it.
|
||||
Found 'package.json' at '/user/username/projects/myproject/node_modules/pkg2/package.json'.
|
||||
'package.json' does not have a 'typesVersions' field.
|
||||
File '/user/username/projects/myproject/node_modules/pkg2.ts' does not exist.
|
||||
File '/user/username/projects/myproject/node_modules/pkg2.tsx' does not exist.
|
||||
File '/user/username/projects/myproject/node_modules/pkg2.d.ts' does not exist.
|
||||
'package.json' does not have a 'typings' field.
|
||||
'package.json' does not have a 'types' field.
|
||||
'package.json' has 'main' field 'build/index.js' that references '/user/username/projects/myproject/node_modules/pkg2/build/index.js'.
|
||||
File '/user/username/projects/myproject/node_modules/pkg2/build/index.js' exist - use it as a name resolution result.
|
||||
File '/user/username/projects/myproject/node_modules/pkg2/build/index.js' has an unsupported extension, so skipping it.
|
||||
Loading module as file / folder, candidate module location '/user/username/projects/myproject/node_modules/pkg2/build/index.js', target file type 'TypeScript'.
|
||||
File '/user/username/projects/myproject/node_modules/pkg2/build/index.js.ts' does not exist.
|
||||
File '/user/username/projects/myproject/node_modules/pkg2/build/index.js.tsx' does not exist.
|
||||
File '/user/username/projects/myproject/node_modules/pkg2/build/index.js.d.ts' does not exist.
|
||||
File name '/user/username/projects/myproject/node_modules/pkg2/build/index.js' has a '.js' extension - stripping it.
|
||||
File '/user/username/projects/myproject/node_modules/pkg2/build/index.ts' does not exist.
|
||||
File '/user/username/projects/myproject/node_modules/pkg2/build/index.tsx' does not exist.
|
||||
File '/user/username/projects/myproject/node_modules/pkg2/build/index.d.ts' exist - use it as a name resolution result.
|
||||
Resolving real path for '/user/username/projects/myproject/node_modules/pkg2/build/index.d.ts', result '/user/username/projects/myproject/packages/pkg2/build/index.d.ts'.
|
||||
======== Module name 'pkg2' was successfully resolved to '/user/username/projects/myproject/packages/pkg2/build/index.d.ts' with Package ID 'pkg2/build/index.d.ts@1.0.0'. ========
|
||||
File '/user/username/projects/myproject/packages/pkg2/build/package.json' does not exist.
|
||||
Found 'package.json' at '/user/username/projects/myproject/packages/pkg2/package.json'.
|
||||
'package.json' does not have a 'typesVersions' field.
|
||||
======== Resolving module './const.cjs' from '/user/username/projects/myproject/packages/pkg2/build/index.d.ts'. ========
|
||||
Using compiler options of project reference redirect '/user/username/projects/myproject/packages/pkg2/tsconfig.json'.
|
||||
Module resolution kind is not specified, using 'Node16'.
|
||||
Loading module as file / folder, candidate module location '/user/username/projects/myproject/packages/pkg2/build/const.cjs', target file type 'TypeScript'.
|
||||
File name '/user/username/projects/myproject/packages/pkg2/build/const.cjs' has a '.cjs' extension - stripping it.
|
||||
File '/user/username/projects/myproject/packages/pkg2/build/const.cts' does not exist.
|
||||
File '/user/username/projects/myproject/packages/pkg2/build/const.d.cts' exist - use it as a name resolution result.
|
||||
======== Module name './const.cjs' was successfully resolved to '/user/username/projects/myproject/packages/pkg2/build/const.d.cts'. ========
|
||||
File '/a/lib/package.json' does not exist.
|
||||
File '/a/package.json' does not exist.
|
||||
File '/package.json' does not exist.
|
||||
[96mpackages/pkg1/index.ts[0m:[93m1[0m:[93m29[0m - [91merror[0m[90m TS1471: [0mModule 'pkg2' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead.
|
||||
|
||||
[7m1[0m import type { TheNum } from 'pkg2'
|
||||
[7m [0m [91m ~~~~~~[0m
|
||||
|
||||
[[90m12:01:31 AM[0m] Found 1 error. Watching for file changes.
|
||||
|
||||
|
||||
|
||||
Program root files: ["/user/username/projects/myproject/packages/pkg1/index.ts"]
|
||||
Program options: {"outDir":"/user/username/projects/myproject/packages/pkg1/build","module":100,"watch":true,"traceResolution":true,"configFilePath":"/user/username/projects/myproject/packages/pkg1/tsconfig.json"}
|
||||
Program structureReused: Not
|
||||
Program files::
|
||||
/a/lib/lib.es2022.full.d.ts
|
||||
/user/username/projects/myproject/packages/pkg2/build/const.d.cts
|
||||
/user/username/projects/myproject/packages/pkg2/build/index.d.ts
|
||||
/user/username/projects/myproject/packages/pkg1/index.ts
|
||||
|
||||
Semantic diagnostics in builder refreshed for::
|
||||
/user/username/projects/myproject/packages/pkg1/index.ts
|
||||
|
||||
Shape signatures in builder refreshed for::
|
||||
/user/username/projects/myproject/packages/pkg1/index.ts (computed .d.ts)
|
||||
|
||||
WatchedFiles::
|
||||
/user/username/projects/myproject/packages/pkg2/tsconfig.json:
|
||||
@ -228,16 +581,24 @@ WatchedFiles::
|
||||
{"fileName":"/user/username/projects/myproject/packages/pkg2/index.ts","pollingInterval":250}
|
||||
/user/username/projects/myproject/packages/pkg2/package.json:
|
||||
{"fileName":"/user/username/projects/myproject/packages/pkg2/package.json","pollingInterval":250}
|
||||
{"fileName":"/user/username/projects/myproject/packages/pkg2/package.json","pollingInterval":250}
|
||||
/a/lib/package.json:
|
||||
{"fileName":"/a/lib/package.json","pollingInterval":250}
|
||||
{"fileName":"/a/lib/package.json","pollingInterval":250}
|
||||
/a/package.json:
|
||||
{"fileName":"/a/package.json","pollingInterval":250}
|
||||
{"fileName":"/a/package.json","pollingInterval":250}
|
||||
/package.json:
|
||||
{"fileName":"/package.json","pollingInterval":250}
|
||||
{"fileName":"/package.json","pollingInterval":250}
|
||||
/user/username/projects/myproject/packages/pkg1/tsconfig.json:
|
||||
{"fileName":"/user/username/projects/myproject/packages/pkg1/tsconfig.json","pollingInterval":250}
|
||||
/user/username/projects/myproject/packages/pkg1/index.ts:
|
||||
{"fileName":"/user/username/projects/myproject/packages/pkg1/index.ts","pollingInterval":250}
|
||||
/user/username/projects/myproject/packages/pkg1/package.json:
|
||||
{"fileName":"/user/username/projects/myproject/packages/pkg1/package.json","pollingInterval":250}
|
||||
/user/username/projects/myproject/packages/pkg2/build/package.json:
|
||||
{"fileName":"/user/username/projects/myproject/packages/pkg2/build/package.json","pollingInterval":250}
|
||||
|
||||
FsWatches::
|
||||
|
||||
@ -263,11 +624,11 @@ export type { TheNum } from './const.cjs';
|
||||
|
||||
Output::
|
||||
>> Screen clear
|
||||
[[90m12:01:03 AM[0m] File change detected. Starting incremental compilation...
|
||||
[[90m12:01:38 AM[0m] File change detected. Starting incremental compilation...
|
||||
|
||||
[[90m12:01:04 AM[0m] Project 'packages/pkg2/tsconfig.json' is out of date because output file 'packages/pkg2/build/const.cjs' does not exist
|
||||
[[90m12:01:39 AM[0m] Project 'packages/pkg2/tsconfig.json' is out of date because oldest output 'packages/pkg2/build/const.cjs' is older than newest input 'packages/pkg2/index.cts'
|
||||
|
||||
[[90m12:01:05 AM[0m] Building project '/user/username/projects/myproject/packages/pkg2/tsconfig.json'...
|
||||
[[90m12:01:40 AM[0m] Building project '/user/username/projects/myproject/packages/pkg2/tsconfig.json'...
|
||||
|
||||
======== Resolving module './const.cjs' from '/user/username/projects/myproject/packages/pkg2/index.cts'. ========
|
||||
Module resolution kind is not specified, using 'Node16'.
|
||||
@ -281,27 +642,7 @@ File '/user/username/projects/myproject/packages/pkg2/const.cts' exist - use it
|
||||
File '/a/lib/package.json' does not exist.
|
||||
File '/a/package.json' does not exist.
|
||||
File '/package.json' does not exist.
|
||||
[91merror[0m[90m TS6053: [0mFile '/a/lib/lib.es2022.full.d.ts' not found.
|
||||
The file is in the program because:
|
||||
Default library for target 'es2022'
|
||||
|
||||
[91merror[0m[90m TS2318: [0mCannot find global type 'Array'.
|
||||
|
||||
[91merror[0m[90m TS2318: [0mCannot find global type 'Boolean'.
|
||||
|
||||
[91merror[0m[90m TS2318: [0mCannot find global type 'Function'.
|
||||
|
||||
[91merror[0m[90m TS2318: [0mCannot find global type 'IArguments'.
|
||||
|
||||
[91merror[0m[90m TS2318: [0mCannot find global type 'Number'.
|
||||
|
||||
[91merror[0m[90m TS2318: [0mCannot find global type 'Object'.
|
||||
|
||||
[91merror[0m[90m TS2318: [0mCannot find global type 'RegExp'.
|
||||
|
||||
[91merror[0m[90m TS2318: [0mCannot find global type 'String'.
|
||||
|
||||
[[90m12:01:06 AM[0m] Found 9 errors. Watching for file changes.
|
||||
[[90m12:01:49 AM[0m] Updating unchanged output timestamps of project '/user/username/projects/myproject/packages/pkg2/tsconfig.json'...
|
||||
|
||||
|
||||
|
||||
@ -309,12 +650,15 @@ Program root files: ["/user/username/projects/myproject/packages/pkg2/const.cts"
|
||||
Program options: {"composite":true,"outDir":"/user/username/projects/myproject/packages/pkg2/build","module":100,"watch":true,"traceResolution":true,"configFilePath":"/user/username/projects/myproject/packages/pkg2/tsconfig.json"}
|
||||
Program structureReused: Not
|
||||
Program files::
|
||||
/a/lib/lib.es2022.full.d.ts
|
||||
/user/username/projects/myproject/packages/pkg2/const.cts
|
||||
/user/username/projects/myproject/packages/pkg2/index.cts
|
||||
|
||||
No cached semantic diagnostics in the builder::
|
||||
Semantic diagnostics in builder refreshed for::
|
||||
/user/username/projects/myproject/packages/pkg2/index.cts
|
||||
|
||||
No shapes updated in the builder::
|
||||
Shape signatures in builder refreshed for::
|
||||
/user/username/projects/myproject/packages/pkg2/index.cts (computed .d.ts)
|
||||
|
||||
WatchedFiles::
|
||||
/user/username/projects/myproject/packages/pkg2/tsconfig.json:
|
||||
@ -323,16 +667,24 @@ WatchedFiles::
|
||||
{"fileName":"/user/username/projects/myproject/packages/pkg2/const.cts","pollingInterval":250}
|
||||
/user/username/projects/myproject/packages/pkg2/package.json:
|
||||
{"fileName":"/user/username/projects/myproject/packages/pkg2/package.json","pollingInterval":250}
|
||||
{"fileName":"/user/username/projects/myproject/packages/pkg2/package.json","pollingInterval":250}
|
||||
/a/lib/package.json:
|
||||
{"fileName":"/a/lib/package.json","pollingInterval":250}
|
||||
{"fileName":"/a/lib/package.json","pollingInterval":250}
|
||||
/a/package.json:
|
||||
{"fileName":"/a/package.json","pollingInterval":250}
|
||||
{"fileName":"/a/package.json","pollingInterval":250}
|
||||
/package.json:
|
||||
{"fileName":"/package.json","pollingInterval":250}
|
||||
{"fileName":"/package.json","pollingInterval":250}
|
||||
/user/username/projects/myproject/packages/pkg1/tsconfig.json:
|
||||
{"fileName":"/user/username/projects/myproject/packages/pkg1/tsconfig.json","pollingInterval":250}
|
||||
/user/username/projects/myproject/packages/pkg1/index.ts:
|
||||
{"fileName":"/user/username/projects/myproject/packages/pkg1/index.ts","pollingInterval":250}
|
||||
/user/username/projects/myproject/packages/pkg1/package.json:
|
||||
{"fileName":"/user/username/projects/myproject/packages/pkg1/package.json","pollingInterval":250}
|
||||
/user/username/projects/myproject/packages/pkg2/build/package.json:
|
||||
{"fileName":"/user/username/projects/myproject/packages/pkg2/build/package.json","pollingInterval":250}
|
||||
/user/username/projects/myproject/packages/pkg2/index.cts:
|
||||
{"fileName":"/user/username/projects/myproject/packages/pkg2/index.cts","pollingInterval":250}
|
||||
|
||||
@ -346,3 +698,73 @@ FsWatchesRecursive::
|
||||
|
||||
exitCode:: ExitStatus.undefined
|
||||
|
||||
//// [/user/username/projects/myproject/packages/pkg2/build/const.cjs] file changed its modified time
|
||||
//// [/user/username/projects/myproject/packages/pkg2/build/const.d.cts] file changed its modified time
|
||||
//// [/user/username/projects/myproject/packages/pkg2/build/tsconfig.tsbuildinfo]
|
||||
{"program":{"fileNames":["../../../../../../../a/lib/lib.es2022.full.d.ts","../const.cts","../index.cts"],"fileInfos":[{"version":"-7698705165-/// <reference no-default-lib=\"true\"/>\ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array<T> { length: number; [n: number]: T; }","affectsGlobalScope":true,"impliedFormat":1},{"version":"-11202312776-export type TheNum = 42;","signature":"-9649133742-export declare type TheNum = 42;\n","impliedFormat":1},{"version":"-9668872159-export type { TheNum } from './const.cjs';","signature":"-9835135925-export type { TheNum } from './const.cjs';\n","impliedFormat":1}],"options":{"composite":true,"module":100,"outDir":"./"},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,2,3]},"version":"FakeTSVersion"}
|
||||
|
||||
//// [/user/username/projects/myproject/packages/pkg2/build/tsconfig.tsbuildinfo.readable.baseline.txt]
|
||||
{
|
||||
"program": {
|
||||
"fileNames": [
|
||||
"../../../../../../../a/lib/lib.es2022.full.d.ts",
|
||||
"../const.cts",
|
||||
"../index.cts"
|
||||
],
|
||||
"fileNamesList": [
|
||||
[
|
||||
"../const.cts"
|
||||
]
|
||||
],
|
||||
"fileInfos": {
|
||||
"../../../../../../../a/lib/lib.es2022.full.d.ts": {
|
||||
"version": "-7698705165-/// <reference no-default-lib=\"true\"/>\ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array<T> { length: number; [n: number]: T; }",
|
||||
"signature": "-7698705165-/// <reference no-default-lib=\"true\"/>\ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array<T> { length: number; [n: number]: T; }",
|
||||
"affectsGlobalScope": true,
|
||||
"impliedFormat": 1
|
||||
},
|
||||
"../const.cts": {
|
||||
"version": "-11202312776-export type TheNum = 42;",
|
||||
"signature": "-9649133742-export declare type TheNum = 42;\n",
|
||||
"impliedFormat": 1
|
||||
},
|
||||
"../index.cts": {
|
||||
"version": "-9668872159-export type { TheNum } from './const.cjs';",
|
||||
"signature": "-9835135925-export type { TheNum } from './const.cjs';\n",
|
||||
"impliedFormat": 1
|
||||
}
|
||||
},
|
||||
"options": {
|
||||
"composite": true,
|
||||
"module": 100,
|
||||
"outDir": "./"
|
||||
},
|
||||
"referencedMap": {
|
||||
"../index.cts": [
|
||||
"../const.cts"
|
||||
]
|
||||
},
|
||||
"exportedModulesMap": {
|
||||
"../index.cts": [
|
||||
"../const.cts"
|
||||
]
|
||||
},
|
||||
"semanticDiagnosticsPerFile": [
|
||||
"../../../../../../../a/lib/lib.es2022.full.d.ts",
|
||||
"../const.cts",
|
||||
"../index.cts"
|
||||
]
|
||||
},
|
||||
"version": "FakeTSVersion",
|
||||
"size": 1019
|
||||
}
|
||||
|
||||
//// [/user/username/projects/myproject/packages/pkg2/build/index.cjs]
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
|
||||
|
||||
//// [/user/username/projects/myproject/packages/pkg2/build/index.d.cts]
|
||||
export type { TheNum } from './const.cjs';
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user