@uniflowed/config 0.0.0-alpha.1 → 0.0.0-alpha.4
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/internal/schema.js +187 -187
- package/package.json +1 -1
package/internal/schema.js
CHANGED
|
@@ -8,197 +8,197 @@ export type RuleLevel = "off" | "warn" | "error" | 0 | 1 | 2 | boolean;
|
|
|
8
8
|
export type TaskDefinition =
|
|
9
9
|
| string
|
|
10
10
|
| {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
11
|
+
readonly command: string,
|
|
12
|
+
readonly cwd?: string,
|
|
13
|
+
readonly dependsOn?: $ReadOnlyArray<string>,
|
|
14
|
+
readonly env?: { readonly [string]: string },
|
|
15
15
|
};
|
|
16
16
|
|
|
17
17
|
export type CapabilityJsHost = "node" | "deno" | "bun";
|
|
18
18
|
|
|
19
19
|
export type UniflowedConfig = {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
20
|
+
readonly app?: {
|
|
21
|
+
readonly orm?: {
|
|
22
|
+
readonly enabled?: boolean,
|
|
23
|
+
readonly module?: "@uniflowed/orm",
|
|
24
|
+
readonly native?: true,
|
|
25
|
+
readonly generatedFlowTypes?: true,
|
|
26
|
+
readonly preparedByDefault?: true,
|
|
27
27
|
},
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
28
|
+
readonly builtins?: {
|
|
29
|
+
readonly fetch?: {
|
|
30
|
+
readonly module?: "@uniflowed/fetch",
|
|
31
|
+
readonly overrideGlobalFetch?: false,
|
|
32
32
|
},
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
33
|
+
readonly cell?: boolean,
|
|
34
|
+
readonly reactCompiler?: {
|
|
35
|
+
readonly enabled?: boolean,
|
|
36
|
+
readonly implementation?: "official-rust",
|
|
37
|
+
readonly mode?: "syntax",
|
|
38
38
|
},
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
39
|
+
readonly graphql?: {
|
|
40
|
+
readonly module?: "@uniflowed/graphql",
|
|
41
|
+
readonly relayBase?: true,
|
|
42
42
|
},
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
43
|
+
readonly loader?: {
|
|
44
|
+
readonly module?: "@uniflowed/loader",
|
|
45
|
+
readonly stateModule?: "@uniflowed/state",
|
|
46
|
+
readonly cache?: "opt-in",
|
|
47
47
|
},
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
48
|
+
readonly markdown?: {
|
|
49
|
+
readonly module?: "@uniflowed/markdown",
|
|
50
|
+
readonly engine?: "ox-content-wasm",
|
|
51
|
+
readonly mdx?: {
|
|
52
|
+
readonly enabled?: boolean,
|
|
53
|
+
readonly extensions?: $ReadOnlyArray<".mdx">,
|
|
54
|
+
readonly jsxImportSource?: "@uniflowed/jsx-runtime",
|
|
55
|
+
readonly pipelinePlugin?: "built-in",
|
|
56
56
|
},
|
|
57
|
-
|
|
57
|
+
readonly cache?: "opt-in",
|
|
58
58
|
},
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
59
|
+
readonly motion?: {
|
|
60
|
+
readonly module?: "@uniflowed/motion",
|
|
61
|
+
readonly engine?: "uf-native",
|
|
62
|
+
readonly compilerSafe?: true,
|
|
63
|
+
readonly serverComponentSafe?: true,
|
|
64
|
+
readonly reducedMotionDefault?: true,
|
|
65
65
|
},
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
66
|
+
readonly tui?: {
|
|
67
|
+
readonly module?: "@uniflowed/tui",
|
|
68
|
+
readonly stdModule?: "@uniflowed/std/tui",
|
|
69
|
+
readonly standard?: "open-tui",
|
|
70
|
+
readonly nativeRenderer?: true,
|
|
71
|
+
readonly beatReactInk?: true,
|
|
72
|
+
readonly richMedia?: true,
|
|
73
|
+
readonly inMemoryTests?: true,
|
|
74
74
|
},
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
75
|
+
readonly pwa?: {
|
|
76
|
+
readonly module?: "@uniflowed/pwa",
|
|
77
|
+
readonly enabledByDefault?: false,
|
|
78
|
+
readonly cache?: "opt-in",
|
|
79
79
|
},
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
80
|
+
readonly temporal?: {
|
|
81
|
+
readonly module?: "@uniflowed/temporal",
|
|
82
|
+
readonly lite?: true,
|
|
83
83
|
},
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
84
|
+
readonly web?: {
|
|
85
|
+
readonly module?: "@uniflowed/web",
|
|
86
|
+
readonly typedRoutes?: true,
|
|
87
|
+
readonly linkPrefetch?: "off" | "intent" | "render",
|
|
88
|
+
readonly cache?: "opt-in",
|
|
89
89
|
},
|
|
90
90
|
},
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
91
|
+
readonly runtime?: {
|
|
92
|
+
readonly default?: "node" | "deno" | "bun" | "uf",
|
|
93
|
+
readonly compatibility?: $ReadOnlyArray<
|
|
94
94
|
"node" | "bun" | "deno" | "edge" | "serverless" | "container",
|
|
95
95
|
>,
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
96
|
+
readonly capabilityJsHost?: {
|
|
97
|
+
readonly default?: CapabilityJsHost,
|
|
98
|
+
readonly hosts?: $ReadOnlyArray<CapabilityJsHost>,
|
|
99
|
+
readonly autoDetect?: boolean,
|
|
100
100
|
},
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
101
|
+
readonly deploy?: {
|
|
102
|
+
readonly enabled?: boolean,
|
|
103
|
+
readonly adapters?: $ReadOnlyArray<
|
|
104
104
|
"node" | "bun" | "deno" | "edge" | "serverless" | "static" | "container",
|
|
105
105
|
>,
|
|
106
106
|
},
|
|
107
107
|
},
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
108
|
+
readonly router?: {
|
|
109
|
+
readonly entry?: string,
|
|
110
|
+
readonly root?: string,
|
|
111
|
+
readonly manifest?: string,
|
|
112
112
|
},
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
113
|
+
readonly rendering?: {
|
|
114
|
+
readonly modes?: $ReadOnlyArray<"ppr" | "ssr" | "ssg" | "isr">,
|
|
115
|
+
readonly cache?: {
|
|
116
|
+
readonly actions?: boolean,
|
|
117
|
+
readonly data?: boolean,
|
|
118
|
+
readonly fetch?: boolean,
|
|
119
|
+
readonly route?: boolean,
|
|
120
120
|
},
|
|
121
121
|
},
|
|
122
122
|
},
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
123
|
+
readonly build?: {
|
|
124
|
+
readonly entries?: $ReadOnlyArray<string>,
|
|
125
|
+
readonly outDir?: string,
|
|
126
|
+
readonly staticBuild?: boolean,
|
|
127
|
+
readonly sourcemap?: boolean,
|
|
128
128
|
},
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
129
|
+
readonly dev?: {
|
|
130
|
+
readonly host?: string,
|
|
131
|
+
readonly port?: number,
|
|
132
|
+
readonly strictPort?: boolean,
|
|
133
133
|
},
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
134
|
+
readonly docs?: {
|
|
135
|
+
readonly enabled?: boolean,
|
|
136
|
+
readonly app?: string,
|
|
137
|
+
readonly source?: string,
|
|
138
|
+
readonly outDir?: string,
|
|
139
|
+
readonly staticBuild?: boolean,
|
|
140
|
+
readonly deploy?: "void",
|
|
141
141
|
},
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
142
|
+
readonly lint?: {
|
|
143
|
+
readonly engine?: "rust",
|
|
144
|
+
readonly flow?: {
|
|
145
|
+
readonly builtins?: "mixed",
|
|
146
|
+
readonly parser?: "official-flow-rust",
|
|
147
147
|
},
|
|
148
|
-
|
|
148
|
+
readonly rules?: { readonly [string]: RuleLevel },
|
|
149
149
|
},
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
150
|
+
readonly fmt?: {
|
|
151
|
+
readonly indentWidth?: number,
|
|
152
|
+
readonly lineWidth?: number,
|
|
153
|
+
readonly maxBlankLines?: number,
|
|
154
|
+
readonly flow?: {
|
|
155
|
+
readonly parser?: "official-flow-rust",
|
|
156
|
+
readonly printer?: "uf-rust",
|
|
157
157
|
},
|
|
158
|
-
|
|
159
|
-
|
|
158
|
+
readonly nonFlow?: {
|
|
159
|
+
readonly formatter?: "biome",
|
|
160
160
|
},
|
|
161
|
-
|
|
162
|
-
|
|
161
|
+
readonly quotes?: "single" | "double",
|
|
162
|
+
readonly semicolons?: boolean,
|
|
163
163
|
},
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
164
|
+
readonly package?: {
|
|
165
|
+
readonly generator?: "napi-rs",
|
|
166
|
+
readonly targets?: $ReadOnlyArray<
|
|
167
167
|
"node-napi" | "bun-napi" | "deno-napi" | "edge-wasm" | "serverless-napi",
|
|
168
168
|
>,
|
|
169
|
-
|
|
169
|
+
readonly typescriptDeclarationsToFlow?: true,
|
|
170
170
|
},
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
171
|
+
readonly pm?: {
|
|
172
|
+
readonly module?: "@uniflowed/pm",
|
|
173
|
+
readonly resolver?: "uf-native",
|
|
174
|
+
readonly lockfile?: "uf.lock",
|
|
175
|
+
readonly storeDir?: string,
|
|
176
|
+
readonly allowLifecycleScripts?: false,
|
|
177
177
|
},
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
178
|
+
readonly rm?: {
|
|
179
|
+
readonly module?: "@uniflowed/rm",
|
|
180
|
+
readonly inferFromConfig?: true,
|
|
181
|
+
readonly version?: "node@system" | string,
|
|
182
|
+
readonly autoSwitch?: boolean,
|
|
183
|
+
readonly acquisition?: "auto",
|
|
184
|
+
readonly apply?: "config-and-host",
|
|
185
|
+
readonly doctor?: boolean,
|
|
186
186
|
},
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
187
|
+
readonly server?: {
|
|
188
|
+
readonly engine?: "native-rust",
|
|
189
|
+
readonly native?: {
|
|
190
|
+
readonly streaming?: boolean,
|
|
191
|
+
readonly zeroCopyHttp?: boolean,
|
|
192
|
+
readonly adapters?: $ReadOnlyArray<
|
|
193
193
|
"uf" | "node" | "bun" | "deno" | "edge" | "serverless" | "container",
|
|
194
194
|
>,
|
|
195
195
|
},
|
|
196
196
|
},
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
197
|
+
readonly std?: {
|
|
198
|
+
readonly module?: "@uniflowed/std",
|
|
199
|
+
readonly wintertcAligned?: true,
|
|
200
|
+
readonly nativeBindings?: boolean,
|
|
201
|
+
readonly modules?: $ReadOnlyArray<
|
|
202
202
|
| "vfs"
|
|
203
203
|
| "fs"
|
|
204
204
|
| "types"
|
|
@@ -245,58 +245,58 @@ export type UniflowedConfig = {
|
|
|
245
245
|
| "defer",
|
|
246
246
|
>,
|
|
247
247
|
},
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
248
|
+
readonly publish?: {
|
|
249
|
+
readonly registry?: string,
|
|
250
|
+
readonly dryRun?: boolean,
|
|
251
|
+
readonly firstPublish?: {
|
|
252
|
+
readonly mode?: "local",
|
|
253
|
+
readonly localBootstrap?: true,
|
|
254
254
|
},
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
255
|
+
readonly trustedPublish?: {
|
|
256
|
+
readonly enabled?: true,
|
|
257
|
+
readonly provider?: "github-actions-oidc",
|
|
258
|
+
readonly tokenless?: true,
|
|
259
|
+
readonly trigger?: "tag-push",
|
|
260
260
|
},
|
|
261
261
|
},
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
262
|
+
readonly release?: {
|
|
263
|
+
readonly tagPrefix?: "uf@",
|
|
264
|
+
readonly command?: "uf release alpha" | string,
|
|
265
|
+
readonly publish?: true,
|
|
266
266
|
},
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
267
|
+
readonly story?: {
|
|
268
|
+
readonly enabled?: boolean,
|
|
269
|
+
readonly module?: "@uniflowed/story",
|
|
270
|
+
readonly mocks?: {
|
|
271
|
+
readonly module?: "@uniflowed/mock",
|
|
272
|
+
readonly mswCompatible?: boolean,
|
|
273
273
|
},
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
274
|
+
readonly browser?: {
|
|
275
|
+
readonly module?: "@uniflowed/browser",
|
|
276
|
+
readonly playwrightCompatible?: boolean,
|
|
277
277
|
},
|
|
278
278
|
},
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
279
|
+
readonly taskRunner?: {
|
|
280
|
+
readonly engine?: "vite-task",
|
|
281
|
+
readonly allowPackageScripts?: false,
|
|
282
282
|
},
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
283
|
+
readonly test?: {
|
|
284
|
+
readonly module?: "@uniflowed/test",
|
|
285
|
+
readonly runner?: {
|
|
286
|
+
readonly runtime?: "capability-js-host" | "uf-self-hosted",
|
|
287
|
+
readonly jsHosts?: $ReadOnlyArray<CapabilityJsHost>,
|
|
288
|
+
readonly scheduler?: "native-work-stealing",
|
|
289
|
+
readonly performanceTarget?: "faster-than-bun",
|
|
290
|
+
readonly officialFlowParser?: true,
|
|
291
291
|
},
|
|
292
|
-
|
|
292
|
+
readonly reactTestingLibraryNative?: true,
|
|
293
293
|
},
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
294
|
+
readonly tasks?: { readonly [string]: TaskDefinition },
|
|
295
|
+
readonly vrt?: {
|
|
296
|
+
readonly enabled?: boolean,
|
|
297
|
+
readonly module?: "@uniflowed/vrt",
|
|
298
|
+
readonly baselines?: string,
|
|
299
|
+
readonly threshold?: number,
|
|
300
300
|
},
|
|
301
301
|
};
|
|
302
302
|
|