Skip to content

Commit c26bfc2

Browse files
committed
wip
1 parent 5fcc5aa commit c26bfc2

31 files changed

+254
-149
lines changed

apps/events/tsconfig.app.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
{
2+
"extends": "../../tsconfig.base.json",
3+
"references": [{ "path": "../../packages/graph-framework" }],
24
"compilerOptions": {
35
"target": "ES2020",
46
"useDefineForClassFields": true,
@@ -24,7 +26,9 @@
2426
/* Shadcn */
2527
"baseUrl": ".",
2628
"paths": {
27-
"@/*": ["./src/*"]
29+
"@/*": ["./src/*"],
30+
"graph-framework": ["../../packages/graph-framework/src/index.js"],
31+
"graph-framework/*": ["../../packages/graph-framework/src/*.js"]
2832
}
2933
},
3034
"include": ["src"]

apps/events/tsconfig.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@
55
/* Shadcn */
66
"baseUrl": ".",
77
"paths": {
8-
"@/*": ["./src/*"]
8+
"@/*": ["./src/*"],
9+
"graph-framework": ["../../packages/graph-framework/src/index.js"],
10+
"graph-framework/*": ["../../packages/graph-framework/src/*.js"]
911
}
1012
}
1113
}

apps/events/tsconfig.node.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
{
2+
"extends": "../../tsconfig.base.json",
3+
"references": [{ "path": "../../packages/graph-framework" }],
24
"compilerOptions": {
35
"target": "ES2022",
46
"lib": ["ES2023"],

apps/server/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"version": "1.0.0",
44
"type": "module",
55
"scripts": {
6-
"dev": "TS_NODE_TRANSPILE_ONLY=true nodemon --exec node --loader ts-node/esm ./src/index.ts",
6+
"dev": "bun run ./src/index.ts",
77
"build:ts": "rm -rf dist && pnpm tsc --project tsconfig.json",
88
"build:deploy": "rm -rf build && pnpm deploy --filter=server --prod build",
99
"build": "pnpm run build:ts && pnpm build:deploy",

apps/server/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import cors from 'cors';
22
import 'dotenv/config';
3-
import { parse } from 'node:url';
43
import { Effect, Exit, Schema } from 'effect';
54
import express from 'express';
65
import type {
@@ -15,6 +14,7 @@ import type {
1514
import { RequestMessage, deserialize, serialize } from 'graph-framework-messages';
1615
import type { SpaceEvent } from 'graph-framework-space-events';
1716
import { applyEvent } from 'graph-framework-space-events';
17+
import { parse } from 'node:url';
1818
import WebSocket, { WebSocketServer } from 'ws';
1919
import { applySpaceEvent } from './handlers/applySpaceEvent.js';
2020
import { createSpace } from './handlers/createSpace.js';

apps/server/tsconfig.json

Lines changed: 8 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,11 @@
11
{
2+
"extends": "../../tsconfig.base.json",
3+
"include": ["./src"],
24
"compilerOptions": {
3-
"skipLibCheck": true,
4-
"module": "ESNext",
5-
"moduleResolution": "Bundler",
6-
"target": "ESNext",
7-
"isolatedModules": true,
8-
"esModuleInterop": true,
9-
"noEmit": false,
10-
"outDir": "dist",
11-
"lib": ["esnext"],
12-
"types": ["node"],
13-
"baseUrl": "./",
14-
"strict": true,
15-
"exactOptionalPropertyTypes": true
16-
},
17-
"ts-node": {
18-
"esm": true
19-
},
20-
"exclude": ["node_modules"],
21-
"include": ["./src"]
5+
"composite": false,
6+
"noEmit": true,
7+
"incremental": false,
8+
"declaration": false,
9+
"declarationMap": false
10+
}
2211
}
Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
{
2-
"extends": "../../tsconfig.options.json",
2+
"extends": "./tsconfig.src.json",
3+
"references": [{ "path": "../graph-framework-utils/tsconfig.build.json" }],
34
"compilerOptions": {
4-
"outDir": "./dist",
5-
"rootDir": "./src"
5+
"tsBuildInfoFile": ".tsbuildinfo/build.tsbuildinfo",
6+
"outDir": "build/esm",
7+
"declarationDir": "build/dts",
8+
"stripInternal": true
69
},
7-
"include": ["./src"],
8-
"exclude": ["node_modules", "src/**/*.test.ts", "src/**/*.spec.ts", "dist"]
10+
"exclude": ["node_modules", "src/**/*.test.ts", "src/**/*.spec.ts"]
911
}
Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
11
{
2-
"extends": "../../tsconfig.options.json",
3-
"compilerOptions": {
4-
"baseUrl": ".",
5-
"rootDir": ".",
6-
"noEmit": true
7-
},
8-
"include": ["**/*", "vite.config.mts"],
9-
"exclude": ["**/node_modules", "**/dist"]
2+
"extends": "../../tsconfig.base.json",
3+
"include": [],
4+
"references": [{ "path": "tsconfig.src.json" }]
105
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"extends": "../../tsconfig.base.json",
3+
"include": ["src"],
4+
"references": [{ "path": "../graph-framework-utils" }],
5+
"compilerOptions": {
6+
"tsBuildInfoFile": ".tsbuildinfo/src.tsbuildinfo",
7+
"rootDir": "src",
8+
"outDir": "build/src"
9+
}
10+
}
Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
{
2-
"extends": "../../tsconfig.options.json",
2+
"extends": "./tsconfig.src.json",
33
"compilerOptions": {
4-
"outDir": "./dist",
5-
"rootDir": "./src"
4+
"tsBuildInfoFile": ".tsbuildinfo/build.tsbuildinfo",
5+
"outDir": "build/esm",
6+
"declarationDir": "build/dts",
7+
"stripInternal": true
68
},
7-
"include": ["./src"],
8-
"exclude": ["node_modules", "src/**/*.test.ts", "src/**/*.spec.ts", "dist"]
9+
"exclude": ["node_modules", "src/**/*.test.ts", "src/**/*.spec.ts"]
910
}

0 commit comments

Comments
 (0)