Skip to content

Commit 4578eda

Browse files
cmwhitednikgraf
authored andcommitted
feat(shared tsconfig): create shated tsconfig and extend in packages
1 parent 014fe10 commit 4578eda

File tree

18 files changed

+221
-219
lines changed

18 files changed

+221
-219
lines changed

apps/events/src/routeTree.gen.ts

Lines changed: 106 additions & 83 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
/* eslint-disable */
2+
13
// @ts-nocheck
24

35
// noinspection JSUnusedGlobalSymbols
@@ -6,154 +8,173 @@
68
// You should NOT make any changes in this file as it will be overwritten.
79
// Additionally, you should also exclude this file from your linter and/or formatter to prevent it from being checked or modified.
810

9-
import { createFileRoute } from '@tanstack/react-router';
11+
import { createFileRoute } from '@tanstack/react-router'
1012

1113
// Import Routes
1214

13-
import { Route as rootRoute } from './routes/__root';
14-
import { Route as IndexImport } from './routes/index';
15-
import { Route as PlaygroundImport } from './routes/playground';
16-
import { Route as Schema2Import } from './routes/schema2';
17-
import { Route as SpaceSpaceIdImport } from './routes/space/$spaceId';
15+
import { Route as rootRoute } from './routes/__root'
16+
import { Route as Schema2Import } from './routes/schema2'
17+
import { Route as PlaygroundImport } from './routes/playground'
18+
import { Route as IndexImport } from './routes/index'
19+
import { Route as SpaceSpaceIdImport } from './routes/space/$spaceId'
1820

1921
// Create Virtual Routes
2022

21-
const Login2LazyImport = createFileRoute('/login2')();
22-
const LoginLazyImport = createFileRoute('/login')();
23+
const Login2LazyImport = createFileRoute('/login2')()
24+
const LoginLazyImport = createFileRoute('/login')()
2325

2426
// Create/Update Routes
2527

2628
const Login2LazyRoute = Login2LazyImport.update({
2729
id: '/login2',
2830
path: '/login2',
2931
getParentRoute: () => rootRoute,
30-
} as any).lazy(() => import('./routes/login2.lazy').then((d) => d.Route));
32+
} as any).lazy(() => import('./routes/login2.lazy').then((d) => d.Route))
3133

3234
const LoginLazyRoute = LoginLazyImport.update({
3335
id: '/login',
3436
path: '/login',
3537
getParentRoute: () => rootRoute,
36-
} as any).lazy(() => import('./routes/login.lazy').then((d) => d.Route));
38+
} as any).lazy(() => import('./routes/login.lazy').then((d) => d.Route))
3739

3840
const Schema2Route = Schema2Import.update({
3941
id: '/schema2',
4042
path: '/schema2',
4143
getParentRoute: () => rootRoute,
42-
} as any);
44+
} as any)
4345

4446
const PlaygroundRoute = PlaygroundImport.update({
4547
id: '/playground',
4648
path: '/playground',
4749
getParentRoute: () => rootRoute,
48-
} as any);
50+
} as any)
4951

5052
const IndexRoute = IndexImport.update({
5153
id: '/',
5254
path: '/',
5355
getParentRoute: () => rootRoute,
54-
} as any);
56+
} as any)
5557

5658
const SpaceSpaceIdRoute = SpaceSpaceIdImport.update({
5759
id: '/space/$spaceId',
5860
path: '/space/$spaceId',
5961
getParentRoute: () => rootRoute,
60-
} as any);
62+
} as any)
6163

6264
// Populate the FileRoutesByPath interface
6365

6466
declare module '@tanstack/react-router' {
6567
interface FileRoutesByPath {
6668
'/': {
67-
id: '/';
68-
path: '/';
69-
fullPath: '/';
70-
preLoaderRoute: typeof IndexImport;
71-
parentRoute: typeof rootRoute;
72-
};
69+
id: '/'
70+
path: '/'
71+
fullPath: '/'
72+
preLoaderRoute: typeof IndexImport
73+
parentRoute: typeof rootRoute
74+
}
7375
'/playground': {
74-
id: '/playground';
75-
path: '/playground';
76-
fullPath: '/playground';
77-
preLoaderRoute: typeof PlaygroundImport;
78-
parentRoute: typeof rootRoute;
79-
};
76+
id: '/playground'
77+
path: '/playground'
78+
fullPath: '/playground'
79+
preLoaderRoute: typeof PlaygroundImport
80+
parentRoute: typeof rootRoute
81+
}
8082
'/schema2': {
81-
id: '/schema2';
82-
path: '/schema2';
83-
fullPath: '/schema2';
84-
preLoaderRoute: typeof Schema2Import;
85-
parentRoute: typeof rootRoute;
86-
};
83+
id: '/schema2'
84+
path: '/schema2'
85+
fullPath: '/schema2'
86+
preLoaderRoute: typeof Schema2Import
87+
parentRoute: typeof rootRoute
88+
}
8789
'/login': {
88-
id: '/login';
89-
path: '/login';
90-
fullPath: '/login';
91-
preLoaderRoute: typeof LoginLazyImport;
92-
parentRoute: typeof rootRoute;
93-
};
90+
id: '/login'
91+
path: '/login'
92+
fullPath: '/login'
93+
preLoaderRoute: typeof LoginLazyImport
94+
parentRoute: typeof rootRoute
95+
}
9496
'/login2': {
95-
id: '/login2';
96-
path: '/login2';
97-
fullPath: '/login2';
98-
preLoaderRoute: typeof Login2LazyImport;
99-
parentRoute: typeof rootRoute;
100-
};
97+
id: '/login2'
98+
path: '/login2'
99+
fullPath: '/login2'
100+
preLoaderRoute: typeof Login2LazyImport
101+
parentRoute: typeof rootRoute
102+
}
101103
'/space/$spaceId': {
102-
id: '/space/$spaceId';
103-
path: '/space/$spaceId';
104-
fullPath: '/space/$spaceId';
105-
preLoaderRoute: typeof SpaceSpaceIdImport;
106-
parentRoute: typeof rootRoute;
107-
};
104+
id: '/space/$spaceId'
105+
path: '/space/$spaceId'
106+
fullPath: '/space/$spaceId'
107+
preLoaderRoute: typeof SpaceSpaceIdImport
108+
parentRoute: typeof rootRoute
109+
}
108110
}
109111
}
110112

