complete-cli 1.3.11 → 1.4.0
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.
|
@@ -1,34 +1,32 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { lintCommands } from "complete-node";
|
|
2
2
|
|
|
3
|
-
await
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
$`tsc --noEmit --project ./scripts/tsconfig.json`,
|
|
3
|
+
await lintCommands(import.meta.dirname, [
|
|
4
|
+
// Use TypeScript to type-check the code.
|
|
5
|
+
"tsc --noEmit",
|
|
6
|
+
"tsc --noEmit --project ./scripts/tsconfig.json",
|
|
8
7
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
8
|
+
// Use ESLint to lint the TypeScript code.
|
|
9
|
+
// - "--max-warnings 0" makes warnings fail, since we set all ESLint errors to warnings.
|
|
10
|
+
"eslint --max-warnings 0 .",
|
|
12
11
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
12
|
+
// Use Prettier to check formatting.
|
|
13
|
+
// - "--log-level=warn" makes it only output errors.
|
|
14
|
+
"prettier --log-level=warn --check .",
|
|
16
15
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
16
|
+
// Use Knip to check for unused files, exports, and dependencies.
|
|
17
|
+
// - "--no-progress" - Don’t show dynamic progress updates. Progress is automatically disabled
|
|
18
|
+
// in CI environments.
|
|
19
|
+
// - "--treat-config-hints-as-errors" - Exit with non-zero code (1) if there are any
|
|
20
|
+
// configuration hints.
|
|
21
|
+
"knip --no-progress --treat-config-hints-as-errors",
|
|
23
22
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
23
|
+
// Use CSpell to spell check every file.
|
|
24
|
+
// - "--no-progress" and "--no-summary" make it only output errors.
|
|
25
|
+
"cspell --no-progress --no-summary",
|
|
27
26
|
|
|
28
|
-
|
|
29
|
-
|
|
27
|
+
// Check for unused words in the CSpell configuration file.
|
|
28
|
+
"cspell-check-unused-words",
|
|
30
29
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
});
|
|
30
|
+
// Check for template updates.
|
|
31
|
+
"complete-cli check",
|
|
32
|
+
]);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "complete-cli",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.4.0",
|
|
4
4
|
"description": "A command line tool for bootstrapping TypeScript projects.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"typescript"
|
|
@@ -35,20 +35,20 @@
|
|
|
35
35
|
"chalk": "5.6.2",
|
|
36
36
|
"clipanion": "4.0.0-rc.4",
|
|
37
37
|
"complete-common": "2.5.0",
|
|
38
|
-
"complete-node": "12.
|
|
38
|
+
"complete-node": "12.2.0",
|
|
39
39
|
"klaw-sync": "7.0.0",
|
|
40
40
|
"source-map-support": "0.5.21",
|
|
41
41
|
"yaml": "2.8.1"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"@types/klaw-sync": "6.0.5",
|
|
45
|
-
"@types/node": "24.
|
|
45
|
+
"@types/node": "24.7.1",
|
|
46
46
|
"@types/source-map-support": "0.5.10",
|
|
47
47
|
"ts-loader": "9.5.4",
|
|
48
48
|
"tsconfig-paths-webpack-plugin": "4.2.0",
|
|
49
|
-
"typescript": "5.9.
|
|
50
|
-
"typescript-eslint": "8.
|
|
51
|
-
"webpack": "5.
|
|
49
|
+
"typescript": "5.9.3",
|
|
50
|
+
"typescript-eslint": "8.46.0",
|
|
51
|
+
"webpack": "5.102.1",
|
|
52
52
|
"webpack-cli": "6.0.1",
|
|
53
53
|
"webpack-shebang-plugin": "1.1.8"
|
|
54
54
|
},
|