@done-coding/cli 0.15.0-alpha.1 → 0.15.1
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/es/cli.mjs +1 -1
- package/es/postinstall.mjs +14 -0
- package/package.json +14 -11
- package/types/injectInfo.json.d.ts +1 -1
- package/types/postinstall.d.ts +1 -0
package/es/cli.mjs
CHANGED
|
@@ -10,7 +10,7 @@ import { crateAsSubcommand as t } from "@done-coding/cli-config";
|
|
|
10
10
|
import { createMainCommand as e } from "@done-coding/cli-utils";
|
|
11
11
|
const d = {
|
|
12
12
|
name: "@done-coding/cli",
|
|
13
|
-
version: "0.15.
|
|
13
|
+
version: "0.15.1",
|
|
14
14
|
description: "done-coding命令行工具"
|
|
15
15
|
}, { version: i, description: u } = d, b = {
|
|
16
16
|
usage: "$0 <command> [options]",
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
const o = process.platform === "win32";
|
|
3
|
+
console.log(`
|
|
4
|
+
🎉 安装成功! 使用方式:
|
|
5
|
+
|
|
6
|
+
${o ? "在 CMD/PowerShell 中输入:" : "在终端中输入:"}
|
|
7
|
+
|
|
8
|
+
${o ? " dc 或 dc-cli 或 done-coding [命令]" : " DC 或 dc-cli 或 done-coding [命令]"}
|
|
9
|
+
|
|
10
|
+
${o ? "" : `
|
|
11
|
+
⚠️ 注意:
|
|
12
|
+
不要使用小写 "dc",会调用系统计算器
|
|
13
|
+
`}
|
|
14
|
+
`);
|
package/package.json
CHANGED
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@done-coding/cli",
|
|
3
|
-
"version": "0.15.
|
|
3
|
+
"version": "0.15.1",
|
|
4
4
|
"description": "done-coding命令行工具",
|
|
5
5
|
"private": false,
|
|
6
6
|
"module": "es/cli.mjs",
|
|
7
7
|
"type": "module",
|
|
8
8
|
"types": "types/cli.d.ts",
|
|
9
9
|
"bin": {
|
|
10
|
+
"DC": "es/cli.mjs",
|
|
11
|
+
"dc-cli": "es/cli.mjs",
|
|
10
12
|
"done-coding": "es/cli.mjs"
|
|
11
13
|
},
|
|
12
14
|
"exports": {
|
|
@@ -25,6 +27,7 @@
|
|
|
25
27
|
"dev": "vite build --watch",
|
|
26
28
|
"prebuild": "pnpm run clean",
|
|
27
29
|
"build": "vite build",
|
|
30
|
+
"postinstall": "node es/postinstall.mjs",
|
|
28
31
|
"prepack": "pnpm build"
|
|
29
32
|
},
|
|
30
33
|
"repository": {
|
|
@@ -50,15 +53,15 @@
|
|
|
50
53
|
"node": ">=18.0.0"
|
|
51
54
|
},
|
|
52
55
|
"dependencies": {
|
|
53
|
-
"@done-coding/cli-component": "^0.3.8
|
|
54
|
-
"@done-coding/cli-config": "^0.1.0
|
|
55
|
-
"@done-coding/cli-extract": "^0.1.8
|
|
56
|
-
"@done-coding/cli-git": "^0.6.0
|
|
57
|
-
"@done-coding/cli-inject": "^0.5.8
|
|
58
|
-
"@done-coding/cli-publish": "^0.7.0
|
|
59
|
-
"@done-coding/cli-template": "^0.7.8
|
|
60
|
-
"@done-coding/cli-utils": "^0.7.0
|
|
61
|
-
"create-done-coding": "^0.11.7
|
|
56
|
+
"@done-coding/cli-component": "^0.3.8",
|
|
57
|
+
"@done-coding/cli-config": "^0.1.0",
|
|
58
|
+
"@done-coding/cli-extract": "^0.1.8",
|
|
59
|
+
"@done-coding/cli-git": "^0.6.0",
|
|
60
|
+
"@done-coding/cli-inject": "^0.5.8",
|
|
61
|
+
"@done-coding/cli-publish": "^0.7.0",
|
|
62
|
+
"@done-coding/cli-template": "^0.7.8",
|
|
63
|
+
"@done-coding/cli-utils": "^0.7.0",
|
|
64
|
+
"create-done-coding": "^0.11.7"
|
|
62
65
|
},
|
|
63
|
-
"gitHead": "
|
|
66
|
+
"gitHead": "841548927f46613cd32e9bfcfdfd9aedfb8d4c05"
|
|
64
67
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
declare const isWindows: boolean;
|