Skip to content

Commit 46938e0

Browse files
authored
Merge pull request microsoft#13342 from unional/fix-project-help
Fix --project help
2 parents 1570476 + 41af749 commit 46938e0

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

src/compiler/commandLineParser.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -212,8 +212,8 @@ namespace ts {
212212
shortName: "p",
213213
type: "string",
214214
isFilePath: true,
215-
description: Diagnostics.Compile_the_project_in_the_given_directory,
216-
paramType: Diagnostics.DIRECTORY
215+
description: Diagnostics.Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json,
216+
paramType: Diagnostics.FILE_OR_DIRECTORY
217217
},
218218
{
219219
name: "removeComments",
@@ -517,7 +517,7 @@ namespace ts {
517517
include: typeAcquisition.include || [],
518518
exclude: typeAcquisition.exclude || []
519519
};
520-
return result;
520+
return result;
521521
}
522522
return typeAcquisition;
523523
}

src/compiler/diagnosticMessages.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2513,7 +2513,7 @@
25132513
"category": "Message",
25142514
"code": 6019
25152515
},
2516-
"Compile the project in the given directory.": {
2516+
"Compile the project given the path to its configuration file, or to a folder with a 'tsconfig.json'": {
25172517
"category": "Message",
25182518
"code": 6020
25192519
},
@@ -2573,6 +2573,10 @@
25732573
"category": "Message",
25742574
"code": 6039
25752575
},
2576+
"FILE OR DIRECTORY": {
2577+
"category": "Message",
2578+
"code": 6040
2579+
},
25762580
"Compilation complete. Watching for file changes.": {
25772581
"category": "Message",
25782582
"code": 6042

0 commit comments

Comments
 (0)