koguma 2.2.4 → 2.3.1

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": "koguma",
3
- "version": "2.2.4",
3
+ "version": "2.3.1",
4
4
  "description": "🐻 A little CMS with big heart — schema-driven, runs on Cloudflare's free tier",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -27,14 +27,15 @@
27
27
  "test:run": "bun test",
28
28
  "build:admin": "bunx turbo run build:admin:run",
29
29
  "build:admin:run": "cd admin && bun install --frozen-lockfile && bun run build && cd .. && bun run scripts/bundle-admin.ts",
30
- "prepublishOnly": "bunx turbo run build:admin:run"
30
+ "prepublishOnly": "bun build src/vite.ts --outdir src --format esm --external vite --external 'node:*' && bunx turbo run build:admin:run"
31
31
  },
32
32
  "exports": {
33
33
  ".": "./src/config/index.ts",
34
34
  "./worker": "./src/worker.ts",
35
35
  "./client": "./src/client/index.ts",
36
36
  "./react": "./src/react/index.ts",
37
- "./types": "./src/config/types.ts"
37
+ "./types": "./src/config/types.ts",
38
+ "./vite": "./src/vite.js"
38
39
  },
39
40
  "bin": {
40
41
  "koguma": "./cli/index.ts"
@@ -55,7 +56,8 @@
55
56
  "peerDependencies": {
56
57
  "hono": "^4.0.0",
57
58
  "react": ">=18",
58
- "react-dom": ">=18"
59
+ "react-dom": ">=18",
60
+ "vite": ">=5"
59
61
  },
60
62
  "peerDependenciesMeta": {
61
63
  "react": {
@@ -63,6 +65,9 @@
63
65
  },
64
66
  "react-dom": {
65
67
  "optional": true
68
+ },
69
+ "vite": {
70
+ "optional": true
66
71
  }
67
72
  },
68
73
  "devDependencies": {