@joplo-app/server 0.2.17 → 0.3.0

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.
@@ -100,7 +100,7 @@ export function findPackageJson(dir, name) {
100
100
  cur = parent;
101
101
  }
102
102
  }
103
- const KIT_SUBPATHS = ['ui', 'node', 'jsx-runtime', 'jsx-dev-runtime'];
103
+ const KIT_SUBPATHS = ['node', 'plugin', 'jsx-runtime', 'jsx-dev-runtime'];
104
104
  /**
105
105
  * 项目源文件里的 `@joplo-app/kit` 怎样解析:
106
106
  * - source:指向仓库里的 kit 源码(项目可在任意目录,不需要自己的 node_modules);`@/` 指向 web 源码。
@@ -110,7 +110,7 @@ export function kitAliases(web, projectDir) {
110
110
  if (web.mode === 'source')
111
111
  return [
112
112
  { find: /^@joplo-app\/kit$/, replacement: path.join(web.kitSrc, 'index.ts') },
113
- { find: /^@joplo-app\/kit\/(ui|node|jsx-runtime|jsx-dev-runtime)$/, replacement: path.join(web.kitSrc, '$1.ts') },
113
+ { find: /^@joplo-app\/kit\/(node|plugin|jsx-runtime|jsx-dev-runtime)$/, replacement: path.join(web.kitSrc, '$1.ts') },
114
114
  { find: /^@\//, replacement: path.join(web.webDir, 'src') + '/' },
115
115
  ];
116
116
  if (findPackageJson(projectDir, '@joplo-app/kit'))
@@ -122,6 +122,6 @@ export function kitAliases(web, projectDir) {
122
122
  const ext = path.extname(main);
123
123
  return [
124
124
  { find: /^@joplo-app\/kit$/, replacement: main },
125
- { find: /^@joplo-app\/kit\/(ui|node|jsx-runtime|jsx-dev-runtime)$/, replacement: path.join(path.dirname(main), `$1${ext}`) },
125
+ { find: /^@joplo-app\/kit\/(node|plugin|jsx-runtime|jsx-dev-runtime)$/, replacement: path.join(path.dirname(main), `$1${ext}`) },
126
126
  ];
127
127
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@joplo-app/server",
3
- "version": "0.2.17",
3
+ "version": "0.3.0",
4
4
  "description": "Joplo 本地服务:dev 看板、build 发布站、render 截图",
5
5
  "license": "PolyForm-Shield-1.0.0",
6
6
  "type": "module",
@@ -15,16 +15,16 @@
15
15
  "dist"
16
16
  ],
17
17
  "dependencies": {
18
- "@joplo-app/core": "0.2.17",
19
- "@joplo-app/kit": "0.2.17",
20
- "@joplo-app/web": "0.2.17",
18
+ "@joplo-app/core": "0.3.0",
19
+ "@joplo-app/kit": "0.3.0",
20
+ "@joplo-app/web": "0.3.0",
21
21
  "@tailwindcss/vite": "4.3.4",
22
+ "mediabunny": "1.65.2",
22
23
  "tailwindcss": "4.3.4",
23
24
  "vite": "8.3.5",
24
25
  "zod": "4.6.7"
25
26
  },
26
27
  "devDependencies": {
27
- "@joplo-app/core-legacy": "npm:@joplo-app/core@0.2.10",
28
28
  "@vitejs/plugin-react": "6.2.1",
29
29
  "playwright": "1.64.1",
30
30
  "playwright-core": "1.64.1"