@minus-ai/create-skill 0.1.0-beta.3 → 0.1.0-beta.5

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@minus-ai/create-skill",
3
- "version": "0.1.0-beta.3",
3
+ "version": "0.1.0-beta.5",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "create-skill": "./index.mjs"
@@ -6,7 +6,7 @@ Minus Skill 项目,由 `create-skill` 脚手架生成。
6
6
 
7
7
  | 依赖 | 最低版本 | 说明 |
8
8
  |---|---|---|
9
- | Node.js | >= 18 | 前端构建和开发服务 |
9
+ | Node.js | >= 24 | 前端构建和开发服务 |
10
10
  | pnpm | >= 9 | 包管理(全局 store 共享,多 skill 不重复下载) |
11
11
  | Python | >= 3.12 | 后端 Pipeline 运行时 |
12
12
  | uv | >= 0.4 | Python 包管理(全局缓存,秒级安装) |
@@ -72,7 +72,7 @@ pnpm run dev
72
72
  ```
73
73
 
74
74
  这会同时启动:
75
- - **后端** — `uvicorn` 监听 `http://localhost:{{port}}`,修改 `.py` 文件自动重载
75
+ - **后端** — `uvicorn` 监听 `http://127.0.0.1:{{port}}`,修改 `.py` 文件自动重载
76
76
  - **前端** — `vite` 开发服务,修改前端代码自动热更新
77
77
 
78
78
  单独启动前端:
@@ -12,7 +12,7 @@
12
12
  },
13
13
  "devDependencies": {
14
14
  "@minus-ai/dev-vite-plugin": "^0.1.0-beta.1",
15
- "@types/node": "^20.14.0",
15
+ "@types/node": "^24.0.0",
16
16
  "@types/react": "^18.3.3",
17
17
  "@types/react-dom": "^18.3.0",
18
18
  "@vitejs/plugin-react": "^4.3.1",
@@ -1,2 +1,10 @@
1
1
  packages:
2
2
  - frontend
3
+
4
+ # pnpm 11.4 起用 allowBuilds 审批构建脚本;只写 onlyBuiltDependencies 会被忽略并报 ERR_PNPM_IGNORED_BUILDS(install exit 1)。
5
+ allowBuilds:
6
+ esbuild: true
7
+
8
+ # 兼容 pnpm 10.16+ 的旧机制,与 allowBuilds 共存无害。
9
+ onlyBuiltDependencies:
10
+ - esbuild
@@ -3,6 +3,13 @@
3
3
  "description": "{{description}}",
4
4
  "private": true,
5
5
  "type": "module",
6
+ "engines": {
7
+ "node": ">=24"
8
+ },
9
+ "volta": {
10
+ "node": "24.16.0",
11
+ "pnpm": "11.4.0"
12
+ },
6
13
  "workspaces": ["frontend"],
7
14
  "scripts": {
8
15
  "dev": "minus-dev-cleanup && mkdir -p .minus && echo $$ > .minus/dev.pid && concurrently -n skill,fe \".venv/bin/uvicorn server:app --port {{port}} --reload --reload-include '*.py' --reload-include '.env.local' --env-file .env.local\" \"cd frontend && pnpm exec vite\"",
@@ -12,8 +19,5 @@
12
19
  "devDependencies": {
13
20
  "@minus-ai/dev-vite-plugin": "^0.1.0-beta.1",
14
21
  "concurrently": "^9.1.2"
15
- },
16
- "pnpm": {
17
- "onlyBuiltDependencies": ["esbuild"]
18
22
  }
19
23
  }
@@ -4,7 +4,7 @@ import path from 'node:path';
4
4
  import { minusDev } from '@minus-ai/dev-vite-plugin';
5
5
 
6
6
  export default defineConfig({
7
- plugins: [react(), ...minusDev({ localBackend: 'http://localhost:{{port}}' })],
7
+ plugins: [react(), ...minusDev({ localBackend: 'http://127.0.0.1:{{port}}' })],
8
8
  build: {
9
9
  target: 'esnext',
10
10
  outDir: path.resolve(__dirname, '../static'),