111113
// Create and export the route tree
112114

113115
export interface FileRoutesByFullPath {
114-
'/': typeof IndexRoute;
115-
'/playground': typeof PlaygroundRoute;
116-
'/schema2': typeof Schema2Route;
117-
'/login': typeof LoginLazyRoute;
118-
'/login2': typeof Login2LazyRoute;
119-
'/space/$spaceId': typeof SpaceSpaceIdRoute;
116+
'/': typeof IndexRoute
117+
'/playground': typeof PlaygroundRoute
118+
'/schema2': typeof Schema2Route
119+
'/login': typeof LoginLazyRoute
120+
'/login2': typeof Login2LazyRoute
121+
'/space/$spaceId': typeof SpaceSpaceIdRoute
120122
}
121123

122124
export interface FileRoutesByTo {
123-
'/': typeof IndexRoute;
124-
'/playground': typeof PlaygroundRoute;
125-
'/schema2': typeof Schema2Route;
126-
'/login': typeof LoginLazyRoute;
127-
'/login2': typeof Login2LazyRoute;
128-
'/space/$spaceId': typeof SpaceSpaceIdRoute;
125+
'/': typeof IndexRoute
126+
'/playground': typeof PlaygroundRoute
127+
'/schema2': typeof Schema2Route
128+
'/login': typeof LoginLazyRoute
129+
'/login2': typeof Login2LazyRoute
130+
'/space/$spaceId': typeof SpaceSpaceIdRoute
129131
}
130132

131133
export interface FileRoutesById {
132-
__root__: typeof rootRoute;
133-
'/': typeof IndexRoute;
134-
'/playground': typeof PlaygroundRoute;
135-
'/schema2': typeof Schema2Route;
136-
'/login': typeof LoginLazyRoute;
137-
'/login2': typeof Login2LazyRoute;
138-
'/space/$spaceId': typeof SpaceSpaceIdRoute;
134+
__root__: typeof rootRoute
135+
'/': typeof IndexRoute
136+
'/playground': typeof PlaygroundRoute
137+
'/schema2': typeof Schema2Route
138+
'/login': typeof LoginLazyRoute
139+
'/login2': typeof Login2LazyRoute
140+
'/space/$spaceId': typeof SpaceSpaceIdRoute
139141
}
140142

141143
export interface FileRouteTypes {
142-
fileRoutesByFullPath: FileRoutesByFullPath;
143-
fullPaths: '/' | '/playground' | '/schema2' | '/login' | '/login2' | '/space/$spaceId';
144-
fileRoutesByTo: FileRoutesByTo;
145-
to: '/' | '/playground' | '/schema2' | '/login' | '/login2' | '/space/$spaceId';
146-
id: '__root__' | '/' | '/playground' | '/schema2' | '/login' | '/login2' | '/space/$spaceId';
147-
fileRoutesById: FileRoutesById;
144+
fileRoutesByFullPath: FileRoutesByFullPath
145+
fullPaths:
146+
| '/'
147+
| '/playground'
148+
| '/schema2'
149+
| '/login'
150+
| '/login2'
151+
| '/space/$spaceId'
152+
fileRoutesByTo: FileRoutesByTo
153+
to:
154+
| '/'
155+
| '/playground'
156+
| '/schema2'
157+
| '/login'
158+
| '/login2'
159+
| '/space/$spaceId'
160+
id:
161+
| '__root__'
162+
| '/'
163+
| '/playground'
164+
| '/schema2'
165+
| '/login'
166+
| '/login2'
167+
| '/space/$spaceId'
168+
fileRoutesById: FileRoutesById
148169
}
149170

