elysia-rack 0.1.1 → 0.2.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": "elysia-rack",
3
- "version": "0.1.1",
3
+ "version": "0.2.0",
4
4
  "description": "Model-driven CRUD rack for Elysia: REST + QUERY routes, validation, authorization, OpenAPI metadata, and React panel rendering.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -51,12 +51,12 @@
51
51
  "registry": "https://registry.npmjs.org/"
52
52
  },
53
53
  "scripts": {
54
- "dev": "bun run build:assets && bun run src/playground.ts",
54
+ "dev": "bun run src/playground.ts",
55
55
  "test": "bun test --coverage",
56
56
  "typecheck": "tsc --noEmit",
57
- "build": "bun run build:assets && bun run build:js && bun run build:dts",
58
- "build:assets": "vite build",
57
+ "build": "bun run build:js && bun run build:dts && bun run build:client",
59
58
  "build:js": "bun build ./src/rack/index.ts ./src/react/index.ts --outdir ./dist --target node --format esm --splitting --external elysia --external react --external react-dom",
59
+ "build:client": "bun build src/react/page/client/panel.ts --outfile dist/panel-app.js --target browser --format esm && bun build src/react/page/client/theme.ts --outfile dist/panel-theme.js --target browser --format esm && mkdir -p dist && cp src/react/app.html dist/app.html 2>/dev/null || true",
60
60
  "build:dts": "tsc -p tsconfig.build.json",
61
61
  "prepublishOnly": "bun run typecheck && bun run build"
62
62
  },
@@ -73,17 +73,13 @@
73
73
  },
74
74
  "devDependencies": {
75
75
  "@electric-sql/pglite": "^0.5.8",
76
- "@tailwindcss/vite": "^4.3.3",
77
76
  "@types/bun": "latest",
78
77
  "@types/react": "^19.2.18",
79
78
  "@types/react-dom": "^19.2.5",
80
- "@vitejs/plugin-react": "^6.1.1",
81
79
  "drizzle-orm": "^0.45.2",
82
80
  "elysia": "^1.4.30",
83
81
  "react": "^19.2.8",
84
82
  "react-dom": "^19.2.8",
85
- "tailwindcss": "^4.3.3",
86
- "typescript": "^5",
87
- "vite": "^8.2.2"
83
+ "typescript": "^5"
88
84
  }
89
85
  }