complete-cli 1.2.2 → 1.2.3
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.
|
@@ -17,18 +17,14 @@ export async function vsCodeInit(projectPath, vscode, yes) {
|
|
|
17
17
|
await promptVSCode(projectPath, VSCodeCommand, vscode, yes);
|
|
18
18
|
}
|
|
19
19
|
async function getVSCodeCommand() {
|
|
20
|
-
const
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
const existingCommands = commandChecks
|
|
29
|
-
.filter((check) => check.exists)
|
|
30
|
-
.map((check) => check.command);
|
|
31
|
-
return existingCommands[0];
|
|
20
|
+
for (const command of VS_CODE_COMMANDS) {
|
|
21
|
+
// eslint-disable-next-line no-await-in-loop
|
|
22
|
+
const exists = await commandExists(command);
|
|
23
|
+
if (exists) {
|
|
24
|
+
return command;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
return undefined;
|
|
32
28
|
}
|
|
33
29
|
async function installVSCodeExtensions(projectPath, vsCodeCommand) {
|
|
34
30
|
// Installing extensions from inside WSL on Windows will result in the VSCode process never
|
|
@@ -15,7 +15,11 @@ await lintScript(async () => {
|
|
|
15
15
|
$`prettier --log-level=warn --check .`,
|
|
16
16
|
|
|
17
17
|
// Use Knip to check for unused files, exports, and dependencies.
|
|
18
|
-
|
|
18
|
+
// - "--no-progress" - Don’t show dynamic progress updates. Progress is automatically disabled
|
|
19
|
+
// in CI environments.
|
|
20
|
+
// - "--treat-config-hints-as-errors" - Exit with non-zero code (1) if there are any
|
|
21
|
+
// configuration hints.
|
|
22
|
+
$`knip --no-progress --treat-config-hints-as-errors`,
|
|
19
23
|
|
|
20
24
|
// Use CSpell to spell check every file.
|
|
21
25
|
// - "--no-progress" and "--no-summary" make it only output errors.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "complete-cli",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.3",
|
|
4
4
|
"description": "A command line tool for bootstrapping TypeScript projects.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"typescript"
|
|
@@ -31,26 +31,25 @@
|
|
|
31
31
|
"build": "tsx ./scripts/build.ts",
|
|
32
32
|
"lint": "tsx ./scripts/lint.ts",
|
|
33
33
|
"start": "tsx ./src/main.ts",
|
|
34
|
-
"test": "
|
|
34
|
+
"test": "tsx --test"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"@zamiell/clack-prompts": "0.10.2",
|
|
38
38
|
"chalk": "5.4.1",
|
|
39
39
|
"clipanion": "4.0.0-rc.4",
|
|
40
|
-
"complete-common": "2.
|
|
41
|
-
"complete-node": "7.
|
|
40
|
+
"complete-common": "2.5.0",
|
|
41
|
+
"complete-node": "7.4.4-dev.0",
|
|
42
42
|
"klaw-sync": "7.0.0",
|
|
43
43
|
"yaml": "2.8.0"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@types/klaw-sync": "6.0.5",
|
|
47
|
-
"@types/node": "24.0
|
|
48
|
-
"glob": "11.0.3",
|
|
47
|
+
"@types/node": "24.1.0",
|
|
49
48
|
"ts-loader": "9.5.2",
|
|
50
49
|
"tsconfig-paths-webpack-plugin": "4.2.0",
|
|
51
50
|
"typescript": "5.8.3",
|
|
52
|
-
"typescript-eslint": "8.
|
|
53
|
-
"webpack": "5.
|
|
51
|
+
"typescript-eslint": "8.38.0",
|
|
52
|
+
"webpack": "5.101.0",
|
|
54
53
|
"webpack-cli": "6.0.1",
|
|
55
54
|
"webpack-shebang-plugin": "1.1.8"
|
|
56
55
|
},
|
|
@@ -26,26 +26,16 @@ export async function vsCodeInit(
|
|
|
26
26
|
await promptVSCode(projectPath, VSCodeCommand, vscode, yes);
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
-
async function getVSCodeCommand(): Promise<
|
|
30
|
-
(
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
const commandChecks = await Promise.all(
|
|
38
|
-
commandCheckPromises.map(async (check) => ({
|
|
39
|
-
command: check.command,
|
|
40
|
-
exists: await check.existsPromise,
|
|
41
|
-
})),
|
|
42
|
-
);
|
|
43
|
-
|
|
44
|
-
const existingCommands = commandChecks
|
|
45
|
-
.filter((check) => check.exists)
|
|
46
|
-
.map((check) => check.command);
|
|
29
|
+
async function getVSCodeCommand(): Promise<string | undefined> {
|
|
30
|
+
for (const command of VS_CODE_COMMANDS) {
|
|
31
|
+
// eslint-disable-next-line no-await-in-loop
|
|
32
|
+
const exists = await commandExists(command);
|
|
33
|
+
if (exists) {
|
|
34
|
+
return command;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
47
37
|
|
|
48
|
-
return
|
|
38
|
+
return undefined;
|
|
49
39
|
}
|
|
50
40
|
|
|
51
41
|
async function installVSCodeExtensions(
|