@tsslint/cli 0.0.8 → 0.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/tsslint.js +0 -0
- package/index.js +4 -4
- package/package.json +4 -4
package/bin/tsslint.js
CHANGED
|
File without changes
|
package/index.js
CHANGED
|
@@ -73,14 +73,14 @@ const glob = require("glob");
|
|
|
73
73
|
async function projectWorker(tsconfigOption) {
|
|
74
74
|
const tsconfig = await getTsconfigPath(tsconfigOption);
|
|
75
75
|
log.step(`Project: ${path.relative(process.cwd(), tsconfig)} (${parseCommonLine(tsconfig).fileNames.length} input files)`);
|
|
76
|
-
const configFile = ts.findConfigFile(path.dirname(tsconfig), ts.sys.fileExists, '
|
|
76
|
+
const configFile = ts.findConfigFile(path.dirname(tsconfig), ts.sys.fileExists, 'tsl.config.ts');
|
|
77
77
|
if (!configFile) {
|
|
78
|
-
log.error('No
|
|
78
|
+
log.error('No tsl.config.ts file found!');
|
|
79
79
|
return;
|
|
80
80
|
}
|
|
81
81
|
log.message(`Config: ${path.relative(process.cwd(), configFile)}`);
|
|
82
82
|
if (!configs.has(configFile)) {
|
|
83
|
-
configs.set(configFile, await config.buildConfigFile(configFile));
|
|
83
|
+
configs.set(configFile, await config.buildConfigFile(configFile, ts.sys.createHash));
|
|
84
84
|
}
|
|
85
85
|
const tsslintConfig = configs.get(configFile);
|
|
86
86
|
parsed = parseCommonLine(tsconfig);
|
|
@@ -161,7 +161,7 @@ const glob = require("glob");
|
|
|
161
161
|
shortTsconfig = `./${shortTsconfig}`;
|
|
162
162
|
}
|
|
163
163
|
tsconfig = await text({
|
|
164
|
-
message: 'Select the tsconfig project. (You can use --project to skip this prompt.)',
|
|
164
|
+
message: 'Select the tsconfig project. (You can use --project or --projects to skip this prompt.)',
|
|
165
165
|
placeholder: shortTsconfig ? `${shortTsconfig} (${parseCommonLine(tsconfig).fileNames.length} input files)` : 'No tsconfig.json found, please enter the path to your tsconfig.json file.',
|
|
166
166
|
defaultValue: shortTsconfig,
|
|
167
167
|
validate(value) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tsslint/cli",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.10",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"bin": {
|
|
6
6
|
"tsslint": "./bin/tsslint.js"
|
|
@@ -16,12 +16,12 @@
|
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
18
|
"@clack/prompts": "^0.7.0",
|
|
19
|
-
"@tsslint/config": "0.0.
|
|
20
|
-
"@tsslint/core": "0.0.
|
|
19
|
+
"@tsslint/config": "0.0.10",
|
|
20
|
+
"@tsslint/core": "0.0.10",
|
|
21
21
|
"glob": "^10.3.10"
|
|
22
22
|
},
|
|
23
23
|
"peerDependencies": {
|
|
24
24
|
"typescript": "*"
|
|
25
25
|
},
|
|
26
|
-
"gitHead": "
|
|
26
|
+
"gitHead": "79b03c8ead69ee6e2e6fbb469012d378a7cf1d31"
|
|
27
27
|
}
|