150171
export interface RootRouteChildren {
151-
IndexRoute: typeof IndexRoute;
152-
PlaygroundRoute: typeof PlaygroundRoute;
153-
Schema2Route: typeof Schema2Route;
154-
LoginLazyRoute: typeof LoginLazyRoute;
155-
Login2LazyRoute: typeof Login2LazyRoute;
156-
SpaceSpaceIdRoute: typeof SpaceSpaceIdRoute;
172+
IndexRoute: typeof IndexRoute
173+
PlaygroundRoute: typeof PlaygroundRoute
174+
Schema2Route: typeof Schema2Route
175+
LoginLazyRoute: typeof LoginLazyRoute
176+
Login2LazyRoute: typeof Login2LazyRoute
177+
SpaceSpaceIdRoute: typeof SpaceSpaceIdRoute
157178
}
158179

159180
const rootRouteChildren: RootRouteChildren = {
@@ -163,9 +184,11 @@ const rootRouteChildren: RootRouteChildren = {
163184
LoginLazyRoute: LoginLazyRoute,
164185
Login2LazyRoute: Login2LazyRoute,
165186
SpaceSpaceIdRoute: SpaceSpaceIdRoute,
166-
};
187+
}
167188

168-
export const routeTree = rootRoute._addFileChildren(rootRouteChildren)._addFileTypes<FileRouteTypes>();
189+
export const routeTree = rootRoute
190+
._addFileChildren(rootRouteChildren)
191+
._addFileTypes<FileRouteTypes>()
169192

170193
/* ROUTE_MANIFEST_START
171194
{

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
"escape-string-regexp": "^5.0.0",
99
"typescript": "^5.6.3",
1010
"vite": "^5.4.10",
11-
"vitest": "^2.1.4"
11+
"vitest": "^2.1.4",
12+
"vite-plugin-dts": "^4.3.0"
1213
},
1314
"scripts": {
1415
"build": "pnpm --filter graph-framework-utils build",
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"extends": "../../tsconfig.options.json",
3+
"compilerOptions": {
4+
"outDir": "./dist",
5+
"rootDir": "./src"
6+
},
7+
"include": ["./src"],
8+
"exclude": ["node_modules", "src/**/*.test.ts", "src/**/*.spec.ts", "dist"]
9+
}
Lines changed: 6 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,10 @@
11
{
2+
"extends": "../../tsconfig.options.json",
23
"compilerOptions": {
3-
"strict": true,
4-
"exactOptionalPropertyTypes": true,
5-
"noUncheckedIndexedAccess": true,
6-
"esModuleInterop": true,
7-
"sourceMap": true,
8-
"declarationMap": true,
9-
"declaration": true,
10-
"strictNullChecks": true,
11-
"incremental": true,
12-
"composite": true,
13-
"allowJs": true,
14-
"skipLibCheck": true,
15-
"forceConsistentCasingInFileNames": true,
16-
"noFallthroughCasesInSwitch": true,
17-
"noErrorTruncation": true,
18-
"isolatedModules": true,
19-
"target": "ESNext",
20-
"module": "NodeNext",
21-
"moduleResolution": "NodeNext",
22-
"outDir": "./dist",
23-
"rootDir": "./src",
24-
"jsx": "react-jsx"
4+
"baseUrl": ".",
5+
"rootDir": ".",
6+
"noEmit": true
257
},
26-
"include": ["./src"]
8+
"include": ["**/*", "vite.config.mts"],
9+
"exclude": ["**/node_modules", "**/dist"]
2710
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"extends": "../../tsconfig.options.json",
3+
"compilerOptions": {
4+
"outDir": "./dist",
5+
"rootDir": "./src"
6+
},
7+
"include": ["./src"],
8+
"exclude": ["node_modules", "src/**/*.test.ts", "src/**/*.spec.ts", "dist"]
9+
}
Lines changed: 6 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,10 @@
11
{
2+
"extends": "../../tsconfig.options.json",
23
"compilerOptions": {
3-
"strict": true,
4-
"exactOptionalPropertyTypes": true,
5-
"noUncheckedIndexedAccess": true,
6-
"esModuleInterop": true,
7-
"sourceMap": true,
8-
"declarationMap": true,
9-
"declaration": true,
10-
"strictNullChecks": true,
11-
"incremental": true,
12-
"composite": true,
13-
"allowJs": true,
14-
"skipLibCheck": true,
15-
"forceConsistentCasingInFileNames": true,
16-
"noFallthroughCasesInSwitch": true,
17-
"noErrorTruncation": true,
18-
"isolatedModules": true,
19-
"target": "ESNext",
20-
"module": "NodeNext",
21-
"moduleResolution": "NodeNext",
22-
"outDir": "./dist",
23-
"rootDir": "./src",
24-
"jsx": "react-jsx"
4+
"baseUrl": ".",
5+
"rootDir": ".",
6+
"noEmit": true
257
},
26-
"include": ["./src"]
8+
"include": ["**/*", "vite.config.mts"],
9+
"exclude": ["**/node_modules", "**/dist"]
2710
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"extends": "../../tsconfig.options.json",
3+
"compilerOptions": {
4+
"outDir": "./dist",
5+
"rootDir": "./src"
6+
},
7+
"include": ["./src"],
8+
"exclude": ["node_modules", "src/**/*.test.ts", "src/**/*.spec.ts", "dist"]
9+
}

0 commit comments

Comments
 (0)