@adep/cli 0.0.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/package.json ADDED
@@ -0,0 +1,29 @@
1
+ {
2
+ "name": "@adep/cli",
3
+ "version": "0.0.1",
4
+ "type": "module",
5
+ "description": "`adep` 命令行工具包位:登录 / 初始化 / 本地调试 / 部署 / 数据库维护 / 云存储 / 静态托管 / 微前端组件(widget),实现见任务单 CLI-001 ~ CLI-003 与 FE-002",
6
+ "bin": {
7
+ "adep": "./src/index.ts"
8
+ },
9
+ "files": [
10
+ "dist"
11
+ ],
12
+ "scripts": {
13
+ "test": "vitest run",
14
+ "build": "bun run ../../scripts/build-package.ts cli"
15
+ },
16
+ "dependencies": {
17
+ "commander": "14.0.2",
18
+ "esbuild": "0.25.12"
19
+ },
20
+ "devDependencies": {
21
+ "@adep/runtime": "workspace:*",
22
+ "@adep/types": "workspace:*"
23
+ },
24
+ "publishConfig": {
25
+ "bin": {
26
+ "adep": "./dist/index.js"
27
+ }
28
+ }
29
+ }
package/src/index.ts ADDED
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bun
2
+ /**
3
+ * adep bin 入口(CLI-001)。Bun 直接运行 TS;npm 发布与独立二进制打包归 CLI-003 / 后续任务。
4
+ */
5
+ import { buildProgram } from './cli'
6
+
7
+ const program = buildProgram()
8
+ await program.parseAsync(process.argv)