mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
5.8 KiB
5.8 KiB
currentDirectory::/home/src/workspaces/solution
useCaseSensitiveFileNames::true
Input::
//// [/home/src/workspaces/solution/child/child.ts] *new*
import { child2 } from "../child/child2";
export function child() {
child2();
}
//// [/home/src/workspaces/solution/child/child2.ts] *new*
export function child2() {
}
//// [/home/src/workspaces/solution/child/tsconfig.json] *new*
{
"compilerOptions": { }
}
tsgo --b child/tsconfig.json -v --traceResolution --explainFiles
ExitStatus:: Success
Output::
[HH:MM:SS AM] Projects in this build:
* child/tsconfig.json
[HH:MM:SS AM] Project 'child/tsconfig.json' is out of date because output file 'child/tsconfig.tsbuildinfo' does not exist
[HH:MM:SS AM] Building project 'child/tsconfig.json'...
======== Resolving module '../child/child2' from '/home/src/workspaces/solution/child/child.ts'. ========
Module resolution kind is not specified, using 'Bundler'.
Resolving in CJS mode with conditions 'import', 'types'.
Loading module as file / folder, candidate module location '/home/src/workspaces/solution/child/child2', target file types: TypeScript, JavaScript, Declaration, JSON.
File '/home/src/workspaces/solution/child/child2.ts' exists - use it as a name resolution result.
======== Module name '../child/child2' was successfully resolved to '/home/src/workspaces/solution/child/child2.ts'. ========
../../tslibs/TS/Lib/lib.es2025.full.d.ts
Default library for target 'ES2025'
child/child2.ts
Imported via "../child/child2" from file 'child/child.ts'
Matched by default include pattern '**/*'
child/child.ts
Matched by default include pattern '**/*'
//// [/home/src/tslibs/TS/Lib/lib.es2025.full.d.ts] *Lib*
/// <reference no-default-lib="true"/>
interface Boolean {}
interface Function {}
interface CallableFunction {}
interface NewableFunction {}
interface IArguments {}
interface Number { toExponential: any; }
interface Object {}
interface RegExp {}
interface String { charAt: any; }
interface Array<T> { length: number; [n: number]: T; }
interface ReadonlyArray<T> {}
interface SymbolConstructor {
(desc?: string | number): symbol;
for(name: string): symbol;
readonly toStringTag: symbol;
}
declare var Symbol: SymbolConstructor;
interface Symbol {
readonly [Symbol.toStringTag]: string;
}
declare const console: { log(msg: any): void; };
//// [/home/src/workspaces/solution/child/child.js] *new*
import { child2 } from "../child/child2";
export function child() {
child2();
}
//// [/home/src/workspaces/solution/child/child2.js] *new*
export function child2() {
}
//// [/home/src/workspaces/solution/child/tsconfig.tsbuildinfo] *new*
{"version":"FakeTSVersion","root":["./child.ts","./child2.ts"]}
//// [/home/src/workspaces/solution/child/tsconfig.tsbuildinfo.readable.baseline.txt] *new*
{
"version": "FakeTSVersion",
"root": [
{
"files": [
"./child.ts"
],
"original": "./child.ts"
},
{
"files": [
"./child2.ts"
],
"original": "./child2.ts"
}
],
"size": 63
}
child/tsconfig.json::
SemanticDiagnostics::
*refresh* /home/src/tslibs/TS/Lib/lib.es2025.full.d.ts
*refresh* /home/src/workspaces/solution/child/child2.ts
*refresh* /home/src/workspaces/solution/child/child.ts
Signatures::
Edit [0]:: delete child2 file
//// [/home/src/workspaces/solution/child/child2.js] *deleted*
//// [/home/src/workspaces/solution/child/child2.ts] *deleted*
tsgo --b child/tsconfig.json -v --traceResolution --explainFiles
ExitStatus:: DiagnosticsPresent_OutputsGenerated
Output::
[HH:MM:SS AM] Projects in this build:
* child/tsconfig.json
[HH:MM:SS AM] Project 'child/tsconfig.json' is out of date because buildinfo file 'child/tsconfig.tsbuildinfo' indicates that file 'child/child2.ts' was root file of compilation but not any more.
[HH:MM:SS AM] Building project 'child/tsconfig.json'...
======== Resolving module '../child/child2' from '/home/src/workspaces/solution/child/child.ts'. ========
Module resolution kind is not specified, using 'Bundler'.
Resolving in CJS mode with conditions 'import', 'types'.
Loading module as file / folder, candidate module location '/home/src/workspaces/solution/child/child2', target file types: TypeScript, JavaScript, Declaration, JSON.
File '/home/src/workspaces/solution/child/child2.ts' does not exist.
File '/home/src/workspaces/solution/child/child2.tsx' does not exist.
File '/home/src/workspaces/solution/child/child2.d.ts' does not exist.
File '/home/src/workspaces/solution/child/child2.js' does not exist.
File '/home/src/workspaces/solution/child/child2.jsx' does not exist.
Directory '/home/src/workspaces/solution/child/child2' does not exist, skipping all lookups in it.
======== Module name '../child/child2' was not resolved. ========
child/child.ts:1:24 - error TS2307: Cannot find module '../child/child2' or its corresponding type declarations.
1 import { child2 } from "../child/child2";
~~~~~~~~~~~~~~~~~
../../tslibs/TS/Lib/lib.es2025.full.d.ts
Default library for target 'ES2025'
child/child.ts
Matched by default include pattern '**/*'
Found 1 error in child/child.ts:1
//// [/home/src/workspaces/solution/child/child.js] *rewrite with same content*
//// [/home/src/workspaces/solution/child/tsconfig.tsbuildinfo] *modified*
{"version":"FakeTSVersion","root":["./child.ts"],"semanticErrors":true}
//// [/home/src/workspaces/solution/child/tsconfig.tsbuildinfo.readable.baseline.txt] *modified*
{
"version": "FakeTSVersion",
"root": [
{
"files": [
"./child.ts"
],
"original": "./child.ts"
}
],
"size": 71,
"semanticErrors": true
}
child/tsconfig.json::
SemanticDiagnostics::
*refresh* /home/src/tslibs/TS/Lib/lib.es2025.full.d.ts
*refresh* /home/src/workspaces/solution/child/child.ts
Signatures::
useCaseSensitiveFileNames::true
Input::
//// [/home/src/workspaces/solution/child/child.ts] *new*
import { child2 } from "../child/child2";
export function child() {
child2();
}
//// [/home/src/workspaces/solution/child/child2.ts] *new*
export function child2() {
}
//// [/home/src/workspaces/solution/child/tsconfig.json] *new*
{
"compilerOptions": { }
}
tsgo --b child/tsconfig.json -v --traceResolution --explainFiles
ExitStatus:: Success
Output::
[HH:MM:SS AM] Projects in this build:
* child/tsconfig.json
[HH:MM:SS AM] Project 'child/tsconfig.json' is out of date because output file 'child/tsconfig.tsbuildinfo' does not exist
[HH:MM:SS AM] Building project 'child/tsconfig.json'...
======== Resolving module '../child/child2' from '/home/src/workspaces/solution/child/child.ts'. ========
Module resolution kind is not specified, using 'Bundler'.
Resolving in CJS mode with conditions 'import', 'types'.
Loading module as file / folder, candidate module location '/home/src/workspaces/solution/child/child2', target file types: TypeScript, JavaScript, Declaration, JSON.
File '/home/src/workspaces/solution/child/child2.ts' exists - use it as a name resolution result.
======== Module name '../child/child2' was successfully resolved to '/home/src/workspaces/solution/child/child2.ts'. ========
../../tslibs/TS/Lib/lib.es2025.full.d.ts
Default library for target 'ES2025'
child/child2.ts
Imported via "../child/child2" from file 'child/child.ts'
Matched by default include pattern '**/*'
child/child.ts
Matched by default include pattern '**/*'
//// [/home/src/tslibs/TS/Lib/lib.es2025.full.d.ts] *Lib*
/// <reference no-default-lib="true"/>
interface Boolean {}
interface Function {}
interface CallableFunction {}
interface NewableFunction {}
interface IArguments {}
interface Number { toExponential: any; }
interface Object {}
interface RegExp {}
interface String { charAt: any; }
interface Array<T> { length: number; [n: number]: T; }
interface ReadonlyArray<T> {}
interface SymbolConstructor {
(desc?: string | number): symbol;
for(name: string): symbol;
readonly toStringTag: symbol;
}
declare var Symbol: SymbolConstructor;
interface Symbol {
readonly [Symbol.toStringTag]: string;
}
declare const console: { log(msg: any): void; };
//// [/home/src/workspaces/solution/child/child.js] *new*
import { child2 } from "../child/child2";
export function child() {
child2();
}
//// [/home/src/workspaces/solution/child/child2.js] *new*
export function child2() {
}
//// [/home/src/workspaces/solution/child/tsconfig.tsbuildinfo] *new*
{"version":"FakeTSVersion","root":["./child.ts","./child2.ts"]}
//// [/home/src/workspaces/solution/child/tsconfig.tsbuildinfo.readable.baseline.txt] *new*
{
"version": "FakeTSVersion",
"root": [
{
"files": [
"./child.ts"
],
"original": "./child.ts"
},
{
"files": [
"./child2.ts"
],
"original": "./child2.ts"
}
],
"size": 63
}
child/tsconfig.json::
SemanticDiagnostics::
*refresh* /home/src/tslibs/TS/Lib/lib.es2025.full.d.ts
*refresh* /home/src/workspaces/solution/child/child2.ts
*refresh* /home/src/workspaces/solution/child/child.ts
Signatures::
Edit [0]:: delete child2 file
//// [/home/src/workspaces/solution/child/child2.js] *deleted*
//// [/home/src/workspaces/solution/child/child2.ts] *deleted*
tsgo --b child/tsconfig.json -v --traceResolution --explainFiles
ExitStatus:: DiagnosticsPresent_OutputsGenerated
Output::
[HH:MM:SS AM] Projects in this build:
* child/tsconfig.json
[HH:MM:SS AM] Project 'child/tsconfig.json' is out of date because buildinfo file 'child/tsconfig.tsbuildinfo' indicates that file 'child/child2.ts' was root file of compilation but not any more.
[HH:MM:SS AM] Building project 'child/tsconfig.json'...
======== Resolving module '../child/child2' from '/home/src/workspaces/solution/child/child.ts'. ========
Module resolution kind is not specified, using 'Bundler'.
Resolving in CJS mode with conditions 'import', 'types'.
Loading module as file / folder, candidate module location '/home/src/workspaces/solution/child/child2', target file types: TypeScript, JavaScript, Declaration, JSON.
File '/home/src/workspaces/solution/child/child2.ts' does not exist.
File '/home/src/workspaces/solution/child/child2.tsx' does not exist.
File '/home/src/workspaces/solution/child/child2.d.ts' does not exist.
File '/home/src/workspaces/solution/child/child2.js' does not exist.
File '/home/src/workspaces/solution/child/child2.jsx' does not exist.
Directory '/home/src/workspaces/solution/child/child2' does not exist, skipping all lookups in it.
======== Module name '../child/child2' was not resolved. ========
child/child.ts:1:24 - error TS2307: Cannot find module '../child/child2' or its corresponding type declarations.
1 import { child2 } from "../child/child2";
~~~~~~~~~~~~~~~~~
../../tslibs/TS/Lib/lib.es2025.full.d.ts
Default library for target 'ES2025'
child/child.ts
Matched by default include pattern '**/*'
Found 1 error in child/child.ts:1
//// [/home/src/workspaces/solution/child/child.js] *rewrite with same content*
//// [/home/src/workspaces/solution/child/tsconfig.tsbuildinfo] *modified*
{"version":"FakeTSVersion","root":["./child.ts"],"semanticErrors":true}
//// [/home/src/workspaces/solution/child/tsconfig.tsbuildinfo.readable.baseline.txt] *modified*
{
"version": "FakeTSVersion",
"root": [
{
"files": [
"./child.ts"
],
"original": "./child.ts"
}
],
"size": 71,
"semanticErrors": true
}
child/tsconfig.json::
SemanticDiagnostics::
*refresh* /home/src/tslibs/TS/Lib/lib.es2025.full.d.ts
*refresh* /home/src/workspaces/solution/child/child.ts
Signatures::