@lark-apaas/fullstack-cli 1.1.48-alpha.1 → 1.1.48-alpha.2

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.
Files changed (2) hide show
  1. package/dist/index.js +12 -2
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -2435,13 +2435,23 @@ var syncConfig = {
2435
2435
  to: ".gitignore",
2436
2436
  pattern: "package-lock.json"
2437
2437
  },
2438
- // 5. 注册 postinstall 脚本,自动恢复 action plugins
2438
+ // 5. 注册 postinstall 脚本,自动恢复 action plugins
2439
+ // 用 npx -y 形式而不是裸 `fullstack-cli`:用户项目的 deps 没有 fullstack-cli,
2440
+ // bare 形式在新机器(PATH 没全局 fullstack-cli)下 npm i 立即 ENOENT。
2439
2441
  {
2440
2442
  type: "add-script",
2441
2443
  name: "postinstall",
2442
- command: "fullstack-cli action-plugin init",
2444
+ command: "npx -y @lark-apaas/fullstack-cli action-plugin init",
2443
2445
  overwrite: false
2444
2446
  },
2447
+ // 5a. 迁移已有应用的老形式 postinstall(裸 fullstack-cli → npx -y)。
2448
+ // patch-script 只在脚本以指定前缀开头时改写,用户真正手改过的脚本保持原样。
2449
+ {
2450
+ type: "patch-script",
2451
+ name: "postinstall",
2452
+ to: "npx -y @lark-apaas/fullstack-cli action-plugin init",
2453
+ ifStartsWith: "fullstack-cli action-plugin init"
2454
+ },
2445
2455
  // 6. 替换 drizzle.config.ts(仅当文件存在时)
2446
2456
  {
2447
2457
  from: "templates/drizzle.config.ts",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lark-apaas/fullstack-cli",
3
- "version": "1.1.48-alpha.1",
3
+ "version": "1.1.48-alpha.2",
4
4
  "description": "CLI tool for fullstack template management",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -31,7 +31,7 @@
31
31
  "access": "public"
32
32
  },
33
33
  "dependencies": {
34
- "@lark-apaas/http-client": "0.1.7-alpha.0",
34
+ "@lark-apaas/http-client": "0.1.7-alpha.1",
35
35
  "@lydell/node-pty": "1.1.0",
36
36
  "@vercel/nft": "^0.30.3",
37
37
  "commander": "^13.0.0",