mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
cccc2ee29e
Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: RyanCavanaugh <[email protected]> Co-authored-by: Ryan Cavanaugh <[email protected]>
3.9 KiB
3.9 KiB
currentDirectory::/home/src/workspaces/solution
useCaseSensitiveFileNames::true
Input::
//// [/home/src/workspaces/solution/project/src/hello.json] *new*
{
"hello": "world"
}
//// [/home/src/workspaces/solution/project/src/index.ts] *new*
import hello from "./hello.json"
export default hello.hello
//// [/home/src/workspaces/solution/project/tsconfig.json] *new*
{
"compilerOptions": {
"composite": false,
"module": "commonjs",
"resolveJsonModule": true,
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"outDir": "dist",
"skipDefaultLibCheck": true,
},
"files": [ "src/hello.json" ], "include": [ "src/**/*" ],
}
tsgo --b project --v --explainFiles --listEmittedFiles
ExitStatus:: DiagnosticsPresent_OutputsGenerated
Output::
[HH:MM:SS AM] Projects in this build:
* project/tsconfig.json
[HH:MM:SS AM] Project 'project/tsconfig.json' is out of date because output file 'project/dist/tsconfig.tsbuildinfo' does not exist
[HH:MM:SS AM] Building project 'project/tsconfig.json'...
project/tsconfig.json:8:9 - error TS5011: The common source directory of 'tsconfig.json' is './src'. The 'rootDir' setting must be explicitly set to this or another path to adjust your output's file layout.
Visit https://aka.ms/ts6 for migration information.
8 "outDir": "dist",
~~~~~~~~
TSFILE: /home/src/workspaces/solution/project/dist/src/hello.json
TSFILE: /home/src/workspaces/solution/project/dist/src/index.js
TSFILE: /home/src/workspaces/solution/project/dist/tsconfig.tsbuildinfo
../../tslibs/TS/Lib/lib.es2025.full.d.ts
Default library for target 'ES2025'
project/src/hello.json
Part of 'files' list in tsconfig.json
Imported via "./hello.json" from file 'project/src/index.ts'
project/src/index.ts
Matched by include pattern 'src/**/*' in 'project/tsconfig.json'
Found 1 error in project/tsconfig.json:8
//// [/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/project/dist/src/hello.json] *new*
{
"hello": "world"
}
//// [/home/src/workspaces/solution/project/dist/src/index.js] *new*
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const hello_json_1 = __importDefault(require("./hello.json"));
exports.default = hello_json_1.default.hello;
//// [/home/src/workspaces/solution/project/dist/tsconfig.tsbuildinfo] *new*
{"version":"FakeTSVersion","errors":true,"root":["../src/hello.json","../src/index.ts"]}
//// [/home/src/workspaces/solution/project/dist/tsconfig.tsbuildinfo.readable.baseline.txt] *new*
{
"version": "FakeTSVersion",
"errors": true,
"root": [
{
"files": [
"../src/hello.json"
],
"original": "../src/hello.json"
},
{
"files": [
"../src/index.ts"
],
"original": "../src/index.ts"
}
],
"size": 88
}
project/tsconfig.json::
SemanticDiagnostics::
*not cached* /home/src/tslibs/TS/Lib/lib.es2025.full.d.ts
*not cached* /home/src/workspaces/solution/project/src/hello.json
*not cached* /home/src/workspaces/solution/project/src/index.ts
Signatures::
useCaseSensitiveFileNames::true
Input::
//// [/home/src/workspaces/solution/project/src/hello.json] *new*
{
"hello": "world"
}
//// [/home/src/workspaces/solution/project/src/index.ts] *new*
import hello from "./hello.json"
export default hello.hello
//// [/home/src/workspaces/solution/project/tsconfig.json] *new*
{
"compilerOptions": {
"composite": false,
"module": "commonjs",
"resolveJsonModule": true,
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"outDir": "dist",
"skipDefaultLibCheck": true,
},
"files": [ "src/hello.json" ], "include": [ "src/**/*" ],
}
tsgo --b project --v --explainFiles --listEmittedFiles
ExitStatus:: DiagnosticsPresent_OutputsGenerated
Output::
[HH:MM:SS AM] Projects in this build:
* project/tsconfig.json
[HH:MM:SS AM] Project 'project/tsconfig.json' is out of date because output file 'project/dist/tsconfig.tsbuildinfo' does not exist
[HH:MM:SS AM] Building project 'project/tsconfig.json'...
project/tsconfig.json:8:9 - error TS5011: The common source directory of 'tsconfig.json' is './src'. The 'rootDir' setting must be explicitly set to this or another path to adjust your output's file layout.
Visit https://aka.ms/ts6 for migration information.
8 "outDir": "dist",
~~~~~~~~
TSFILE: /home/src/workspaces/solution/project/dist/src/hello.json
TSFILE: /home/src/workspaces/solution/project/dist/src/index.js
TSFILE: /home/src/workspaces/solution/project/dist/tsconfig.tsbuildinfo
../../tslibs/TS/Lib/lib.es2025.full.d.ts
Default library for target 'ES2025'
project/src/hello.json
Part of 'files' list in tsconfig.json
Imported via "./hello.json" from file 'project/src/index.ts'
project/src/index.ts
Matched by include pattern 'src/**/*' in 'project/tsconfig.json'
Found 1 error in project/tsconfig.json:8
//// [/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/project/dist/src/hello.json] *new*
{
"hello": "world"
}
//// [/home/src/workspaces/solution/project/dist/src/index.js] *new*
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const hello_json_1 = __importDefault(require("./hello.json"));
exports.default = hello_json_1.default.hello;
//// [/home/src/workspaces/solution/project/dist/tsconfig.tsbuildinfo] *new*
{"version":"FakeTSVersion","errors":true,"root":["../src/hello.json","../src/index.ts"]}
//// [/home/src/workspaces/solution/project/dist/tsconfig.tsbuildinfo.readable.baseline.txt] *new*
{
"version": "FakeTSVersion",
"errors": true,
"root": [
{
"files": [
"../src/hello.json"
],
"original": "../src/hello.json"
},
{
"files": [
"../src/index.ts"
],
"original": "../src/index.ts"
}
],
"size": 88
}
project/tsconfig.json::
SemanticDiagnostics::
*not cached* /home/src/tslibs/TS/Lib/lib.es2025.full.d.ts
*not cached* /home/src/workspaces/solution/project/src/hello.json
*not cached* /home/src/workspaces/solution/project/src/index.ts
Signatures::