@kuckit/app-server 2.0.1 → 2.0.2

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.
Files changed (2) hide show
  1. package/package.json +18 -31
  2. package/src/index.ts +0 -37
package/package.json CHANGED
@@ -1,53 +1,40 @@
1
1
  {
2
2
  "name": "@kuckit/app-server",
3
- "version": "2.0.1",
3
+ "version": "2.0.2",
4
4
  "type": "module",
5
- "main": "src/index.ts",
6
- "types": "src/index.ts",
5
+ "main": "dist/index.js",
6
+ "types": "dist/index.d.ts",
7
7
  "files": [
8
8
  "dist"
9
9
  ],
10
10
  "exports": {
11
11
  ".": {
12
- "types": "./src/index.ts",
13
- "default": "./src/index.ts"
12
+ "types": "./dist/index.d.ts",
13
+ "default": "./dist/index.js"
14
14
  },
15
15
  "./*": {
16
- "types": "./src/*.ts",
17
- "default": "./src/*.ts"
18
- }
19
- },
20
- "publishConfig": {
21
- "main": "dist/index.js",
22
- "types": "dist/index.d.ts",
23
- "exports": {
24
- ".": {
25
- "types": "./dist/index.d.ts",
26
- "default": "./dist/index.js"
27
- },
28
- "./*": {
29
- "types": "./dist/*.d.ts",
30
- "default": "./dist/*.js"
31
- }
16
+ "types": "./dist/*.d.ts",
17
+ "default": "./dist/*.js"
32
18
  }
33
19
  },
34
20
  "scripts": {
35
21
  "build": "tsdown",
36
- "check-types": "tsc -b"
22
+ "check-types": "tsc -b",
23
+ "prepublishOnly": "npm run build && node ../../scripts/resolve-workspace-protocols.cjs && node ../../scripts/check-no-workspace-protocol.cjs"
37
24
  },
38
25
  "dependencies": {
39
- "@kuckit/sdk": "workspace:*",
40
- "@kuckit/api": "workspace:*",
41
- "@kuckit/db": "workspace:*",
42
- "@kuckit/domain": "workspace:*",
43
- "@kuckit/infrastructure": "workspace:*",
44
- "@kuckit/auth": "workspace:*",
26
+ "@kuckit/sdk": "^2.0.2",
27
+ "@kuckit/api": "^2.0.2",
28
+ "@kuckit/db": "^2.0.2",
29
+ "@kuckit/domain": "^2.0.2",
30
+ "@kuckit/infrastructure": "^2.0.2",
31
+ "@kuckit/auth": "^2.0.2",
45
32
  "express": "^5.1.0",
46
33
  "cors": "^2.8.5",
47
34
  "awilix": "^12.0.5",
48
- "@orpc/server": "catalog:",
49
- "@orpc/openapi": "catalog:",
50
- "better-auth": "catalog:",
35
+ "@orpc/server": "^1.10.0",
36
+ "@orpc/openapi": "^1.10.0",
37
+ "better-auth": "^1.3.28",
51
38
  "pg": "^8.11.3"
52
39
  },
53
40
  "devDependencies": {
package/src/index.ts DELETED
@@ -1,37 +0,0 @@
1
- // Main entry points
2
- export {
3
- runKuckitServer,
4
- createKuckitServer,
5
- createKuckitContext,
6
- disposeContainer,
7
- } from './express/server'
8
-
9
- // Express utilities
10
- export { createKuckitApp, type CreateAppOptions } from './express/app'
11
- export { setupContainerMiddleware } from './express/middleware'
12
-
13
- // Route setup functions (for custom wiring)
14
- export {
15
- setupAuth,
16
- setupRPC,
17
- setupAPIReference,
18
- setupModuleRestRouters,
19
- setupHealth,
20
- setupMetrics,
21
- setupStaticFiles,
22
- setupErrorMiddleware,
23
- type SetupRoutesOptions,
24
- } from './express/routes'
25
-
26
- // Types
27
- export type {
28
- KuckitServerConfig,
29
- KuckitServerCradle,
30
- KuckitContainer,
31
- KuckitServerOptions,
32
- KuckitServerHooks,
33
- KuckitServer,
34
- KuckitContext,
35
- KuckitRequest,
36
- KuckitMiddleware,
37
- } from './types'