@uniflowed/config 0.0.0-alpha.12 → 0.0.0-alpha.13
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 +19 -0
- package/package.json +1 -1
package/internal/schema.js
CHANGED
|
@@ -12,6 +12,15 @@ export type TaskDefinition =
|
|
|
12
12
|
readonly cwd?: string,
|
|
13
13
|
readonly dependsOn?: $ReadOnlyArray<string>,
|
|
14
14
|
readonly env?: { readonly [string]: string },
|
|
15
|
+
// Everything the task reads, as paths or globs from the project root; a
|
|
16
|
+
// pattern beginning `!` excludes. This is the whole of the cache key, so
|
|
17
|
+
// a task that lists nothing is never cached and always runs.
|
|
18
|
+
readonly inputs?: $ReadOnlyArray<string>,
|
|
19
|
+
// Everything it writes. Checked rather than restored: a replayed result
|
|
20
|
+
// has to still have its files on disk, unchanged.
|
|
21
|
+
readonly outputs?: $ReadOnlyArray<string>,
|
|
22
|
+
// `false` keeps a task with declared inputs out of the cache.
|
|
23
|
+
readonly cache?: boolean,
|
|
15
24
|
};
|
|
16
25
|
|
|
17
26
|
export type CapabilityJsHost = "node" | "deno" | "bun";
|
|
@@ -186,6 +195,16 @@ export type UniflowedConfig = {
|
|
|
186
195
|
},
|
|
187
196
|
readonly nonFlow?: {
|
|
188
197
|
readonly formatter?: "biome" | "prettier" | "none",
|
|
198
|
+
/**
|
|
199
|
+
* Extra arguments, passed to that formatter verbatim.
|
|
200
|
+
*
|
|
201
|
+
* Strings rather than a shape, so that reaching one of biome's or
|
|
202
|
+
* prettier's own options never waits for a uf release — a Tailwind 4
|
|
203
|
+
* project writes `["--css-parse-tailwind-directives=true"]` and needs no
|
|
204
|
+
* second configuration file. An argument that would turn `uf fmt
|
|
205
|
+
* --check` into a write is refused where the config is read.
|
|
206
|
+
*/
|
|
207
|
+
readonly arguments?: $ReadOnlyArray<string>,
|
|
189
208
|
},
|
|
190
209
|
readonly quotes?: "single" | "double",
|
|
191
210
|
readonly semicolons?: boolean,
|