tailwindcss-patch 9.5.0 → 10.0.0

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.
@@ -1,599 +0,0 @@
1
- import { CAC, Command } from "cac";
2
- import { PackageInfo, PackageResolvingOptions } from "local-pkg";
3
- import { TailwindV4CssSource, TailwindV4SourcePattern } from "@tailwindcss-mangle/engine/v4";
4
- import { ExtractResult, ExtractSourceCandidate, TailwindTokenByFileMap, TailwindTokenFileKey, TailwindTokenLocation, TailwindTokenReport, TailwindcssClassCache, TailwindcssRuntimeContext, extractProjectCandidatesWithPositions, extractRawCandidates, extractRawCandidatesWithPositions, extractSourceCandidates, extractSourceCandidatesWithPositions, extractValidCandidates, groupTokensByFile, resolveProjectSourceFiles } from "@tailwindcss-mangle/engine";
5
- //#region src/cache/types.d.ts
6
- declare const CACHE_SCHEMA_VERSION = 2;
7
- declare const CACHE_FINGERPRINT_VERSION = 1;
8
- type CacheSchemaVersion = typeof CACHE_SCHEMA_VERSION;
9
- type CacheFingerprintVersion = typeof CACHE_FINGERPRINT_VERSION;
10
- type CacheClearScope = 'current' | 'all';
11
- interface CacheContextMetadata {
12
- fingerprintVersion: CacheFingerprintVersion;
13
- projectRootRealpath: string;
14
- processCwdRealpath: string;
15
- cacheCwdRealpath: string;
16
- tailwindConfigPath?: string;
17
- tailwindConfigMtimeMs?: number;
18
- tailwindPackageRootRealpath: string;
19
- tailwindPackageVersion: string;
20
- patcherVersion: string;
21
- majorVersion: 2 | 3 | 4;
22
- optionsHash: string;
23
- }
24
- interface CacheContextDescriptor {
25
- fingerprint: string;
26
- metadata: CacheContextMetadata;
27
- }
28
- interface CacheIndexEntry {
29
- context: CacheContextMetadata;
30
- values: string[];
31
- updatedAt: string;
32
- }
33
- interface CacheIndexFileV2 {
34
- schemaVersion: CacheSchemaVersion;
35
- updatedAt: string;
36
- contexts: Record<string, CacheIndexEntry>;
37
- }
38
- type CacheReadReason = 'hit' | 'cache-disabled' | 'noop-driver' | 'file-missing' | 'context-not-found' | 'context-mismatch' | 'legacy-schema' | 'invalid-schema';
39
- interface CacheReadMeta {
40
- hit: boolean;
41
- reason: CacheReadReason;
42
- fingerprint?: string;
43
- schemaVersion?: number;
44
- details: string[];
45
- }
46
- interface CacheReadResult {
47
- data: Set<string>;
48
- meta: CacheReadMeta;
49
- }
50
- interface CacheClearOptions {
51
- scope?: CacheClearScope;
52
- }
53
- interface CacheClearResult {
54
- scope: CacheClearScope;
55
- filesRemoved: number;
56
- entriesRemoved: number;
57
- contextsRemoved: number;
58
- }
59
- //#endregion
60
- //#region src/types.d.ts
61
- interface TailwindPatchRuntime {
62
- options: NormalizedTailwindCssPatchOptions;
63
- majorVersion: 2 | 3 | 4;
64
- }
65
- interface ILengthUnitsPatchOptions {
66
- units: string[];
67
- lengthUnitsFilePath?: string;
68
- variableName?: string;
69
- overwrite?: boolean;
70
- destPath?: string;
71
- }
72
- type PatchCheckStatus = 'applied' | 'not-applied' | 'skipped' | 'unsupported';
73
- type PatchName = 'exposeContext' | 'extendLengthUnits';
74
- interface PatchStatusEntry {
75
- name: PatchName;
76
- status: PatchCheckStatus;
77
- reason?: string;
78
- files: string[];
79
- }
80
- interface PatchStatusReport {
81
- package: {
82
- name?: string;
83
- version?: string;
84
- root: string;
85
- };
86
- majorVersion: 2 | 3 | 4;
87
- entries: PatchStatusEntry[];
88
- }
89
- //#endregion
90
- //#region src/options/types.d.ts
91
- type CacheStrategy = 'merge' | 'overwrite';
92
- type CacheDriver = 'file' | 'memory' | 'noop';
93
- /**
94
- * Configures how the Tailwind class cache is stored and where it lives on disk.
95
- */
96
- interface CacheOptions {
97
- /** Whether caching is enabled. */
98
- enabled?: boolean;
99
- /** Working directory used when resolving cache paths. */
100
- cwd?: string;
101
- /** Directory where cache files are written. */
102
- dir?: string;
103
- /**
104
- * Cache filename. Defaults to `class-cache.json` inside the derived cache folder
105
- * when omitted.
106
- */
107
- file?: string;
108
- /** Strategy used when merging new class lists with an existing cache. */
109
- strategy?: CacheStrategy;
110
- /** Backend used to persist the cache (`file`, `memory`, or `noop`). Defaults to `file`. */
111
- driver?: CacheDriver;
112
- }
113
- /**
114
- * Preferred options for extraction output behavior.
115
- */
116
- interface ExtractOptions {
117
- /** Whether to produce an output file. */
118
- write?: boolean;
119
- /** Optional absolute or relative path to the output file. */
120
- file?: string;
121
- /** Output format, defaults to JSON when omitted. */
122
- format?: 'json' | 'lines';
123
- /** Pretty-print spacing (truthy value enables indentation). */
124
- pretty?: number | boolean;
125
- /** Whether to strip the universal selector (`*`) from the final list. */
126
- removeUniversalSelector?: boolean;
127
- }
128
- /**
129
- * Options controlling how Tailwind contexts are exposed during runtime patching.
130
- */
131
- interface ExposeContextOptions {
132
- /** Name of the property used to reference an exposed context. */
133
- refProperty?: string;
134
- }
135
- /**
136
- * Extends the built-in length-unit patch with custom defaults.
137
- */
138
- interface ExtendLengthUnitsOptions extends Partial<ILengthUnitsPatchOptions> {
139
- /** Enables or disables the length-unit patch. */
140
- enabled?: boolean;
141
- }
142
- /**
143
- * Preferred options for runtime patch behavior.
144
- */
145
- interface ApplyOptions {
146
- /** Whether patched files can be overwritten on disk. */
147
- overwrite?: boolean;
148
- /** Whether to expose runtime Tailwind contexts (or configure how they are exposed). */
149
- exposeContext?: boolean | ExposeContextOptions;
150
- /** Extends the length-unit patch or disables it entirely. */
151
- extendLengthUnits?: false | ExtendLengthUnitsOptions;
152
- }
153
- interface TailwindRuntimeOptionsBase {
154
- /** Path to a Tailwind config file when auto-detection is insufficient. */
155
- config?: string;
156
- /** Custom working directory used when resolving config-relative paths. */
157
- cwd?: string;
158
- /** Optional PostCSS plugin name to use instead of the default. */
159
- postcssPlugin?: string;
160
- }
161
- /**
162
- * Configuration specific to Tailwind CSS v2 patching flows.
163
- */
164
- interface TailwindV2Options extends TailwindRuntimeOptionsBase {}
165
- /**
166
- * Configuration specific to Tailwind CSS v3 patching flows.
167
- */
168
- interface TailwindV3Options extends TailwindRuntimeOptionsBase {}
169
- /**
170
- * Additional configuration specific to Tailwind CSS v4 extraction.
171
- */
172
- interface TailwindV4Options {
173
- /** Base directory used when resolving v4 content sources and configs. */
174
- base?: string;
175
- /** Raw CSS passed directly to the v4 design system. */
176
- css?: string;
177
- /** 构建器在 CSS 落盘前捕获的内存 CSS 入口。 */
178
- cssSources?: TailwindV4CssSource[];
179
- /** Set of CSS entry files that should be scanned for `@config` directives. */
180
- cssEntries?: string[];
181
- /** Overrides the content sources scanned by the oxide scanner. */
182
- sources?: TailwindV4SourcePattern[];
183
- /** Enables UnoCSS-style bare arbitrary values such as `p-10%` and `p-2.5px`. */
184
- bareArbitraryValues?: boolean | {
185
- /** Unit allow-list used when detecting bare arbitrary values. */units?: string[];
186
- } | undefined;
187
- }
188
- /**
189
- * High-level Tailwind patch configuration shared across versions.
190
- */
191
- interface TailwindCssOptions extends TailwindRuntimeOptionsBase {
192
- /** Explicit Tailwind CSS major version used by the current project. When omitted, the installed package version is inferred. */
193
- version?: 2 | 3 | 4;
194
- /** Tailwind package name if the project uses a fork. */
195
- packageName?: string;
196
- /** Package resolution options forwarded to `local-pkg`. */
197
- resolve?: PackageResolvingOptions;
198
- /** Overrides applied when patching Tailwind CSS v2. */
199
- v2?: TailwindV2Options;
200
- /** Overrides applied when patching Tailwind CSS v3. */
201
- v3?: TailwindV3Options;
202
- /** Options specific to Tailwind CSS v4 patching. */
203
- v4?: TailwindV4Options;
204
- }
205
- /**
206
- * Root configuration consumed by the Tailwind CSS patch runner.
207
- */
208
- interface TailwindCssPatchOptions {
209
- /**
210
- * Base directory used when resolving Tailwind resources.
211
- * Defaults to `process.cwd()`.
212
- */
213
- projectRoot?: string;
214
- /** Preferred Tailwind runtime configuration. */
215
- tailwindcss?: TailwindCssOptions;
216
- /** Preferred patch toggles. */
217
- apply?: ApplyOptions;
218
- /** Preferred extraction output settings. */
219
- extract?: ExtractOptions;
220
- /** Optional function that filters final class names. */
221
- filter?: (className: string) => boolean;
222
- /** Cache configuration or boolean to enable/disable quickly. */
223
- cache?: boolean | CacheOptions;
224
- }
225
- /**
226
- * Stable shape for output configuration after normalization.
227
- */
228
- interface NormalizedOutputOptions {
229
- enabled: boolean;
230
- file?: string;
231
- format: 'json' | 'lines';
232
- pretty: number | false;
233
- removeUniversalSelector: boolean;
234
- }
235
- /**
236
- * Stable cache configuration used internally after defaults are applied.
237
- */
238
- interface NormalizedCacheOptions {
239
- enabled: boolean;
240
- cwd: string;
241
- dir: string;
242
- file: string;
243
- path: string;
244
- strategy: CacheStrategy;
245
- driver: CacheDriver;
246
- }
247
- /** Tracks whether runtime contexts should be exposed and via which property. */
248
- interface NormalizedExposeContextOptions {
249
- enabled: boolean;
250
- refProperty: string;
251
- }
252
- /** Normalized representation of the extend-length-units feature flag. */
253
- interface NormalizedExtendLengthUnitsOptions extends ILengthUnitsPatchOptions {
254
- enabled: boolean;
255
- }
256
- /** Normalized Tailwind v4 configuration consumed by runtime helpers. */
257
- interface NormalizedTailwindV4Options {
258
- base: string;
259
- configuredBase?: string;
260
- css?: string;
261
- cssSources: TailwindV4CssSource[];
262
- cssEntries: string[];
263
- sources: TailwindV4SourcePattern[];
264
- hasUserDefinedSources: boolean;
265
- bareArbitraryValues: false | {
266
- units?: string[];
267
- } | undefined;
268
- }
269
- /**
270
- * Tailwind configuration ready for consumption by the runtime after normalization.
271
- */
272
- interface NormalizedTailwindConfigOptions extends TailwindRuntimeOptionsBase {
273
- packageName: string;
274
- versionHint?: 2 | 3 | 4;
275
- resolve?: PackageResolvingOptions;
276
- v2?: TailwindV2Options;
277
- v3?: TailwindV3Options;
278
- v4?: NormalizedTailwindV4Options;
279
- }
280
- /** Grouped normalized feature flags. */
281
- interface NormalizedFeatureOptions {
282
- exposeContext: NormalizedExposeContextOptions;
283
- extendLengthUnits: NormalizedExtendLengthUnitsOptions | null;
284
- }
285
- /** Final normalized shape consumed throughout the patch runtime. */
286
- interface NormalizedTailwindCssPatchOptions {
287
- projectRoot: string;
288
- overwrite: boolean;
289
- tailwind: NormalizedTailwindConfigOptions;
290
- features: NormalizedFeatureOptions;
291
- output: NormalizedOutputOptions;
292
- cache: NormalizedCacheOptions;
293
- filter: (className: string) => boolean;
294
- }
295
- //#endregion
296
- //#region src/patching/operations/export-context/index.d.ts
297
- interface ExposeContextPatchParams {
298
- rootDir: string;
299
- refProperty: string;
300
- overwrite: boolean;
301
- majorVersion: 2 | 3;
302
- }
303
- interface ExposeContextPatchResult {
304
- applied: boolean;
305
- files: Record<string, string>;
306
- }
307
- declare function applyExposeContextPatch(params: ExposeContextPatchParams): ExposeContextPatchResult;
308
- //#endregion
309
- //#region src/patching/operations/extend-length-units.d.ts
310
- declare function applyExtendLengthUnitsPatchV3(rootDir: string, options: NormalizedExtendLengthUnitsOptions): {
311
- changed: boolean;
312
- code: undefined;
313
- } | {
314
- changed: boolean;
315
- code: string;
316
- };
317
- interface V4FilePatch {
318
- file: string;
319
- code: string;
320
- hasPatched: boolean;
321
- }
322
- interface V4Candidate extends V4FilePatch {
323
- match: RegExpExecArray;
324
- }
325
- declare function applyExtendLengthUnitsPatchV4(rootDir: string, options: NormalizedExtendLengthUnitsOptions): {
326
- changed: boolean;
327
- files: V4Candidate[];
328
- };
329
- //#endregion
330
- //#region src/patching/patch-runner.d.ts
331
- interface PatchRunnerResult {
332
- exposeContext?: ReturnType<typeof applyExposeContextPatch>;
333
- extendLengthUnits?: ReturnType<typeof applyExtendLengthUnitsPatchV3> | ReturnType<typeof applyExtendLengthUnitsPatchV4>;
334
- }
335
- //#endregion
336
- //#region src/options/normalize.d.ts
337
- declare function normalizeOptions(options?: TailwindCssPatchOptions): NormalizedTailwindCssPatchOptions;
338
- //#endregion
339
- //#region src/config/workspace.d.ts
340
- interface TailwindcssConfigModule {
341
- CONFIG_NAME: string;
342
- getConfig: (cwd?: string) => Promise<{
343
- config?: {
344
- registry?: unknown;
345
- patch?: unknown;
346
- };
347
- }>;
348
- initConfig: (cwd: string) => Promise<unknown>;
349
- }
350
- type TailwindcssConfigResult = Awaited<ReturnType<TailwindcssConfigModule['getConfig']>>;
351
- //#endregion
352
- //#region src/runtime/collector.d.ts
353
- type TailwindMajorVersion = 2 | 3 | 4;
354
- //#endregion
355
- //#region src/api/tailwindcss-patcher.d.ts
356
- declare class TailwindcssPatcher {
357
- readonly options: NormalizedTailwindCssPatchOptions;
358
- readonly packageInfo: PackageInfo;
359
- readonly majorVersion: TailwindMajorVersion;
360
- private readonly cacheContext;
361
- private readonly cacheStore;
362
- private readonly collector;
363
- private patchMemo;
364
- constructor(options?: TailwindCssPatchOptions);
365
- patch(): Promise<PatchRunnerResult>;
366
- getPatchStatus(): Promise<PatchStatusReport>;
367
- getContexts(): TailwindcssRuntimeContext[];
368
- private createPatchSnapshot;
369
- private collectClassSet;
370
- private runTailwindBuildIfNeeded;
371
- private debugCacheRead;
372
- private mergeWithCache;
373
- private mergeWithCacheSync;
374
- private areSetsEqual;
375
- getClassSet(): Promise<Set<string>>;
376
- getClassSetSync(): Set<string> | undefined;
377
- extract(options?: {
378
- write?: boolean;
379
- }): Promise<ExtractResult>;
380
- clearCache(options?: CacheClearOptions): Promise<CacheClearResult>;
381
- extractValidCandidates: typeof extractValidCandidates;
382
- collectContentTokens(options?: {
383
- cwd?: string;
384
- sources?: TailwindV4SourcePattern[];
385
- }): Promise<TailwindTokenReport>;
386
- collectContentTokensByFile(options?: {
387
- cwd?: string;
388
- sources?: TailwindV4SourcePattern[];
389
- key?: TailwindTokenFileKey;
390
- stripAbsolutePaths?: boolean;
391
- }): Promise<TailwindTokenByFileMap>;
392
- }
393
- //#endregion
394
- //#region src/logger.d.ts
395
- declare const logger: import("consola").ConsolaInstance;
396
- //#endregion
397
- //#region src/commands/migration-report.d.ts
398
- declare const MIGRATION_REPORT_KIND = "tw-patch-migrate-report";
399
- declare const MIGRATION_REPORT_SCHEMA_VERSION = 1;
400
- //#endregion
401
- //#region src/commands/migration-types.d.ts
402
- interface ConfigFileMigrationEntry {
403
- file: string;
404
- changed: boolean;
405
- written: boolean;
406
- rolledBack: boolean;
407
- backupFile?: string;
408
- changes: string[];
409
- }
410
- interface ConfigFileMigrationReport {
411
- reportKind: typeof MIGRATION_REPORT_KIND;
412
- schemaVersion: typeof MIGRATION_REPORT_SCHEMA_VERSION;
413
- generatedAt: string;
414
- tool: {
415
- name: string;
416
- version: string;
417
- };
418
- cwd: string;
419
- dryRun: boolean;
420
- rollbackOnError: boolean;
421
- backupDirectory?: string;
422
- scannedFiles: number;
423
- changedFiles: number;
424
- writtenFiles: number;
425
- backupsWritten: number;
426
- unchangedFiles: number;
427
- missingFiles: number;
428
- entries: ConfigFileMigrationEntry[];
429
- }
430
- interface MigrateConfigFilesOptions {
431
- cwd: string;
432
- files?: string[];
433
- dryRun?: boolean;
434
- workspace?: boolean;
435
- maxDepth?: number;
436
- rollbackOnError?: boolean;
437
- backupDir?: string;
438
- include?: string[];
439
- exclude?: string[];
440
- }
441
- interface RestoreConfigFilesOptions {
442
- cwd: string;
443
- reportFile: string;
444
- dryRun?: boolean;
445
- strict?: boolean;
446
- }
447
- interface RestoreConfigFilesResult {
448
- cwd: string;
449
- reportFile: string;
450
- reportKind?: string;
451
- reportSchemaVersion?: number;
452
- dryRun: boolean;
453
- strict: boolean;
454
- scannedEntries: number;
455
- restorableEntries: number;
456
- restoredFiles: number;
457
- missingBackups: number;
458
- skippedEntries: number;
459
- restored: string[];
460
- }
461
- //#endregion
462
- //#region src/commands/token-output.d.ts
463
- type TokenOutputFormat = 'json' | 'lines' | 'grouped-json';
464
- type TokenGroupKey = 'relative' | 'absolute';
465
- //#endregion
466
- //#region src/commands/types.d.ts
467
- type TailwindcssPatchCommand = 'install' | 'extract' | 'tokens' | 'init' | 'migrate' | 'restore' | 'validate' | 'status';
468
- declare const tailwindcssPatchCommands: TailwindcssPatchCommand[];
469
- type CacOptionConfig = Parameters<Command['option']>[2];
470
- interface TailwindcssPatchCommandOptionDefinition {
471
- flags: string;
472
- description?: string;
473
- config?: CacOptionConfig;
474
- }
475
- interface TailwindcssPatchCommandOptions {
476
- name?: string;
477
- aliases?: string[];
478
- description?: string;
479
- optionDefs?: TailwindcssPatchCommandOptionDefinition[];
480
- appendDefaultOptions?: boolean;
481
- }
482
- interface BaseCommandArgs {
483
- cwd: string;
484
- }
485
- interface InstallCommandArgs extends BaseCommandArgs {}
486
- interface ExtractCommandArgs extends BaseCommandArgs {
487
- output?: string;
488
- format?: 'json' | 'lines';
489
- css?: string;
490
- write?: boolean;
491
- }
492
- interface TokensCommandArgs extends BaseCommandArgs {
493
- output?: string;
494
- format?: TokenOutputFormat;
495
- groupKey?: TokenGroupKey;
496
- write?: boolean;
497
- }
498
- interface InitCommandArgs extends BaseCommandArgs {}
499
- interface MigrateCommandArgs extends BaseCommandArgs {
500
- config?: string;
501
- dryRun?: boolean;
502
- workspace?: boolean;
503
- maxDepth?: string | number;
504
- include?: string | string[];
505
- exclude?: string | string[];
506
- reportFile?: string;
507
- backupDir?: string;
508
- check?: boolean;
509
- json?: boolean;
510
- }
511
- interface RestoreCommandArgs extends BaseCommandArgs {
512
- reportFile?: string;
513
- dryRun?: boolean;
514
- strict?: boolean;
515
- json?: boolean;
516
- }
517
- interface ValidateCommandArgs extends BaseCommandArgs {
518
- reportFile?: string;
519
- strict?: boolean;
520
- json?: boolean;
521
- }
522
- interface StatusCommandArgs extends BaseCommandArgs {
523
- json?: boolean;
524
- }
525
- interface TailwindcssPatchCommandArgMap {
526
- install: InstallCommandArgs;
527
- extract: ExtractCommandArgs;
528
- tokens: TokensCommandArgs;
529
- init: InitCommandArgs;
530
- migrate: MigrateCommandArgs;
531
- restore: RestoreCommandArgs;
532
- validate: ValidateCommandArgs;
533
- status: StatusCommandArgs;
534
- }
535
- interface TailwindcssPatchCommandResultMap {
536
- install: void;
537
- extract: ExtractResult;
538
- tokens: TailwindTokenReport;
539
- init: void;
540
- migrate: ConfigFileMigrationReport;
541
- restore: RestoreConfigFilesResult;
542
- validate: RestoreConfigFilesResult;
543
- status: PatchStatusReport;
544
- }
545
- interface TailwindcssPatchCommandContext<TCommand extends TailwindcssPatchCommand> {
546
- cli: CAC;
547
- command: Command;
548
- commandName: TCommand;
549
- args: TailwindcssPatchCommandArgMap[TCommand];
550
- cwd: string;
551
- logger: typeof logger;
552
- loadConfig: () => Promise<TailwindcssConfigResult>;
553
- loadPatchOptions: (overrides?: TailwindCssPatchOptions) => Promise<TailwindCssPatchOptions>;
554
- createPatcher: (overrides?: TailwindCssPatchOptions) => Promise<TailwindcssPatcher>;
555
- }
556
- type TailwindcssPatchCommandHandler<TCommand extends TailwindcssPatchCommand> = (context: TailwindcssPatchCommandContext<TCommand>, next: () => Promise<TailwindcssPatchCommandResultMap[TCommand]>) => Promise<TailwindcssPatchCommandResultMap[TCommand]> | TailwindcssPatchCommandResultMap[TCommand];
557
- type TailwindcssPatchCommandHandlerMap = Partial<{ [K in TailwindcssPatchCommand]: TailwindcssPatchCommandHandler<K> }>;
558
- interface TailwindcssPatchCliMountOptions {
559
- commandPrefix?: string;
560
- commands?: TailwindcssPatchCommand[];
561
- commandOptions?: Partial<Record<TailwindcssPatchCommand, TailwindcssPatchCommandOptions>>;
562
- commandHandlers?: TailwindcssPatchCommandHandlerMap;
563
- }
564
- interface TailwindcssPatchCliOptions {
565
- name?: string;
566
- mountOptions?: TailwindcssPatchCliMountOptions;
567
- }
568
- //#endregion
569
- //#region src/commands/validate.d.ts
570
- declare const VALIDATE_EXIT_CODES: {
571
- readonly OK: 0;
572
- readonly REPORT_INCOMPATIBLE: 21;
573
- readonly MISSING_BACKUPS: 22;
574
- readonly IO_ERROR: 23;
575
- readonly UNKNOWN_ERROR: 24;
576
- };
577
- declare const VALIDATE_FAILURE_REASONS: readonly ["report-incompatible", "missing-backups", "io-error", "unknown-error"];
578
- type ValidateFailureReason = (typeof VALIDATE_FAILURE_REASONS)[number];
579
- interface ValidateFailureSummary {
580
- reason: ValidateFailureReason;
581
- exitCode: number;
582
- message: string;
583
- }
584
- interface ValidateJsonSuccessPayload extends RestoreConfigFilesResult {
585
- ok: true;
586
- }
587
- interface ValidateJsonFailurePayload {
588
- ok: false;
589
- reason: ValidateFailureReason;
590
- exitCode: number;
591
- message: string;
592
- }
593
- declare class ValidateCommandError extends Error {
594
- reason: ValidateFailureReason;
595
- exitCode: number;
596
- constructor(summary: ValidateFailureSummary, options?: ErrorOptions);
597
- }
598
- //#endregion
599
- export { PatchStatusEntry as $, extractSourceCandidates as A, ExtendLengthUnitsOptions as B, MIGRATION_REPORT_SCHEMA_VERSION as C, extractProjectCandidatesWithPositions as D, ExtractSourceCandidate as E, normalizeOptions as F, TailwindCssPatchOptions as G, NormalizedCacheOptions as H, ApplyOptions as I, TailwindV4Options as J, TailwindV2Options as K, CacheOptions as L, extractValidCandidates as M, groupTokensByFile as N, extractRawCandidates as O, resolveProjectSourceFiles as P, PatchName as Q, CacheStrategy as R, MIGRATION_REPORT_KIND as S, TailwindcssPatcher as T, NormalizedTailwindCssPatchOptions as U, ExtractOptions as V, TailwindCssOptions as W, ILengthUnitsPatchOptions as X, ExtractResult as Y, PatchCheckStatus as Z, ConfigFileMigrationEntry as _, ValidateFailureSummary as a, TailwindTokenReport as at, RestoreConfigFilesOptions as b, TailwindcssPatchCliMountOptions as c, CacheClearOptions as ct, TailwindcssPatchCommandContext as d, CacheContextDescriptor as dt, PatchStatusReport as et, TailwindcssPatchCommandHandler as f, CacheContextMetadata as ft, tailwindcssPatchCommands as g, TailwindcssPatchCommandOptions as h, CacheReadResult as ht, ValidateFailureReason as i, TailwindTokenLocation as it, extractSourceCandidatesWithPositions as j, extractRawCandidatesWithPositions as k, TailwindcssPatchCliOptions as l, CacheClearResult as lt, TailwindcssPatchCommandOptionDefinition as m, CacheReadMeta as mt, VALIDATE_FAILURE_REASONS as n, TailwindTokenByFileMap as nt, ValidateJsonFailurePayload as o, TailwindcssClassCache as ot, TailwindcssPatchCommandHandlerMap as p, CacheIndexFileV2 as pt, TailwindV3Options as q, ValidateCommandError as r, TailwindTokenFileKey as rt, ValidateJsonSuccessPayload as s, TailwindcssRuntimeContext as st, VALIDATE_EXIT_CODES as t, TailwindPatchRuntime as tt, TailwindcssPatchCommand as u, CacheClearScope as ut, ConfigFileMigrationReport as v, logger as w, RestoreConfigFilesResult as x, MigrateConfigFilesOptions as y, ExposeContextOptions as z };