@aprovan/patchwork-web 0.1.0-dev.78c0b14 → 0.1.0-dev.93c7b6a

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.
@@ -324,4 +324,4 @@ computing gzip size...
324
324
  - Using dynamic import() to code-split the application
325
325
  - Use build.rollupOptions.output.manualChunks to improve chunking: https://rollupjs.org/configuration-options/#output-manualchunks
326
326
  - Adjust chunk size limit for this warning via build.chunkSizeWarningLimit.
327
- ✓ built in 8.14s
327
+ ✓ built in 8.51s
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aprovan/patchwork-web",
3
- "version": "0.1.0-dev.78c0b14",
3
+ "version": "0.1.0-dev.93c7b6a",
4
4
  "type": "module",
5
5
  "dependencies": {
6
6
  "@ai-sdk/react": "^3.0.69",
@@ -26,9 +26,10 @@
26
26
  "remark-gfm": "^4.0.1",
27
27
  "tailwind-merge": "^3.4.0",
28
28
  "tiptap-markdown": "^0.9.0",
29
- "@aprovan/patchwork-editor": "0.1.2-dev.78c0b14",
30
- "@aprovan/patchwork-compiler": "0.1.2-dev.78c0b14",
31
- "@aprovan/bobbin": "0.1.0-dev.78c0b14"
29
+ "@aprovan/bobbin": "0.1.0-dev.93c7b6a",
30
+ "@aprovan/patchwork-compiler": "0.1.2-dev.93c7b6a",
31
+ "@aprovan/patchwork-editor": "0.1.2-dev.93c7b6a",
32
+ "@aprovan/stitchery": "0.1.0-dev.93c7b6a"
32
33
  },
33
34
  "devDependencies": {
34
35
  "@tailwindcss/typography": "^0.5.19",
@@ -47,7 +48,7 @@
47
48
  "scripts": {
48
49
  "dev": "tsx scripts/start-dev.ts",
49
50
  "dev:client": "vite",
50
- "dev:server": "pnpm --filter @aprovan/chat-backend dev",
51
+ "dev:server": "node ../../packages/stitchery/dist/cli.js serve --utcp-config .utcp_config.json --local-package @aprovan/patchwork-image-shadcn:../../packages/images/shadcn -v --vfs-dir ./workspace --vfs-use-paths",
51
52
  "build": "tsc && vite build",
52
53
  "preview": "vite preview"
53
54
  }
@@ -6,13 +6,9 @@ import "dotenv/config";
6
6
  * Allocates consecutive ports for all services and starts them together.
7
7
  */
8
8
 
9
- import path from "node:path";
10
- import { fileURLToPath } from "node:url";
11
9
  import { spawn } from "node:child_process";
12
10
  import { allocatePorts } from "@aprovan/devtools";
13
11
 
14
- const __dirname = path.dirname(fileURLToPath(import.meta.url));
15
-
16
12
  const PROJECT = process.env.PROJECT ?? "patchwork";
17
13
  const BASE_PORT = process.env.PORT ? parseInt(process.env.PORT) : 3700;
18
14
 
@@ -37,11 +33,25 @@ async function main() {
37
33
  API_URL: `http://127.0.0.1:${serverPort}`,
38
34
  };
39
35
 
40
- const chatApiDir = path.resolve(__dirname, "../../../apps/chat-api");
41
- const server = spawn("pnpm", ["run", "dev"], {
36
+ const serverArgs = [
37
+ "node",
38
+ "../../packages/stitchery/dist/cli.js",
39
+ "serve",
40
+ "-p",
41
+ String(serverPort),
42
+ "--utcp-config",
43
+ ".utcp_config.json",
44
+ "--local-package",
45
+ "@aprovan/patchwork-image-shadcn:../../packages/images/shadcn",
46
+ "-v",
47
+ "--vfs-dir",
48
+ "./workspace",
49
+ "--vfs-use-paths",
50
+ ];
51
+
52
+ const server = spawn(serverArgs[0]!, serverArgs.slice(1), {
42
53
  stdio: "inherit",
43
- env: { ...env, PORT: String(serverPort) },
44
- cwd: chatApiDir,
54
+ env,
45
55
  });
46
56
 
47
57
  await new Promise((resolve) => setTimeout(resolve, 1000));
package/vite.config.ts CHANGED
@@ -13,6 +13,14 @@ export default defineConfig({
13
13
  target: API_URL,
14
14
  changeOrigin: true,
15
15
  },
16
+ "/_local-packages": {
17
+ target: API_URL,
18
+ changeOrigin: true,
19
+ },
20
+ "/vfs": {
21
+ target: API_URL,
22
+ changeOrigin: true,
23
+ },
16
24
  },
17
25
  },
18
26
  });