mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-04 03:09:39 -06:00
Add --ignoreConfig and dont allow specifying files on commandline without it if there is config file present (#62477)
This commit is contained in:
parent
fbb051f500
commit
669c25c091
@ -674,6 +674,15 @@ const commandOptionsWithoutBuild: CommandLineOption[] = [
|
||||
description: Diagnostics.Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing,
|
||||
defaultValueDescription: false,
|
||||
},
|
||||
{
|
||||
name: "ignoreConfig",
|
||||
type: "boolean",
|
||||
showInSimplifiedHelpView: true,
|
||||
category: Diagnostics.Command_line_Options,
|
||||
isCommandLineOnly: true,
|
||||
description: Diagnostics.Ignore_the_tsconfig_found_and_build_with_commandline_options_and_files,
|
||||
defaultValueDescription: false,
|
||||
},
|
||||
|
||||
// Basic
|
||||
targetOptionDeclaration,
|
||||
|
||||
@ -1857,6 +1857,10 @@
|
||||
"category": "Error",
|
||||
"code": 1548
|
||||
},
|
||||
"Ignore the tsconfig found and build with commandline options and files.": {
|
||||
"category": "Message",
|
||||
"code": 1549
|
||||
},
|
||||
|
||||
"The types of '{0}' are incompatible between these types.": {
|
||||
"category": "Error",
|
||||
@ -4733,6 +4737,10 @@
|
||||
"category": "Message",
|
||||
"code": 5111
|
||||
},
|
||||
"tsconfig.json is present but will not be loaded if files are specified on commandline. Use '--ignoreConfig' to skip this error.": {
|
||||
"category": "Error",
|
||||
"code": 5112
|
||||
},
|
||||
|
||||
"Generates a sourcemap for each corresponding '.d.ts' file.": {
|
||||
"category": "Message",
|
||||
|
||||
@ -614,20 +614,27 @@ function executeCommandLineWorker(
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (commandLine.fileNames.length === 0) {
|
||||
else if (!commandLine.options.ignoreConfig || commandLine.fileNames.length === 0) {
|
||||
const searchPath = normalizePath(sys.getCurrentDirectory());
|
||||
configFileName = findConfigFile(searchPath, fileName => sys.fileExists(fileName));
|
||||
}
|
||||
|
||||
if (commandLine.fileNames.length === 0 && !configFileName) {
|
||||
if (commandLine.options.showConfig) {
|
||||
reportDiagnostic(createCompilerDiagnostic(Diagnostics.Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0, normalizePath(sys.getCurrentDirectory())));
|
||||
// if (!commandLine.options.ignoreConfig) {
|
||||
if (commandLine.fileNames.length !== 0) {
|
||||
if (configFileName) {
|
||||
// Error to not specify config file
|
||||
reportDiagnostic(createCompilerDiagnostic(Diagnostics.tsconfig_json_is_present_but_will_not_be_loaded_if_files_are_specified_on_commandline_Use_ignoreConfig_to_skip_this_error));
|
||||
return sys.exit(ExitStatus.DiagnosticsPresent_OutputsSkipped);
|
||||
}
|
||||
}
|
||||
else {
|
||||
printVersion(sys);
|
||||
printHelp(sys, commandLine);
|
||||
else if (!configFileName) {
|
||||
if (commandLine.options.showConfig) {
|
||||
reportDiagnostic(createCompilerDiagnostic(Diagnostics.Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0, normalizePath(sys.getCurrentDirectory())));
|
||||
}
|
||||
else {
|
||||
printVersion(sys);
|
||||
printHelp(sys, commandLine);
|
||||
}
|
||||
return sys.exit(ExitStatus.DiagnosticsPresent_OutputsSkipped);
|
||||
}
|
||||
return sys.exit(ExitStatus.DiagnosticsPresent_OutputsSkipped);
|
||||
}
|
||||
|
||||
const currentDirectory = sys.getCurrentDirectory();
|
||||
|
||||
@ -7552,6 +7552,7 @@ export interface CompilerOptions {
|
||||
/** @internal */ watch?: boolean;
|
||||
esModuleInterop?: boolean;
|
||||
/** @internal */ showConfig?: boolean;
|
||||
/** @internal */ ignoreConfig?: boolean;
|
||||
useDefineForClassFields?: boolean;
|
||||
/** @internal */ tscBuild?: boolean;
|
||||
|
||||
|
||||
@ -119,6 +119,7 @@ export * from "./unittests/tsc/composite.js";
|
||||
export * from "./unittests/tsc/declarationEmit.js";
|
||||
export * from "./unittests/tsc/extends.js";
|
||||
export * from "./unittests/tsc/forceConsistentCasingInFileNames.js";
|
||||
export * from "./unittests/tsc/ignoreConfig.js";
|
||||
export * from "./unittests/tsc/incremental.js";
|
||||
export * from "./unittests/tsc/libraryResolution.js";
|
||||
export * from "./unittests/tsc/listFilesOnly.js";
|
||||
|
||||
58
src/testRunner/unittests/tsc/ignoreConfig.ts
Normal file
58
src/testRunner/unittests/tsc/ignoreConfig.ts
Normal file
@ -0,0 +1,58 @@
|
||||
import * as ts from "../../_namespaces/ts.js";
|
||||
import { jsonToReadableText } from "../helpers.js";
|
||||
import { verifyTsc } from "../helpers/tsc.js";
|
||||
import { TestServerHost } from "../helpers/virtualFileSystemWithWatch.js";
|
||||
|
||||
describe("unittests:: tsc:: ignoreConfig::", () => {
|
||||
function sysWithoutConfig() {
|
||||
return TestServerHost.createWatchedSystem({
|
||||
"/home/src/workspaces/project/src/a.ts": "export const a = 10;",
|
||||
"/home/src/workspaces/project/src/b.ts": "export const b = 10;",
|
||||
"/home/src/workspaces/project/c.ts": "export const c = 10;",
|
||||
});
|
||||
}
|
||||
function sysWithConfig() {
|
||||
const sys = sysWithoutConfig();
|
||||
sys.writeFile(
|
||||
"/home/src/workspaces/project/tsconfig.json",
|
||||
jsonToReadableText({
|
||||
include: ["src"],
|
||||
}),
|
||||
);
|
||||
return sys;
|
||||
}
|
||||
function runScenario(subScenario: string, commandLineArgs: readonly string[]) {
|
||||
verifyTsc({
|
||||
scenario: "ignoreConfig",
|
||||
subScenario,
|
||||
sys: sysWithConfig,
|
||||
commandLineArgs,
|
||||
});
|
||||
|
||||
verifyTsc({
|
||||
scenario: "ignoreConfig",
|
||||
subScenario: subScenario + " with --ignoreConfig",
|
||||
sys: sysWithConfig,
|
||||
commandLineArgs: commandLineArgs.concat("--ignoreConfig"),
|
||||
});
|
||||
|
||||
verifyTsc({
|
||||
scenario: "ignoreConfig",
|
||||
subScenario: subScenario + " when config file absent",
|
||||
sys: sysWithoutConfig,
|
||||
commandLineArgs,
|
||||
});
|
||||
|
||||
verifyTsc({
|
||||
scenario: "ignoreConfig",
|
||||
subScenario: subScenario + " when config file absent with --ignoreConfig",
|
||||
sys: sysWithoutConfig,
|
||||
commandLineArgs: commandLineArgs.concat("--ignoreConfig"),
|
||||
});
|
||||
}
|
||||
|
||||
runScenario("without any options", ts.emptyArray);
|
||||
runScenario("specifying files", ["src/a.ts"]);
|
||||
runScenario("specifying project", ["-p", "."]);
|
||||
runScenario("mixing project and files", ["-p", ".", "src/a.ts", "c.ts"]);
|
||||
});
|
||||
@ -424,7 +424,7 @@ declare module "fs" {
|
||||
],
|
||||
});
|
||||
}
|
||||
verifyIgnore("watch without configFile", ["--w", `/user/username/projects/myproject/test.ts`]);
|
||||
verifyIgnore("watch without configFile", ["--w", "--ignoreConfig", `/user/username/projects/myproject/test.ts`]);
|
||||
verifyIgnore("watch with configFile", ["--w", "-p", `/user/username/projects/myproject/tsconfig.json`]);
|
||||
});
|
||||
|
||||
|
||||
@ -0,0 +1,5 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"ignoreConfig": true
|
||||
}
|
||||
}
|
||||
@ -67,6 +67,9 @@ Compile the project given the path to its configuration file, or to a folder wit
|
||||
--showConfig
|
||||
Print the final configuration instead of building.
|
||||
|
||||
--ignoreConfig
|
||||
Ignore the tsconfig found and build with commandline options and files.
|
||||
|
||||
--build, -b
|
||||
Build one or more projects and their dependencies, if out of date
|
||||
|
||||
|
||||
@ -35,6 +35,9 @@ Print this message.
|
||||
[94m--help, -?[39m
|
||||
|
||||
|
||||
[94m--ignoreConfig[39m
|
||||
Ignore the tsconfig found and build with commandline options and files.
|
||||
|
||||
[94m--init[39m
|
||||
Initializes a TypeScript project and creates a tsconfig.json file.
|
||||
|
||||
|
||||
@ -66,6 +66,9 @@ Compile the project given the path to its configuration file, or to a folder wit
|
||||
[94m--showConfig[39m
|
||||
Print the final configuration instead of building.
|
||||
|
||||
[94m--ignoreConfig[39m
|
||||
Ignore the tsconfig found and build with commandline options and files.
|
||||
|
||||
[94m--build, -b[39m
|
||||
Build one or more projects and their dependencies, if out of date
|
||||
|
||||
|
||||
@ -67,6 +67,9 @@ Compile the project given the path to its configuration file, or to a folder wit
|
||||
[94m--showConfig[39m
|
||||
Print the final configuration instead of building.
|
||||
|
||||
[94m--ignoreConfig[39m
|
||||
Ignore the tsconfig found and build with commandline options and files.
|
||||
|
||||
[94m--build, -b[39m
|
||||
Build one or more projects and their dependencies, if out of date
|
||||
|
||||
|
||||
@ -67,6 +67,9 @@ Compile the project given the path to its configuration file, or to a folder wit
|
||||
[94m--showConfig[39m
|
||||
Print the final configuration instead of building.
|
||||
|
||||
[94m--ignoreConfig[39m
|
||||
Ignore the tsconfig found and build with commandline options and files.
|
||||
|
||||
[94m--build, -b[39m
|
||||
Build one or more projects and their dependencies, if out of date
|
||||
|
||||
|
||||
@ -0,0 +1,33 @@
|
||||
currentDirectory:: /home/src/workspaces/project useCaseSensitiveFileNames:: false
|
||||
Input::
|
||||
//// [/home/src/workspaces/project/src/a.ts]
|
||||
export const a = 10;
|
||||
|
||||
//// [/home/src/workspaces/project/src/b.ts]
|
||||
export const b = 10;
|
||||
|
||||
//// [/home/src/workspaces/project/c.ts]
|
||||
export const c = 10;
|
||||
|
||||
//// [/home/src/tslibs/TS/Lib/lib.d.ts]
|
||||
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> {}
|
||||
declare const console: { log(msg: any): void; };
|
||||
|
||||
|
||||
/home/src/tslibs/TS/Lib/tsc.js -p . src/a.ts c.ts --ignoreConfig
|
||||
Output::
|
||||
error TS5042: Option 'project' cannot be mixed with source files on a command line.
|
||||
|
||||
|
||||
|
||||
exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped
|
||||
@ -0,0 +1,33 @@
|
||||
currentDirectory:: /home/src/workspaces/project useCaseSensitiveFileNames:: false
|
||||
Input::
|
||||
//// [/home/src/workspaces/project/src/a.ts]
|
||||
export const a = 10;
|
||||
|
||||
//// [/home/src/workspaces/project/src/b.ts]
|
||||
export const b = 10;
|
||||
|
||||
//// [/home/src/workspaces/project/c.ts]
|
||||
export const c = 10;
|
||||
|
||||
//// [/home/src/tslibs/TS/Lib/lib.d.ts]
|
||||
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> {}
|
||||
declare const console: { log(msg: any): void; };
|
||||
|
||||
|
||||
/home/src/tslibs/TS/Lib/tsc.js -p . src/a.ts c.ts
|
||||
Output::
|
||||
error TS5042: Option 'project' cannot be mixed with source files on a command line.
|
||||
|
||||
|
||||
|
||||
exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped
|
||||
@ -0,0 +1,40 @@
|
||||
currentDirectory:: /home/src/workspaces/project useCaseSensitiveFileNames:: false
|
||||
Input::
|
||||
//// [/home/src/workspaces/project/src/a.ts]
|
||||
export const a = 10;
|
||||
|
||||
//// [/home/src/workspaces/project/src/b.ts]
|
||||
export const b = 10;
|
||||
|
||||
//// [/home/src/workspaces/project/c.ts]
|
||||
export const c = 10;
|
||||
|
||||
//// [/home/src/tslibs/TS/Lib/lib.d.ts]
|
||||
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> {}
|
||||
declare const console: { log(msg: any): void; };
|
||||
|
||||
//// [/home/src/workspaces/project/tsconfig.json]
|
||||
{
|
||||
"include": [
|
||||
"src"
|
||||
]
|
||||
}
|
||||
|
||||
|
||||
/home/src/tslibs/TS/Lib/tsc.js -p . src/a.ts c.ts --ignoreConfig
|
||||
Output::
|
||||
error TS5042: Option 'project' cannot be mixed with source files on a command line.
|
||||
|
||||
|
||||
|
||||
exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped
|
||||
@ -0,0 +1,40 @@
|
||||
currentDirectory:: /home/src/workspaces/project useCaseSensitiveFileNames:: false
|
||||
Input::
|
||||
//// [/home/src/workspaces/project/src/a.ts]
|
||||
export const a = 10;
|
||||
|
||||
//// [/home/src/workspaces/project/src/b.ts]
|
||||
export const b = 10;
|
||||
|
||||
//// [/home/src/workspaces/project/c.ts]
|
||||
export const c = 10;
|
||||
|
||||
//// [/home/src/tslibs/TS/Lib/lib.d.ts]
|
||||
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> {}
|
||||
declare const console: { log(msg: any): void; };
|
||||
|
||||
//// [/home/src/workspaces/project/tsconfig.json]
|
||||
{
|
||||
"include": [
|
||||
"src"
|
||||
]
|
||||
}
|
||||
|
||||
|
||||
/home/src/tslibs/TS/Lib/tsc.js -p . src/a.ts c.ts
|
||||
Output::
|
||||
error TS5042: Option 'project' cannot be mixed with source files on a command line.
|
||||
|
||||
|
||||
|
||||
exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped
|
||||
@ -0,0 +1,39 @@
|
||||
currentDirectory:: /home/src/workspaces/project useCaseSensitiveFileNames:: false
|
||||
Input::
|
||||
//// [/home/src/workspaces/project/src/a.ts]
|
||||
export const a = 10;
|
||||
|
||||
//// [/home/src/workspaces/project/src/b.ts]
|
||||
export const b = 10;
|
||||
|
||||
//// [/home/src/workspaces/project/c.ts]
|
||||
export const c = 10;
|
||||
|
||||
//// [/home/src/tslibs/TS/Lib/lib.d.ts]
|
||||
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> {}
|
||||
declare const console: { log(msg: any): void; };
|
||||
|
||||
|
||||
/home/src/tslibs/TS/Lib/tsc.js src/a.ts --ignoreConfig
|
||||
Output::
|
||||
|
||||
|
||||
//// [/home/src/workspaces/project/src/a.js]
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.a = void 0;
|
||||
exports.a = 10;
|
||||
|
||||
|
||||
|
||||
exitCode:: ExitStatus.Success
|
||||
@ -0,0 +1,39 @@
|
||||
currentDirectory:: /home/src/workspaces/project useCaseSensitiveFileNames:: false
|
||||
Input::
|
||||
//// [/home/src/workspaces/project/src/a.ts]
|
||||
export const a = 10;
|
||||
|
||||
//// [/home/src/workspaces/project/src/b.ts]
|
||||
export const b = 10;
|
||||
|
||||
//// [/home/src/workspaces/project/c.ts]
|
||||
export const c = 10;
|
||||
|
||||
//// [/home/src/tslibs/TS/Lib/lib.d.ts]
|
||||
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> {}
|
||||
declare const console: { log(msg: any): void; };
|
||||
|
||||
|
||||
/home/src/tslibs/TS/Lib/tsc.js src/a.ts
|
||||
Output::
|
||||
|
||||
|
||||
//// [/home/src/workspaces/project/src/a.js]
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.a = void 0;
|
||||
exports.a = 10;
|
||||
|
||||
|
||||
|
||||
exitCode:: ExitStatus.Success
|
||||
@ -0,0 +1,46 @@
|
||||
currentDirectory:: /home/src/workspaces/project useCaseSensitiveFileNames:: false
|
||||
Input::
|
||||
//// [/home/src/workspaces/project/src/a.ts]
|
||||
export const a = 10;
|
||||
|
||||
//// [/home/src/workspaces/project/src/b.ts]
|
||||
export const b = 10;
|
||||
|
||||
//// [/home/src/workspaces/project/c.ts]
|
||||
export const c = 10;
|
||||
|
||||
//// [/home/src/tslibs/TS/Lib/lib.d.ts]
|
||||
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> {}
|
||||
declare const console: { log(msg: any): void; };
|
||||
|
||||
//// [/home/src/workspaces/project/tsconfig.json]
|
||||
{
|
||||
"include": [
|
||||
"src"
|
||||
]
|
||||
}
|
||||
|
||||
|
||||
/home/src/tslibs/TS/Lib/tsc.js src/a.ts --ignoreConfig
|
||||
Output::
|
||||
|
||||
|
||||
//// [/home/src/workspaces/project/src/a.js]
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.a = void 0;
|
||||
exports.a = 10;
|
||||
|
||||
|
||||
|
||||
exitCode:: ExitStatus.Success
|
||||
@ -0,0 +1,40 @@
|
||||
currentDirectory:: /home/src/workspaces/project useCaseSensitiveFileNames:: false
|
||||
Input::
|
||||
//// [/home/src/workspaces/project/src/a.ts]
|
||||
export const a = 10;
|
||||
|
||||
//// [/home/src/workspaces/project/src/b.ts]
|
||||
export const b = 10;
|
||||
|
||||
//// [/home/src/workspaces/project/c.ts]
|
||||
export const c = 10;
|
||||
|
||||
//// [/home/src/tslibs/TS/Lib/lib.d.ts]
|
||||
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> {}
|
||||
declare const console: { log(msg: any): void; };
|
||||
|
||||
//// [/home/src/workspaces/project/tsconfig.json]
|
||||
{
|
||||
"include": [
|
||||
"src"
|
||||
]
|
||||
}
|
||||
|
||||
|
||||
/home/src/tslibs/TS/Lib/tsc.js src/a.ts
|
||||
Output::
|
||||
error TS5112: tsconfig.json is present but will not be loaded if files are specified on commandline. Use '--ignoreConfig' to skip this error.
|
||||
|
||||
|
||||
|
||||
exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped
|
||||
@ -0,0 +1,33 @@
|
||||
currentDirectory:: /home/src/workspaces/project useCaseSensitiveFileNames:: false
|
||||
Input::
|
||||
//// [/home/src/workspaces/project/src/a.ts]
|
||||
export const a = 10;
|
||||
|
||||
//// [/home/src/workspaces/project/src/b.ts]
|
||||
export const b = 10;
|
||||
|
||||
//// [/home/src/workspaces/project/c.ts]
|
||||
export const c = 10;
|
||||
|
||||
//// [/home/src/tslibs/TS/Lib/lib.d.ts]
|
||||
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> {}
|
||||
declare const console: { log(msg: any): void; };
|
||||
|
||||
|
||||
/home/src/tslibs/TS/Lib/tsc.js -p . --ignoreConfig
|
||||
Output::
|
||||
error TS5057: Cannot find a tsconfig.json file at the specified directory: '.'.
|
||||
|
||||
|
||||
|
||||
exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped
|
||||
@ -0,0 +1,33 @@
|
||||
currentDirectory:: /home/src/workspaces/project useCaseSensitiveFileNames:: false
|
||||
Input::
|
||||
//// [/home/src/workspaces/project/src/a.ts]
|
||||
export const a = 10;
|
||||
|
||||
//// [/home/src/workspaces/project/src/b.ts]
|
||||
export const b = 10;
|
||||
|
||||
//// [/home/src/workspaces/project/c.ts]
|
||||
export const c = 10;
|
||||
|
||||
//// [/home/src/tslibs/TS/Lib/lib.d.ts]
|
||||
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> {}
|
||||
declare const console: { log(msg: any): void; };
|
||||
|
||||
|
||||
/home/src/tslibs/TS/Lib/tsc.js -p .
|
||||
Output::
|
||||
error TS5057: Cannot find a tsconfig.json file at the specified directory: '.'.
|
||||
|
||||
|
||||
|
||||
exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped
|
||||
@ -0,0 +1,53 @@
|
||||
currentDirectory:: /home/src/workspaces/project useCaseSensitiveFileNames:: false
|
||||
Input::
|
||||
//// [/home/src/workspaces/project/src/a.ts]
|
||||
export const a = 10;
|
||||
|
||||
//// [/home/src/workspaces/project/src/b.ts]
|
||||
export const b = 10;
|
||||
|
||||
//// [/home/src/workspaces/project/c.ts]
|
||||
export const c = 10;
|
||||
|
||||
//// [/home/src/tslibs/TS/Lib/lib.d.ts]
|
||||
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> {}
|
||||
declare const console: { log(msg: any): void; };
|
||||
|
||||
//// [/home/src/workspaces/project/tsconfig.json]
|
||||
{
|
||||
"include": [
|
||||
"src"
|
||||
]
|
||||
}
|
||||
|
||||
|
||||
/home/src/tslibs/TS/Lib/tsc.js -p . --ignoreConfig
|
||||
Output::
|
||||
|
||||
|
||||
//// [/home/src/workspaces/project/src/a.js]
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.a = void 0;
|
||||
exports.a = 10;
|
||||
|
||||
|
||||
//// [/home/src/workspaces/project/src/b.js]
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.b = void 0;
|
||||
exports.b = 10;
|
||||
|
||||
|
||||
|
||||
exitCode:: ExitStatus.Success
|
||||
@ -0,0 +1,53 @@
|
||||
currentDirectory:: /home/src/workspaces/project useCaseSensitiveFileNames:: false
|
||||
Input::
|
||||
//// [/home/src/workspaces/project/src/a.ts]
|
||||
export const a = 10;
|
||||
|
||||
//// [/home/src/workspaces/project/src/b.ts]
|
||||
export const b = 10;
|
||||
|
||||
//// [/home/src/workspaces/project/c.ts]
|
||||
export const c = 10;
|
||||
|
||||
//// [/home/src/tslibs/TS/Lib/lib.d.ts]
|
||||
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> {}
|
||||
declare const console: { log(msg: any): void; };
|
||||
|
||||
//// [/home/src/workspaces/project/tsconfig.json]
|
||||
{
|
||||
"include": [
|
||||
"src"
|
||||
]
|
||||
}
|
||||
|
||||
|
||||
/home/src/tslibs/TS/Lib/tsc.js -p .
|
||||
Output::
|
||||
|
||||
|
||||
//// [/home/src/workspaces/project/src/a.js]
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.a = void 0;
|
||||
exports.a = 10;
|
||||
|
||||
|
||||
//// [/home/src/workspaces/project/src/b.js]
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.b = void 0;
|
||||
exports.b = 10;
|
||||
|
||||
|
||||
|
||||
exitCode:: ExitStatus.Success
|
||||
@ -0,0 +1,176 @@
|
||||
currentDirectory:: /home/src/workspaces/project useCaseSensitiveFileNames:: false
|
||||
Input::
|
||||
//// [/home/src/workspaces/project/src/a.ts]
|
||||
export const a = 10;
|
||||
|
||||
//// [/home/src/workspaces/project/src/b.ts]
|
||||
export const b = 10;
|
||||
|
||||
//// [/home/src/workspaces/project/c.ts]
|
||||
export const c = 10;
|
||||
|
||||
//// [/home/src/tslibs/TS/Lib/lib.d.ts]
|
||||
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> {}
|
||||
declare const console: { log(msg: any): void; };
|
||||
|
||||
|
||||
/home/src/tslibs/TS/Lib/tsc.js --ignoreConfig
|
||||
Output::
|
||||
Version FakeTSVersion
|
||||
tsc: The TypeScript Compiler - Version FakeTSVersion
|
||||
|
||||
[1mCOMMON COMMANDS[22m
|
||||
|
||||
[94mtsc[39m
|
||||
Compiles the current project (tsconfig.json in the working directory.)
|
||||
|
||||
[94mtsc app.ts util.ts[39m
|
||||
Ignoring tsconfig.json, compiles the specified files with default compiler options.
|
||||
|
||||
[94mtsc -b[39m
|
||||
Build a composite project in the working directory.
|
||||
|
||||
[94mtsc --init[39m
|
||||
Creates a tsconfig.json with the recommended settings in the working directory.
|
||||
|
||||
[94mtsc -p ./path/to/tsconfig.json[39m
|
||||
Compiles the TypeScript project located at the specified path.
|
||||
|
||||
[94mtsc --help --all[39m
|
||||
An expanded version of this information, showing all possible compiler options
|
||||
|
||||
[94mtsc --noEmit[39m
|
||||
[94mtsc --target esnext[39m
|
||||
Compiles the current project, with additional settings.
|
||||
|
||||
[1mCOMMAND LINE FLAGS[22m
|
||||
|
||||
[94m--help, -h[39m
|
||||
Print this message.
|
||||
|
||||
[94m--watch, -w[39m
|
||||
Watch input files.
|
||||
|
||||
[94m--all[39m
|
||||
Show all compiler options.
|
||||
|
||||
[94m--version, -v[39m
|
||||
Print the compiler's version.
|
||||
|
||||
[94m--init[39m
|
||||
Initializes a TypeScript project and creates a tsconfig.json file.
|
||||
|
||||
[94m--project, -p[39m
|
||||
Compile the project given the path to its configuration file, or to a folder with a 'tsconfig.json'.
|
||||
|
||||
[94m--showConfig[39m
|
||||
Print the final configuration instead of building.
|
||||
|
||||
[94m--ignoreConfig[39m
|
||||
Ignore the tsconfig found and build with commandline options and files.
|
||||
|
||||
[94m--build, -b[39m
|
||||
Build one or more projects and their dependencies, if out of date
|
||||
|
||||
[1mCOMMON COMPILER OPTIONS[22m
|
||||
|
||||
[94m--pretty[39m
|
||||
Enable color and formatting in TypeScript's output to make compiler errors easier to read.
|
||||
type: boolean
|
||||
default: true
|
||||
|
||||
[94m--declaration, -d[39m
|
||||
Generate .d.ts files from TypeScript and JavaScript files in your project.
|
||||
type: boolean
|
||||
default: `false`, unless `composite` is set
|
||||
|
||||
[94m--declarationMap[39m
|
||||
Create sourcemaps for d.ts files.
|
||||
type: boolean
|
||||
default: false
|
||||
|
||||
[94m--emitDeclarationOnly[39m
|
||||
Only output d.ts files and not JavaScript files.
|
||||
type: boolean
|
||||
default: false
|
||||
|
||||
[94m--sourceMap[39m
|
||||
Create source map files for emitted JavaScript files.
|
||||
type: boolean
|
||||
default: false
|
||||
|
||||
[94m--noEmit[39m
|
||||
Disable emitting files from a compilation.
|
||||
type: boolean
|
||||
default: false
|
||||
|
||||
[94m--target, -t[39m
|
||||
Set the JavaScript language version for emitted JavaScript and include compatible library declarations.
|
||||
one of: es5, es6/es2015, es2016, es2017, es2018, es2019, es2020, es2021, es2022, es2023, es2024, esnext
|
||||
default: es5
|
||||
|
||||
[94m--module, -m[39m
|
||||
Specify what module code is generated.
|
||||
one of: commonjs, es6/es2015, es2020, es2022, esnext, node16, node18, node20, nodenext, preserve
|
||||
default: undefined
|
||||
|
||||
[94m--lib[39m
|
||||
Specify a set of bundled library declaration files that describe the target runtime environment.
|
||||
one or more: es5, es6/es2015, es7/es2016, es2017, es2018, es2019, es2020, es2021, es2022, es2023, es2024, esnext, dom, dom.iterable, dom.asynciterable, webworker, webworker.importscripts, webworker.iterable, webworker.asynciterable, scripthost, es2015.core, es2015.collection, es2015.generator, es2015.iterable, es2015.promise, es2015.proxy, es2015.reflect, es2015.symbol, es2015.symbol.wellknown, es2016.array.include, es2016.intl, es2017.arraybuffer, es2017.date, es2017.object, es2017.sharedmemory, es2017.string, es2017.intl, es2017.typedarrays, es2018.asyncgenerator, es2018.asynciterable/esnext.asynciterable, es2018.intl, es2018.promise, es2018.regexp, es2019.array, es2019.object, es2019.string, es2019.symbol/esnext.symbol, es2019.intl, es2020.bigint/esnext.bigint, es2020.date, es2020.promise, es2020.sharedmemory, es2020.string, es2020.symbol.wellknown, es2020.intl, es2020.number, es2021.promise, es2021.string, es2021.weakref/esnext.weakref, es2021.intl, es2022.array, es2022.error, es2022.intl, es2022.object, es2022.string, es2022.regexp, es2023.array, es2023.collection, es2023.intl, es2024.arraybuffer, es2024.collection, es2024.object/esnext.object, es2024.promise, es2024.regexp/esnext.regexp, es2024.sharedmemory, es2024.string/esnext.string, esnext.array, esnext.collection, esnext.intl, esnext.disposable, esnext.promise, esnext.decorators, esnext.iterator, esnext.float16, esnext.typedarrays, esnext.error, esnext.sharedmemory, decorators, decorators.legacy
|
||||
default: undefined
|
||||
|
||||
[94m--allowJs[39m
|
||||
Allow JavaScript files to be a part of your program. Use the 'checkJs' option to get errors from these files.
|
||||
type: boolean
|
||||
default: `false`, unless `checkJs` is set
|
||||
|
||||
[94m--checkJs[39m
|
||||
Enable error reporting in type-checked JavaScript files.
|
||||
type: boolean
|
||||
default: false
|
||||
|
||||
[94m--jsx[39m
|
||||
Specify what JSX code is generated.
|
||||
one of: preserve, react, react-native, react-jsx, react-jsxdev
|
||||
default: undefined
|
||||
|
||||
[94m--outFile[39m
|
||||
Specify a file that bundles all outputs into one JavaScript file. If 'declaration' is true, also designates a file that bundles all .d.ts output.
|
||||
|
||||
[94m--outDir[39m
|
||||
Specify an output folder for all emitted files.
|
||||
|
||||
[94m--removeComments[39m
|
||||
Disable emitting comments.
|
||||
type: boolean
|
||||
default: false
|
||||
|
||||
[94m--strict[39m
|
||||
Enable all strict type-checking options.
|
||||
type: boolean
|
||||
default: false
|
||||
|
||||
[94m--types[39m
|
||||
Specify type package names to be included without being referenced in a source file.
|
||||
|
||||
[94m--esModuleInterop[39m
|
||||
Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility.
|
||||
type: boolean
|
||||
default: true
|
||||
|
||||
You can learn about all of the compiler options at https://aka.ms/tsc
|
||||
|
||||
|
||||
|
||||
|
||||
exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped
|
||||
@ -0,0 +1,176 @@
|
||||
currentDirectory:: /home/src/workspaces/project useCaseSensitiveFileNames:: false
|
||||
Input::
|
||||
//// [/home/src/workspaces/project/src/a.ts]
|
||||
export const a = 10;
|
||||
|
||||
//// [/home/src/workspaces/project/src/b.ts]
|
||||
export const b = 10;
|
||||
|
||||
//// [/home/src/workspaces/project/c.ts]
|
||||
export const c = 10;
|
||||
|
||||
//// [/home/src/tslibs/TS/Lib/lib.d.ts]
|
||||
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> {}
|
||||
declare const console: { log(msg: any): void; };
|
||||
|
||||
|
||||
/home/src/tslibs/TS/Lib/tsc.js
|
||||
Output::
|
||||
Version FakeTSVersion
|
||||
tsc: The TypeScript Compiler - Version FakeTSVersion
|
||||
|
||||
[1mCOMMON COMMANDS[22m
|
||||
|
||||
[94mtsc[39m
|
||||
Compiles the current project (tsconfig.json in the working directory.)
|
||||
|
||||
[94mtsc app.ts util.ts[39m
|
||||
Ignoring tsconfig.json, compiles the specified files with default compiler options.
|
||||
|
||||
[94mtsc -b[39m
|
||||
Build a composite project in the working directory.
|
||||
|
||||
[94mtsc --init[39m
|
||||
Creates a tsconfig.json with the recommended settings in the working directory.
|
||||
|
||||
[94mtsc -p ./path/to/tsconfig.json[39m
|
||||
Compiles the TypeScript project located at the specified path.
|
||||
|
||||
[94mtsc --help --all[39m
|
||||
An expanded version of this information, showing all possible compiler options
|
||||
|
||||
[94mtsc --noEmit[39m
|
||||
[94mtsc --target esnext[39m
|
||||
Compiles the current project, with additional settings.
|
||||
|
||||
[1mCOMMAND LINE FLAGS[22m
|
||||
|
||||
[94m--help, -h[39m
|
||||
Print this message.
|
||||
|
||||
[94m--watch, -w[39m
|
||||
Watch input files.
|
||||
|
||||
[94m--all[39m
|
||||
Show all compiler options.
|
||||
|
||||
[94m--version, -v[39m
|
||||
Print the compiler's version.
|
||||
|
||||
[94m--init[39m
|
||||
Initializes a TypeScript project and creates a tsconfig.json file.
|
||||
|
||||
[94m--project, -p[39m
|
||||
Compile the project given the path to its configuration file, or to a folder with a 'tsconfig.json'.
|
||||
|
||||
[94m--showConfig[39m
|
||||
Print the final configuration instead of building.
|
||||
|
||||
[94m--ignoreConfig[39m
|
||||
Ignore the tsconfig found and build with commandline options and files.
|
||||
|
||||
[94m--build, -b[39m
|
||||
Build one or more projects and their dependencies, if out of date
|
||||
|
||||
[1mCOMMON COMPILER OPTIONS[22m
|
||||
|
||||
[94m--pretty[39m
|
||||
Enable color and formatting in TypeScript's output to make compiler errors easier to read.
|
||||
type: boolean
|
||||
default: true
|
||||
|
||||
[94m--declaration, -d[39m
|
||||
Generate .d.ts files from TypeScript and JavaScript files in your project.
|
||||
type: boolean
|
||||
default: `false`, unless `composite` is set
|
||||
|
||||
[94m--declarationMap[39m
|
||||
Create sourcemaps for d.ts files.
|
||||
type: boolean
|
||||
default: false
|
||||
|
||||
[94m--emitDeclarationOnly[39m
|
||||
Only output d.ts files and not JavaScript files.
|
||||
type: boolean
|
||||
default: false
|
||||
|
||||
[94m--sourceMap[39m
|
||||
Create source map files for emitted JavaScript files.
|
||||
type: boolean
|
||||
default: false
|
||||
|
||||
[94m--noEmit[39m
|
||||
Disable emitting files from a compilation.
|
||||
type: boolean
|
||||
default: false
|
||||
|
||||
[94m--target, -t[39m
|
||||
Set the JavaScript language version for emitted JavaScript and include compatible library declarations.
|
||||
one of: es5, es6/es2015, es2016, es2017, es2018, es2019, es2020, es2021, es2022, es2023, es2024, esnext
|
||||
default: es5
|
||||
|
||||
[94m--module, -m[39m
|
||||
Specify what module code is generated.
|
||||
one of: commonjs, es6/es2015, es2020, es2022, esnext, node16, node18, node20, nodenext, preserve
|
||||
default: undefined
|
||||
|
||||
[94m--lib[39m
|
||||
Specify a set of bundled library declaration files that describe the target runtime environment.
|
||||
one or more: es5, es6/es2015, es7/es2016, es2017, es2018, es2019, es2020, es2021, es2022, es2023, es2024, esnext, dom, dom.iterable, dom.asynciterable, webworker, webworker.importscripts, webworker.iterable, webworker.asynciterable, scripthost, es2015.core, es2015.collection, es2015.generator, es2015.iterable, es2015.promise, es2015.proxy, es2015.reflect, es2015.symbol, es2015.symbol.wellknown, es2016.array.include, es2016.intl, es2017.arraybuffer, es2017.date, es2017.object, es2017.sharedmemory, es2017.string, es2017.intl, es2017.typedarrays, es2018.asyncgenerator, es2018.asynciterable/esnext.asynciterable, es2018.intl, es2018.promise, es2018.regexp, es2019.array, es2019.object, es2019.string, es2019.symbol/esnext.symbol, es2019.intl, es2020.bigint/esnext.bigint, es2020.date, es2020.promise, es2020.sharedmemory, es2020.string, es2020.symbol.wellknown, es2020.intl, es2020.number, es2021.promise, es2021.string, es2021.weakref/esnext.weakref, es2021.intl, es2022.array, es2022.error, es2022.intl, es2022.object, es2022.string, es2022.regexp, es2023.array, es2023.collection, es2023.intl, es2024.arraybuffer, es2024.collection, es2024.object/esnext.object, es2024.promise, es2024.regexp/esnext.regexp, es2024.sharedmemory, es2024.string/esnext.string, esnext.array, esnext.collection, esnext.intl, esnext.disposable, esnext.promise, esnext.decorators, esnext.iterator, esnext.float16, esnext.typedarrays, esnext.error, esnext.sharedmemory, decorators, decorators.legacy
|
||||
default: undefined
|
||||
|
||||
[94m--allowJs[39m
|
||||
Allow JavaScript files to be a part of your program. Use the 'checkJs' option to get errors from these files.
|
||||
type: boolean
|
||||
default: `false`, unless `checkJs` is set
|
||||
|
||||
[94m--checkJs[39m
|
||||
Enable error reporting in type-checked JavaScript files.
|
||||
type: boolean
|
||||
default: false
|
||||
|
||||
[94m--jsx[39m
|
||||
Specify what JSX code is generated.
|
||||
one of: preserve, react, react-native, react-jsx, react-jsxdev
|
||||
default: undefined
|
||||
|
||||
[94m--outFile[39m
|
||||
Specify a file that bundles all outputs into one JavaScript file. If 'declaration' is true, also designates a file that bundles all .d.ts output.
|
||||
|
||||
[94m--outDir[39m
|
||||
Specify an output folder for all emitted files.
|
||||
|
||||
[94m--removeComments[39m
|
||||
Disable emitting comments.
|
||||
type: boolean
|
||||
default: false
|
||||
|
||||
[94m--strict[39m
|
||||
Enable all strict type-checking options.
|
||||
type: boolean
|
||||
default: false
|
||||
|
||||
[94m--types[39m
|
||||
Specify type package names to be included without being referenced in a source file.
|
||||
|
||||
[94m--esModuleInterop[39m
|
||||
Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility.
|
||||
type: boolean
|
||||
default: true
|
||||
|
||||
You can learn about all of the compiler options at https://aka.ms/tsc
|
||||
|
||||
|
||||
|
||||
|
||||
exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped
|
||||
@ -0,0 +1,53 @@
|
||||
currentDirectory:: /home/src/workspaces/project useCaseSensitiveFileNames:: false
|
||||
Input::
|
||||
//// [/home/src/workspaces/project/src/a.ts]
|
||||
export const a = 10;
|
||||
|
||||
//// [/home/src/workspaces/project/src/b.ts]
|
||||
export const b = 10;
|
||||
|
||||
//// [/home/src/workspaces/project/c.ts]
|
||||
export const c = 10;
|
||||
|
||||
//// [/home/src/tslibs/TS/Lib/lib.d.ts]
|
||||
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> {}
|
||||
declare const console: { log(msg: any): void; };
|
||||
|
||||
//// [/home/src/workspaces/project/tsconfig.json]
|
||||
{
|
||||
"include": [
|
||||
"src"
|
||||
]
|
||||
}
|
||||
|
||||
|
||||
/home/src/tslibs/TS/Lib/tsc.js --ignoreConfig
|
||||
Output::
|
||||
|
||||
|
||||
//// [/home/src/workspaces/project/src/a.js]
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.a = void 0;
|
||||
exports.a = 10;
|
||||
|
||||
|
||||
//// [/home/src/workspaces/project/src/b.js]
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.b = void 0;
|
||||
exports.b = 10;
|
||||
|
||||
|
||||
|
||||
exitCode:: ExitStatus.Success
|
||||
@ -0,0 +1,53 @@
|
||||
currentDirectory:: /home/src/workspaces/project useCaseSensitiveFileNames:: false
|
||||
Input::
|
||||
//// [/home/src/workspaces/project/src/a.ts]
|
||||
export const a = 10;
|
||||
|
||||
//// [/home/src/workspaces/project/src/b.ts]
|
||||
export const b = 10;
|
||||
|
||||
//// [/home/src/workspaces/project/c.ts]
|
||||
export const c = 10;
|
||||
|
||||
//// [/home/src/tslibs/TS/Lib/lib.d.ts]
|
||||
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> {}
|
||||
declare const console: { log(msg: any): void; };
|
||||
|
||||
//// [/home/src/workspaces/project/tsconfig.json]
|
||||
{
|
||||
"include": [
|
||||
"src"
|
||||
]
|
||||
}
|
||||
|
||||
|
||||
/home/src/tslibs/TS/Lib/tsc.js
|
||||
Output::
|
||||
|
||||
|
||||
//// [/home/src/workspaces/project/src/a.js]
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.a = void 0;
|
||||
exports.a = 10;
|
||||
|
||||
|
||||
//// [/home/src/workspaces/project/src/b.js]
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.b = void 0;
|
||||
exports.b = 10;
|
||||
|
||||
|
||||
|
||||
exitCode:: ExitStatus.Success
|
||||
@ -24,7 +24,7 @@ interface ReadonlyArray<T> {}
|
||||
declare const console: { log(msg: any): void; };
|
||||
|
||||
|
||||
/home/src/tslibs/TS/Lib/tsc.js --w /user/username/projects/myproject/test.ts
|
||||
/home/src/tslibs/TS/Lib/tsc.js --w --ignoreConfig /user/username/projects/myproject/test.ts
|
||||
Output::
|
||||
>> Screen clear
|
||||
[[90mHH:MM:SS AM[0m] Starting compilation in watch mode...
|
||||
@ -73,7 +73,8 @@ Program root files: [
|
||||
"/user/username/projects/myproject/test.ts"
|
||||
]
|
||||
Program options: {
|
||||
"watch": true
|
||||
"watch": true,
|
||||
"ignoreConfig": true
|
||||
}
|
||||
Program structureReused: Not
|
||||
Program files::
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user