mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
167 lines
5.8 KiB
TypeScript
167 lines
5.8 KiB
TypeScript
currentDirectory::/home/src/workspaces/project
|
|
useCaseSensitiveFileNames::true
|
|
Input::
|
|
//// [/home/src/workspaces/project/index.ts] *new*
|
|
import ky from 'ky';
|
|
export const api = ky.extend({});
|
|
//// [/home/src/workspaces/project/node_modules/ky/distribution/index.d.ts] *new*
|
|
type KyInstance = {
|
|
extend(options: Record<string,unknown>): KyInstance;
|
|
}
|
|
declare const ky: KyInstance;
|
|
export default ky;
|
|
//// [/home/src/workspaces/project/node_modules/ky/package.json] *new*
|
|
{
|
|
"name": "ky",
|
|
"type": "module",
|
|
"main": "./distribution/index.js"
|
|
}
|
|
//// [/home/src/workspaces/project/package.json] *new*
|
|
{
|
|
"type": "module"
|
|
}
|
|
//// [/home/src/workspaces/project/tsconfig.json] *new*
|
|
{
|
|
"compilerOptions": {
|
|
"module": "NodeNext",
|
|
"moduleResolution": "NodeNext",
|
|
"composite": false,
|
|
"incremental": false,
|
|
"declaration": true,
|
|
"skipLibCheck": true,
|
|
"skipDefaultLibCheck": true,
|
|
},
|
|
}
|
|
|
|
tsgo -b --explainFiles --listEmittedFiles --v
|
|
ExitStatus:: DiagnosticsPresent_OutputsSkipped
|
|
Output::
|
|
[[90mHH:MM:SS AM[0m] Projects in this build:
|
|
* tsconfig.json
|
|
|
|
[[90mHH:MM:SS AM[0m] Project 'tsconfig.json' is out of date because output file 'tsconfig.tsbuildinfo' does not exist
|
|
|
|
[[90mHH:MM:SS AM[0m] Building project 'tsconfig.json'...
|
|
|
|
[96mindex.ts[0m:[93m2[0m:[93m14[0m - [91merror[0m[90m TS4023: [0mExported variable 'api' has or is using name 'KyInstance' from external module "/home/src/workspaces/project/node_modules/ky/distribution/index" but cannot be named.
|
|
|
|
[7m2[0m export const api = ky.extend({});
|
|
[7m [0m [91m ~~~[0m
|
|
|
|
TSFILE: /home/src/workspaces/project/index.js
|
|
TSFILE: /home/src/workspaces/project/tsconfig.tsbuildinfo
|
|
../../tslibs/TS/Lib/lib.es2025.full.d.ts
|
|
Default library for target 'ES2025'
|
|
node_modules/ky/distribution/index.d.ts
|
|
Imported via 'ky' from file 'index.ts'
|
|
File is ECMAScript module because 'node_modules/ky/package.json' has field "type" with value "module"
|
|
index.ts
|
|
Matched by default include pattern '**/*'
|
|
File is ECMAScript module because 'package.json' has field "type" with value "module"
|
|
[[90mHH:MM:SS AM[0m] Updating unchanged output timestamps of project 'tsconfig.json'...
|
|
|
|
|
|
Found 1 error in index.ts[90m:2[0m
|
|
|
|
//// [/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/project/index.js] *new*
|
|
import ky from 'ky';
|
|
export const api = ky.extend({});
|
|
|
|
//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *new*
|
|
{"version":"FakeTSVersion","errors":true,"root":["./index.ts"],"packageJsons":["./node_modules/ky/package.json","./package.json"],"missingPackageJsons":["./node_modules/ky/distribution/package.json"]}
|
|
//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *new*
|
|
{
|
|
"version": "FakeTSVersion",
|
|
"errors": true,
|
|
"root": [
|
|
{
|
|
"files": [
|
|
"./index.ts"
|
|
],
|
|
"original": "./index.ts"
|
|
}
|
|
],
|
|
"packageJsons": [
|
|
"./node_modules/ky/package.json",
|
|
"./package.json"
|
|
],
|
|
"missingPackageJsons": [
|
|
"./node_modules/ky/distribution/package.json"
|
|
],
|
|
"size": 200
|
|
}
|
|
|
|
tsconfig.json::
|
|
SemanticDiagnostics::
|
|
*refresh* /home/src/tslibs/TS/Lib/lib.es2025.full.d.ts
|
|
*refresh* /home/src/workspaces/project/node_modules/ky/distribution/index.d.ts
|
|
*refresh* /home/src/workspaces/project/index.ts
|
|
Signatures::
|
|
|
|
|
|
Edit [0]:: no change
|
|
|
|
tsgo -b --explainFiles --listEmittedFiles --v
|
|
ExitStatus:: DiagnosticsPresent_OutputsSkipped
|
|
Output::
|
|
[[90mHH:MM:SS AM[0m] Projects in this build:
|
|
* tsconfig.json
|
|
|
|
[[90mHH:MM:SS AM[0m] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors.
|
|
|
|
[[90mHH:MM:SS AM[0m] Building project 'tsconfig.json'...
|
|
|
|
[96mindex.ts[0m:[93m2[0m:[93m14[0m - [91merror[0m[90m TS4023: [0mExported variable 'api' has or is using name 'KyInstance' from external module "/home/src/workspaces/project/node_modules/ky/distribution/index" but cannot be named.
|
|
|
|
[7m2[0m export const api = ky.extend({});
|
|
[7m [0m [91m ~~~[0m
|
|
|
|
TSFILE: /home/src/workspaces/project/index.js
|
|
TSFILE: /home/src/workspaces/project/tsconfig.tsbuildinfo
|
|
../../tslibs/TS/Lib/lib.es2025.full.d.ts
|
|
Default library for target 'ES2025'
|
|
node_modules/ky/distribution/index.d.ts
|
|
Imported via 'ky' from file 'index.ts'
|
|
File is ECMAScript module because 'node_modules/ky/package.json' has field "type" with value "module"
|
|
index.ts
|
|
Matched by default include pattern '**/*'
|
|
File is ECMAScript module because 'package.json' has field "type" with value "module"
|
|
[[90mHH:MM:SS AM[0m] Updating unchanged output timestamps of project 'tsconfig.json'...
|
|
|
|
|
|
Found 1 error in index.ts[90m:2[0m
|
|
|
|
//// [/home/src/workspaces/project/index.js] *rewrite with same content*
|
|
//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] *rewrite with same content*
|
|
//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] *rewrite with same content*
|
|
|
|
tsconfig.json::
|
|
SemanticDiagnostics::
|
|
*refresh* /home/src/tslibs/TS/Lib/lib.es2025.full.d.ts
|
|
*refresh* /home/src/workspaces/project/node_modules/ky/distribution/index.d.ts
|
|
*refresh* /home/src/workspaces/project/index.ts
|
|
Signatures::
|