@opencraw/studio 0.0.3 → 0.0.4

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.
@@ -0,0 +1 @@
1
+
Binary file
@@ -0,0 +1,16 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="utf-8" />
5
+ <title>StudioUi</title>
6
+ <base href="/" />
7
+
8
+ <meta name="viewport" content="width=device-width, initial-scale=1" />
9
+ <link rel="icon" type="image/x-icon" href="/favicon.ico" />
10
+ <script type="module" crossorigin src="/assets/index-CO3pSJhQ.js"></script>
11
+ <link rel="stylesheet" crossorigin href="/assets/index-x1XGuNl0.css">
12
+ </head>
13
+ <body>
14
+ <div id="root"></div>
15
+ </body>
16
+ </html>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opencraw/studio",
3
- "version": "0.0.3",
3
+ "version": "0.0.4",
4
4
  "type": "module",
5
5
  "main": "./dist/index.esm.js",
6
6
  "module": "./dist/index.esm.js",
@@ -24,7 +24,7 @@
24
24
  "!**/*.js.map"
25
25
  ],
26
26
  "dependencies": {
27
- "@opencraw/core": "^0.1.14",
27
+ "@opencraw/core": "^0.1.15",
28
28
  "playwright": "^1.63.0",
29
29
  "zod": "^4.6.5"
30
30
  },
@@ -49,6 +49,9 @@
49
49
  "node": ">=22"
50
50
  },
51
51
  "sideEffects": false,
52
+ "scripts": {
53
+ "prepack": "node -e \"const {execFileSync}=require('node:child_process');const {existsSync}=require('node:fs');const built=()=>existsSync('dist/ui/index.html');if(!built()){console.log('@opencraw/studio: building @opencraw/studio-ui (apps/studio-ui/vite.config.mts writes straight into dist/ui) before packing...');execFileSync('npx',['nx','run','@opencraw/studio-ui:build','--skip-nx-cache'],{cwd:'../..',stdio:'inherit'})}if(!built())throw new Error('dist/ui/index.html is still missing after building @opencraw/studio-ui: this package would ship a server with nothing to serve. See docs/research/recipe-studio.md.')\""
54
+ },
52
55
  "nx": {
53
56
  "targets": {
54
57
  "typecheck": {
@@ -74,23 +77,6 @@
74
77
  "command": "tsc -p tsconfig.e2e.json && jest --config jest.e2e.config.cts",
75
78
  "cwd": "packages/studio"
76
79
  }
77
- },
78
- "bundle-ui": {
79
- "executor": "nx:run-commands",
80
- "dependsOn": [
81
- "build",
82
- "studio-ui:build"
83
- ],
84
- "inputs": [
85
- "default",
86
- "^production"
87
- ],
88
- "outputs": [
89
- "{projectRoot}/dist/ui"
90
- ],
91
- "options": {
92
- "command": "node -e \"const fs=require('node:fs');const skip=/\\.(d\\.ts(\\.map)?|tsbuildinfo)$/;fs.rmSync('packages/studio/dist/ui',{recursive:true,force:true});fs.cpSync('apps/studio-ui/dist','packages/studio/dist/ui',{recursive:true,filter:s=>!skip.test(s)})\""
93
- }
94
80
  }
95
81
  }
96
82
  }