zitejs 0.10.0 → 0.10.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/dist/cjs/check/index.js +10 -4
- package/dist/cjs/start/build/entries.d.ts +5 -0
- package/dist/cjs/start/build/entries.js +16 -8
- package/dist/cjs/start/build/roleIds.d.ts +11 -0
- package/dist/cjs/start/build/roleIds.js +59 -0
- package/dist/cjs/start/describe/schema.d.ts +574 -0
- package/dist/cjs/start/describe/schema.js +178 -0
- package/dist/cjs/start/protocol.d.ts +7 -0
- package/dist/cjs/start/protocol.js +27 -3
- package/dist/cjs/start/serve/authHookNames.d.ts +3 -0
- package/dist/cjs/start/serve/authHookNames.js +13 -0
- package/dist/esm/check/index.js +10 -4
- package/dist/esm/start/build/entries.d.ts +5 -0
- package/dist/esm/start/build/entries.js +15 -8
- package/dist/esm/start/build/roleIds.d.ts +11 -0
- package/dist/esm/start/build/roleIds.js +54 -0
- package/dist/esm/start/describe/schema.d.ts +574 -0
- package/dist/esm/start/describe/schema.js +175 -0
- package/dist/esm/start/describe/schema.test-d.d.ts +1 -0
- package/dist/esm/start/describe/schema.test-d.js +23 -0
- package/dist/esm/start/index.d.ts +1 -1
- package/dist/esm/start/protocol.d.ts +7 -0
- package/dist/esm/start/protocol.js +17 -2
- package/dist/esm/start/roles.d.ts +10 -2
- package/dist/esm/start/serve/authHookNames.d.ts +3 -0
- package/dist/esm/start/serve/authHookNames.js +9 -0
- package/dist/esm/start/serve/authHooks.d.ts +2 -4
- package/dist/esm/start/serve/authHooks.js +2 -8
- package/dist/esm/start/version.d.ts +1 -1
- package/dist/esm/start/version.js +1 -1
- package/package.json +4 -2
- package/tsconfig/start.json +40 -0
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
// Describe's answer as zod, for the platform to check a build's description with before it reads one: the shape of
|
|
2
|
+
// `Description`, nothing of the platform's limits. Imports only zod and the auth hook names, so
|
|
3
|
+
// zitejs/start/protocol stays light; schema.test-d.ts holds it to the type.
|
|
4
|
+
import { z } from 'zod';
|
|
5
|
+
import { AUTH_HOOK_NAMES } from '../serve/authHookNames.js';
|
|
6
|
+
export const describedAccessSchema = z.object({
|
|
7
|
+
kind: z.enum(['signedIn', 'anyone', 'webhook', 'none']),
|
|
8
|
+
roles: z.array(z.string()),
|
|
9
|
+
paused: z.literal(true).optional(),
|
|
10
|
+
});
|
|
11
|
+
export const describedFunctionSchema = z.object({
|
|
12
|
+
id: z.string(),
|
|
13
|
+
name: z.string().optional(),
|
|
14
|
+
file: z.string().optional(),
|
|
15
|
+
method: z.string().optional(),
|
|
16
|
+
description: z.string().optional(),
|
|
17
|
+
access: describedAccessSchema,
|
|
18
|
+
/** The validator's JSON Schema, `{ unrepresentable: true }` or `{ opaque: true }`. */
|
|
19
|
+
input: z.unknown().optional(),
|
|
20
|
+
problems: z.array(z.string()),
|
|
21
|
+
});
|
|
22
|
+
export const describedRouteSchema = z.object({
|
|
23
|
+
path: z.string(),
|
|
24
|
+
file: z.string().optional(),
|
|
25
|
+
description: z.string().optional(),
|
|
26
|
+
methods: z.record(z.string(), describedAccessSchema),
|
|
27
|
+
problems: z.array(z.string()),
|
|
28
|
+
});
|
|
29
|
+
export const describedPageSchema = z.object({
|
|
30
|
+
id: z.string(),
|
|
31
|
+
path: z.string(),
|
|
32
|
+
file: z.string().optional(),
|
|
33
|
+
});
|
|
34
|
+
const dayOfWeek = z.enum(['sun', 'mon', 'tue', 'wed', 'thu', 'fri', 'sat']);
|
|
35
|
+
const activeWindow = z.object({
|
|
36
|
+
hoursRange: z.object({ from: z.string(), to: z.string() }).optional(),
|
|
37
|
+
daysOfWeek: z.array(dayOfWeek).optional(),
|
|
38
|
+
});
|
|
39
|
+
/** `ZiteSchedule`, as an automation declares it. */
|
|
40
|
+
export const describedScheduleSchema = z.discriminatedUnion('scheduleType', [
|
|
41
|
+
z.object({
|
|
42
|
+
scheduleType: z.literal('recurring'),
|
|
43
|
+
schedule: z.discriminatedUnion('frequency', [
|
|
44
|
+
z.object({
|
|
45
|
+
frequency: z.literal('minutely'),
|
|
46
|
+
interval: z.number(),
|
|
47
|
+
activeWindow: activeWindow.optional(),
|
|
48
|
+
}),
|
|
49
|
+
z.object({
|
|
50
|
+
frequency: z.literal('hourly'),
|
|
51
|
+
interval: z.number(),
|
|
52
|
+
minute: z.number().optional(),
|
|
53
|
+
activeWindow: activeWindow.optional(),
|
|
54
|
+
}),
|
|
55
|
+
z.object({
|
|
56
|
+
frequency: z.literal('daily'),
|
|
57
|
+
interval: z.number(),
|
|
58
|
+
times: z.array(z.string()),
|
|
59
|
+
}),
|
|
60
|
+
z.object({
|
|
61
|
+
frequency: z.literal('weekly'),
|
|
62
|
+
interval: z.number(),
|
|
63
|
+
daysOfWeek: z.array(dayOfWeek),
|
|
64
|
+
times: z.array(z.string()),
|
|
65
|
+
}),
|
|
66
|
+
z.object({
|
|
67
|
+
frequency: z.literal('monthly'),
|
|
68
|
+
interval: z.literal(1),
|
|
69
|
+
monthlyDay: z.discriminatedUnion('type', [
|
|
70
|
+
z.object({
|
|
71
|
+
type: z.literal('dayOfMonth'),
|
|
72
|
+
day: z.union([z.number(), z.literal('last')]),
|
|
73
|
+
}),
|
|
74
|
+
z.object({
|
|
75
|
+
type: z.literal('weekdayOccurrence'),
|
|
76
|
+
weekday: dayOfWeek,
|
|
77
|
+
occurrence: z.union([z.literal([1, 2, 3, 4]), z.literal('last')]),
|
|
78
|
+
}),
|
|
79
|
+
]),
|
|
80
|
+
times: z.array(z.string()),
|
|
81
|
+
}),
|
|
82
|
+
]),
|
|
83
|
+
endPolicy: z
|
|
84
|
+
.discriminatedUnion('type', [
|
|
85
|
+
z.object({ type: z.literal('never') }),
|
|
86
|
+
z.object({ type: z.literal('onDate'), endAt: z.string() }),
|
|
87
|
+
z.object({
|
|
88
|
+
type: z.literal('afterOccurrences'),
|
|
89
|
+
occurrences: z.number(),
|
|
90
|
+
}),
|
|
91
|
+
])
|
|
92
|
+
.optional(),
|
|
93
|
+
overlapPolicy: z.enum(['skip', 'allow']).optional(),
|
|
94
|
+
timezone: z.string(),
|
|
95
|
+
paused: z.boolean().optional(),
|
|
96
|
+
}),
|
|
97
|
+
z.object({
|
|
98
|
+
scheduleType: z.literal('oneTime'),
|
|
99
|
+
fireAt: z.string(),
|
|
100
|
+
timezone: z.string(),
|
|
101
|
+
paused: z.boolean().optional(),
|
|
102
|
+
}),
|
|
103
|
+
]);
|
|
104
|
+
const absent = z.never().optional();
|
|
105
|
+
const shown = { label: z.string().optional(), paused: z.boolean().optional() };
|
|
106
|
+
/**
|
|
107
|
+
* `ZiteTrigger`, as an automation declares it, without a provider trigger's `subscribe` and `unsubscribe`. Database
|
|
108
|
+
* and form triggers are in it: describe reports one it refuses.
|
|
109
|
+
*/
|
|
110
|
+
export const describedTriggerSchema = z.union([
|
|
111
|
+
z.object({
|
|
112
|
+
integration: z.string(),
|
|
113
|
+
...shown,
|
|
114
|
+
every: absent,
|
|
115
|
+
events: absent,
|
|
116
|
+
table: absent,
|
|
117
|
+
form: absent,
|
|
118
|
+
}),
|
|
119
|
+
z.object({
|
|
120
|
+
integration: z.string(),
|
|
121
|
+
events: z.array(z.string()),
|
|
122
|
+
...shown,
|
|
123
|
+
every: absent,
|
|
124
|
+
table: absent,
|
|
125
|
+
form: absent,
|
|
126
|
+
}),
|
|
127
|
+
z.object({
|
|
128
|
+
every: z.string(),
|
|
129
|
+
integration: z.string().optional(),
|
|
130
|
+
...shown,
|
|
131
|
+
events: absent,
|
|
132
|
+
table: absent,
|
|
133
|
+
form: absent,
|
|
134
|
+
}),
|
|
135
|
+
z.object({
|
|
136
|
+
table: z.string(),
|
|
137
|
+
on: z.array(z.enum(['created', 'updated', 'deleted'])),
|
|
138
|
+
fields: z.array(z.string()).optional(),
|
|
139
|
+
...shown,
|
|
140
|
+
integration: absent,
|
|
141
|
+
every: absent,
|
|
142
|
+
events: absent,
|
|
143
|
+
form: absent,
|
|
144
|
+
}),
|
|
145
|
+
z.object({
|
|
146
|
+
form: z.string(),
|
|
147
|
+
on: z.array(z.literal('submitted')),
|
|
148
|
+
...shown,
|
|
149
|
+
integration: absent,
|
|
150
|
+
every: absent,
|
|
151
|
+
events: absent,
|
|
152
|
+
table: absent,
|
|
153
|
+
}),
|
|
154
|
+
]);
|
|
155
|
+
export const describedWorkflowSchema = z.object({
|
|
156
|
+
id: z.string(),
|
|
157
|
+
file: z.string(),
|
|
158
|
+
description: z.string().optional(),
|
|
159
|
+
schedule: describedScheduleSchema.optional(),
|
|
160
|
+
trigger: describedTriggerSchema.optional(),
|
|
161
|
+
registration: z
|
|
162
|
+
.object({ unsubscribe: z.boolean(), hash: z.string(), module: z.string() })
|
|
163
|
+
.optional(),
|
|
164
|
+
problems: z.array(z.string()),
|
|
165
|
+
});
|
|
166
|
+
export const authHookNameSchema = z.enum(AUTH_HOOK_NAMES);
|
|
167
|
+
/** What `zitejs describe` and a build's describe invoke answer. */
|
|
168
|
+
export const describeOutputSchema = z.object({
|
|
169
|
+
functions: z.array(describedFunctionSchema),
|
|
170
|
+
routes: z.array(describedRouteSchema),
|
|
171
|
+
pages: z.array(describedPageSchema),
|
|
172
|
+
workflows: z.array(describedWorkflowSchema),
|
|
173
|
+
authHooks: z.array(authHookNameSchema),
|
|
174
|
+
problems: z.array(z.string()),
|
|
175
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { describe, expectTypeOf, it } from 'vitest';
|
|
2
|
+
// Equal, which is stricter than assignable both ways: the schema can neither drop, add nor loosen a field.
|
|
3
|
+
describe("describe's output schema", () => {
|
|
4
|
+
it('infers exactly Description', () => {
|
|
5
|
+
expectTypeOf().toEqualTypeOf();
|
|
6
|
+
});
|
|
7
|
+
it('infers exactly each part, for a consumer to extend', () => {
|
|
8
|
+
expectTypeOf().toEqualTypeOf();
|
|
9
|
+
expectTypeOf().toEqualTypeOf();
|
|
10
|
+
expectTypeOf().toEqualTypeOf();
|
|
11
|
+
expectTypeOf().toEqualTypeOf();
|
|
12
|
+
expectTypeOf().toEqualTypeOf();
|
|
13
|
+
expectTypeOf().toEqualTypeOf();
|
|
14
|
+
});
|
|
15
|
+
it('fails on a drift', () => {
|
|
16
|
+
expectTypeOf()
|
|
17
|
+
// @ts-expect-error a field the type lacks
|
|
18
|
+
.toEqualTypeOf();
|
|
19
|
+
expectTypeOf()
|
|
20
|
+
// @ts-expect-error a kind the type lacks
|
|
21
|
+
.toEqualTypeOf();
|
|
22
|
+
});
|
|
23
|
+
});
|
|
@@ -7,4 +7,4 @@ export type { ZiteTrigger, ZiteTriggerSubscribe, ZiteTriggerSubscribeInput, Zite
|
|
|
7
7
|
export { anyone, signedIn, webhook } from './access.js';
|
|
8
8
|
export { publicFn, signedInFn } from './factories.js';
|
|
9
9
|
export { loginHref } from './login.js';
|
|
10
|
-
export { hasRole, role } from './roles.js';
|
|
10
|
+
export { hasRole, role, type RoleId, type ZiteRoles } from './roles.js';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { isReservedIntegrationId, RESERVED_INTEGRATION_IDS, } from '../internal/reservedIds.js';
|
|
2
|
+
export { authHookNameSchema, describedAccessSchema, describedFunctionSchema, describedPageSchema, describedRouteSchema, describedScheduleSchema, describedTriggerSchema, describedWorkflowSchema, describeOutputSchema, } from './describe/schema.js';
|
|
2
3
|
export type { AppContext, ExpiringToken, HostConnection, HostMode, HostPage, HostProps, PlatformBinding, SiteHead, WebManifest, } from './types.js';
|
|
3
4
|
/** What the host dispatches a request to do beside serving it; without props, only `warm` and `describe`. */
|
|
4
5
|
export declare const INVOKE_KINDS: readonly ["webhook", "describe", "workflow", "register", "warm", "authHook", "function"];
|
|
@@ -17,3 +18,9 @@ export declare const GATEWAY_CONNECTION_HEADER = "x-zite-gateway-connection";
|
|
|
17
18
|
/** On a demo's refused answer, beside its 403, so the platform's runtime shows the demo notice. */
|
|
18
19
|
export declare const ERROR_CODE_HEADER = "x-zite-error-code";
|
|
19
20
|
export declare const DEMO_READ_ONLY_CODE = "DEMO_READ_ONLY";
|
|
21
|
+
/**
|
|
22
|
+
* What a Start app installs beside zitejs, exactly: the TanStack peers zitejs pins, and React Query with its core,
|
|
23
|
+
* pinned together so only one query-core is ever installed. tests/startAppDependencies.test.ts holds it to
|
|
24
|
+
* package.json.
|
|
25
|
+
*/
|
|
26
|
+
export declare const START_APP_DEPENDENCIES: Readonly<Record<string, string>>;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
// What a Start build and the platform's host say to each other on the wire. Import-free but for the reserved ids
|
|
2
|
-
//
|
|
1
|
+
// What a Start build and the platform's host say to each other on the wire. Import-free but for the reserved ids and
|
|
2
|
+
// describe's output schema, which imports only zod and the auth hook names, so the host takes these without loading
|
|
3
|
+
// anything of zitejs.
|
|
3
4
|
export { isReservedIntegrationId, RESERVED_INTEGRATION_IDS, } from '../internal/reservedIds.js';
|
|
5
|
+
export { authHookNameSchema, describedAccessSchema, describedFunctionSchema, describedPageSchema, describedRouteSchema, describedScheduleSchema, describedTriggerSchema, describedWorkflowSchema, describeOutputSchema, } from './describe/schema.js';
|
|
4
6
|
/** What the host dispatches a request to do beside serving it; without props, only `warm` and `describe`. */
|
|
5
7
|
export const INVOKE_KINDS = [
|
|
6
8
|
'webhook',
|
|
@@ -25,3 +27,16 @@ export const GATEWAY_CONNECTION_HEADER = 'x-zite-gateway-connection';
|
|
|
25
27
|
/** On a demo's refused answer, beside its 403, so the platform's runtime shows the demo notice. */
|
|
26
28
|
export const ERROR_CODE_HEADER = 'x-zite-error-code';
|
|
27
29
|
export const DEMO_READ_ONLY_CODE = 'DEMO_READ_ONLY';
|
|
30
|
+
/**
|
|
31
|
+
* What a Start app installs beside zitejs, exactly: the TanStack peers zitejs pins, and React Query with its core,
|
|
32
|
+
* pinned together so only one query-core is ever installed. tests/startAppDependencies.test.ts holds it to
|
|
33
|
+
* package.json.
|
|
34
|
+
*/
|
|
35
|
+
export const START_APP_DEPENDENCIES = {
|
|
36
|
+
'@tanstack/query-core': '5.104.0',
|
|
37
|
+
'@tanstack/react-query': '5.104.0',
|
|
38
|
+
'@tanstack/react-router': '1.170.45',
|
|
39
|
+
'@tanstack/react-router-ssr-query': '1.167.3',
|
|
40
|
+
'@tanstack/react-start': '1.169.3',
|
|
41
|
+
'@tanstack/start-storage-context': '1.167.40',
|
|
42
|
+
};
|
|
@@ -1,12 +1,20 @@
|
|
|
1
1
|
import type { User } from './types.js';
|
|
2
|
+
/**
|
|
3
|
+
* The workspace's role ids, as keys. `zitejs check` and `zitejs generate` fill it in the app's `.zite/roles.d.ts` from
|
|
4
|
+
* the built-ins and `zite.permissions.json`, so a mistyped id fails the typecheck instead of refusing every caller.
|
|
5
|
+
*/
|
|
6
|
+
export interface ZiteRoles {
|
|
7
|
+
}
|
|
8
|
+
/** A role id the workspace defines, or any string where nothing fills `ZiteRoles`. Cast one read from data. */
|
|
9
|
+
export type RoleId = [keyof ZiteRoles] extends [never] ? string : keyof ZiteRoles & string;
|
|
2
10
|
/**
|
|
3
11
|
* By the role's id, as classic's does: a role's name can change. Takes the user, or a context carrying one as
|
|
4
12
|
* classic's `hasRole(context, id)` does; signed out, no one has a role.
|
|
5
13
|
*/
|
|
6
14
|
export declare const hasRole: (who: User | {
|
|
7
15
|
user: User | null;
|
|
8
|
-
} | null | undefined, roleId:
|
|
16
|
+
} | null | undefined, roleId: RoleId) => boolean;
|
|
9
17
|
/** Signed-in users with this role, by its id. */
|
|
10
|
-
export declare const role: (id:
|
|
18
|
+
export declare const role: (id: RoleId) => import("@tanstack/react-start").RequestMiddlewareAfterServer<{}, readonly [import("@tanstack/react-start").RequestMiddlewareAfterServer<{}, undefined, {
|
|
11
19
|
user: User;
|
|
12
20
|
}>], undefined>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
// Import-free, so describe's output schema in zitejs/start/protocol can name them.
|
|
2
|
+
export const AUTH_HOOK_NAMES = [
|
|
3
|
+
'beforeSignUp',
|
|
4
|
+
'beforeSignIn',
|
|
5
|
+
'afterSignUp',
|
|
6
|
+
'afterSignIn',
|
|
7
|
+
'verifySession',
|
|
8
|
+
];
|
|
9
|
+
export const isAuthHookName = (name) => AUTH_HOOK_NAMES.includes(name);
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
export type AuthHookName
|
|
1
|
+
import { type AuthHookName } from './authHookNames.js';
|
|
2
|
+
export { AUTH_HOOK_NAMES, isAuthHookName, type AuthHookName, } from './authHookNames.js';
|
|
3
3
|
type AuthHook = (input: unknown) => unknown;
|
|
4
|
-
export declare const isAuthHookName: (name: string) => name is AuthHookName;
|
|
5
4
|
/** The hooks the app's `zite.auth.ts` defines, by name. */
|
|
6
5
|
export declare function loadAuthHooks(): Promise<Partial<Record<AuthHookName, AuthHook>>>;
|
|
7
|
-
export {};
|
|
@@ -1,12 +1,6 @@
|
|
|
1
1
|
import { authHooksModule } from '../build/placeholders/authHooksModule.js';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
'beforeSignIn',
|
|
5
|
-
'afterSignUp',
|
|
6
|
-
'afterSignIn',
|
|
7
|
-
'verifySession',
|
|
8
|
-
];
|
|
9
|
-
export const isAuthHookName = (name) => AUTH_HOOK_NAMES.includes(name);
|
|
2
|
+
import { AUTH_HOOK_NAMES } from './authHookNames.js';
|
|
3
|
+
export { AUTH_HOOK_NAMES, isAuthHookName, } from './authHookNames.js';
|
|
10
4
|
/** The hooks the app's `zite.auth.ts` defines, by name. */
|
|
11
5
|
export async function loadAuthHooks() {
|
|
12
6
|
if (!authHooksModule)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const ZITEJS_VERSION = "0.10.
|
|
1
|
+
export declare const ZITEJS_VERSION = "0.10.1";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// Written by scripts/write-version.mjs from package.json.
|
|
2
|
-
export const ZITEJS_VERSION = '0.10.
|
|
2
|
+
export const ZITEJS_VERSION = '0.10.1';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "zitejs",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.1",
|
|
4
4
|
"description": "The Zite framework — build apps on Zite Database",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": [
|
|
@@ -150,6 +150,7 @@
|
|
|
150
150
|
"import": "./dist/esm/start/build/vite.js",
|
|
151
151
|
"default": "./dist/esm/start/build/vite.js"
|
|
152
152
|
},
|
|
153
|
+
"./start/tsconfig.json": "./tsconfig/start.json",
|
|
153
154
|
"./signin": {
|
|
154
155
|
"types": "./dist/esm/signin/index.d.ts",
|
|
155
156
|
"import": "./dist/esm/signin/index.js",
|
|
@@ -184,7 +185,8 @@
|
|
|
184
185
|
"*": "oxfmt --write --no-error-on-unmatched-pattern --"
|
|
185
186
|
},
|
|
186
187
|
"files": [
|
|
187
|
-
"dist"
|
|
188
|
+
"dist",
|
|
189
|
+
"tsconfig"
|
|
188
190
|
],
|
|
189
191
|
"typesVersions": {
|
|
190
192
|
"*": {
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"tsBuildInfoFile": "${configDir}/.tsbuildinfo",
|
|
4
|
+
"target": "ES2022",
|
|
5
|
+
"lib": ["ES2022", "DOM", "DOM.Iterable"],
|
|
6
|
+
"module": "ESNext",
|
|
7
|
+
"moduleResolution": "bundler",
|
|
8
|
+
"customConditions": ["zite-start"],
|
|
9
|
+
"jsx": "react-jsx",
|
|
10
|
+
"types": ["vite/client"],
|
|
11
|
+
"skipLibCheck": true,
|
|
12
|
+
"allowImportingTsExtensions": true,
|
|
13
|
+
"isolatedModules": true,
|
|
14
|
+
"moduleDetection": "force",
|
|
15
|
+
"noEmit": true,
|
|
16
|
+
"incremental": true,
|
|
17
|
+
"strict": false,
|
|
18
|
+
"strictNullChecks": true,
|
|
19
|
+
"noFallthroughCasesInSwitch": true,
|
|
20
|
+
"paths": {
|
|
21
|
+
"@/*": ["${configDir}/src/*"],
|
|
22
|
+
"~/*": ["${configDir}/src/*"],
|
|
23
|
+
"@project/components/*": ["${configDir}/../../packages/components/*"],
|
|
24
|
+
"zitejs/db": ["${configDir}/../../.zite/db.ts"],
|
|
25
|
+
"zitejs/integrations": ["${configDir}/.zite/integrations/index.ts"],
|
|
26
|
+
"zitejs/email": ["${configDir}/.zite/integrations/email.ts"],
|
|
27
|
+
"zitejs/meta": ["${configDir}/.zite/meta.ts"],
|
|
28
|
+
"react": ["${configDir}/node_modules/@types/react"],
|
|
29
|
+
"react/*": ["${configDir}/node_modules/@types/react/*"],
|
|
30
|
+
"react-dom": ["${configDir}/node_modules/@types/react-dom"],
|
|
31
|
+
"react-dom/*": ["${configDir}/node_modules/@types/react-dom/*"]
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
"include": [
|
|
35
|
+
"${configDir}/src",
|
|
36
|
+
"${configDir}/.zite/*.d.ts",
|
|
37
|
+
"${configDir}/vite.config.ts"
|
|
38
|
+
],
|
|
39
|
+
"exclude": ["${configDir}/node_modules", "${configDir}/dist"]
|
|
40
|
+
}
|