ryugi-artifacts 1.2.0 → 1.4.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ryugi-artifacts",
3
- "version": "1.2.0",
3
+ "version": "1.4.0",
4
4
  "type": "module",
5
5
  "description": "Server and viewer for the Ryugi artifacts app",
6
6
  "license": "MIT",
@@ -11,17 +11,19 @@
11
11
  },
12
12
  "files": [
13
13
  "dist/server.cjs",
14
- "dist/viewer"
14
+ "dist/viewer",
15
+ "dist/runtime"
15
16
  ],
16
17
  "publishConfig": {
17
18
  "access": "public",
18
19
  "provenance": true
19
20
  },
20
21
  "scripts": {
21
- "build": "pnpm run build:server && pnpm run build:viewer",
22
+ "build": "pnpm run build:server && pnpm run build:viewer && pnpm run build:runtime",
22
23
  "build:server": "esbuild src/server/main.ts --bundle --platform=node --target=node18 --format=cjs --alias:loro-crdt=loro-crdt/base64 --outfile=dist/server.cjs && node -e \"require('node:fs').copyFileSync('dist/server.cjs','../skills/artifacts/app/server.cjs')\"",
23
24
  "prepublishOnly": "pnpm build",
24
25
  "build:viewer": "NODE_ENV=production vite build && node -e \"const fs=require('node:fs');const to='../skills/artifacts/app/viewer';fs.rmSync(to,{recursive:true,force:true});fs.cpSync('dist/viewer',to,{recursive:true})\"",
26
+ "build:runtime": "NODE_ENV=production vite build -c vite.runtime.config.ts && node scripts/inline-runtime-css.mjs",
25
27
  "dev": "vite",
26
28
  "test": "vitest run",
27
29
  "typecheck": "tsc --noEmit -p tsconfig.json"