tailwindcss-patch 8.7.1 → 8.7.3
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/README.md +38 -36
- package/dist/{chunk-OK2PBYIA.mjs → chunk-3T6WSV7F.mjs} +1464 -1320
- package/dist/chunk-7JAOSSRO.js +7 -0
- package/dist/{chunk-K3NZYVML.js → chunk-EFYAZO6C.js} +1496 -1356
- package/dist/chunk-JHEI2MLC.mjs +10 -0
- package/dist/cli.js +5 -4
- package/dist/cli.mjs +2 -1
- package/dist/dist-EMUBVNNO.mjs +269 -0
- package/dist/dist-NW65QXLC.js +269 -0
- package/dist/index.d.mts +61 -44
- package/dist/index.d.ts +61 -44
- package/dist/index.js +3 -2
- package/dist/index.mjs +2 -1
- package/package.json +6 -6
package/dist/index.d.mts
CHANGED
|
@@ -2,7 +2,7 @@ import { SourceEntry } from '@tailwindcss/oxide';
|
|
|
2
2
|
import postcss, { Rule, Node } from 'postcss';
|
|
3
3
|
import { Config } from 'tailwindcss';
|
|
4
4
|
import { PackageResolvingOptions, PackageInfo } from 'local-pkg';
|
|
5
|
-
import { TailwindLocatorOptions, TailwindNextOptions
|
|
5
|
+
import { TailwindLocatorOptions, TailwindNextOptions } from '@tailwindcss-mangle/config';
|
|
6
6
|
export { defineConfig } from '@tailwindcss-mangle/config';
|
|
7
7
|
import { Command, CAC } from 'cac';
|
|
8
8
|
import * as consola from 'consola';
|
|
@@ -486,6 +486,20 @@ interface LegacyTailwindcssPatcherOptions {
|
|
|
486
486
|
patch?: LegacyPatchOptions;
|
|
487
487
|
}
|
|
488
488
|
|
|
489
|
+
declare function normalizeOptions(options?: TailwindcssPatchOptions): NormalizedTailwindcssPatchOptions;
|
|
490
|
+
|
|
491
|
+
interface TailwindcssConfigModule {
|
|
492
|
+
CONFIG_NAME: string;
|
|
493
|
+
getConfig: (cwd?: string) => Promise<{
|
|
494
|
+
config?: {
|
|
495
|
+
registry?: unknown;
|
|
496
|
+
patch?: LegacyTailwindcssPatcherOptions['patch'];
|
|
497
|
+
};
|
|
498
|
+
}>;
|
|
499
|
+
initConfig: (cwd: string) => Promise<unknown>;
|
|
500
|
+
}
|
|
501
|
+
type TailwindcssConfigResult = Awaited<ReturnType<TailwindcssConfigModule['getConfig']>>;
|
|
502
|
+
|
|
489
503
|
interface ExtractValidCandidatesOption {
|
|
490
504
|
sources?: SourceEntry[];
|
|
491
505
|
base?: string;
|
|
@@ -590,8 +604,11 @@ declare class CacheStore {
|
|
|
590
604
|
readIndexSnapshot(): CacheIndexFileV2 | undefined;
|
|
591
605
|
}
|
|
592
606
|
|
|
607
|
+
declare const logger: consola.ConsolaInstance;
|
|
608
|
+
|
|
593
609
|
declare const MIGRATION_REPORT_KIND = "tw-patch-migrate-report";
|
|
594
610
|
declare const MIGRATION_REPORT_SCHEMA_VERSION = 1;
|
|
611
|
+
|
|
595
612
|
interface ConfigFileMigrationEntry {
|
|
596
613
|
file: string;
|
|
597
614
|
changed: boolean;
|
|
@@ -651,43 +668,12 @@ interface RestoreConfigFilesResult {
|
|
|
651
668
|
skippedEntries: number;
|
|
652
669
|
restored: string[];
|
|
653
670
|
}
|
|
654
|
-
declare function migrateConfigFiles(options: MigrateConfigFilesOptions): Promise<ConfigFileMigrationReport>;
|
|
655
|
-
declare function restoreConfigFiles(options: RestoreConfigFilesOptions): Promise<RestoreConfigFilesResult>;
|
|
656
671
|
|
|
657
|
-
|
|
672
|
+
type TokenOutputFormat = 'json' | 'lines' | 'grouped-json';
|
|
673
|
+
type TokenGroupKey = 'relative' | 'absolute';
|
|
658
674
|
|
|
659
675
|
type TailwindcssPatchCommand = 'install' | 'extract' | 'tokens' | 'init' | 'migrate' | 'restore' | 'validate' | 'status';
|
|
660
676
|
declare const tailwindcssPatchCommands: TailwindcssPatchCommand[];
|
|
661
|
-
declare const VALIDATE_EXIT_CODES: {
|
|
662
|
-
readonly OK: 0;
|
|
663
|
-
readonly REPORT_INCOMPATIBLE: 21;
|
|
664
|
-
readonly MISSING_BACKUPS: 22;
|
|
665
|
-
readonly IO_ERROR: 23;
|
|
666
|
-
readonly UNKNOWN_ERROR: 24;
|
|
667
|
-
};
|
|
668
|
-
declare const VALIDATE_FAILURE_REASONS: readonly ["report-incompatible", "missing-backups", "io-error", "unknown-error"];
|
|
669
|
-
type ValidateFailureReason = (typeof VALIDATE_FAILURE_REASONS)[number];
|
|
670
|
-
interface ValidateFailureSummary {
|
|
671
|
-
reason: ValidateFailureReason;
|
|
672
|
-
exitCode: number;
|
|
673
|
-
message: string;
|
|
674
|
-
}
|
|
675
|
-
interface ValidateJsonSuccessPayload extends RestoreConfigFilesResult {
|
|
676
|
-
ok: true;
|
|
677
|
-
}
|
|
678
|
-
interface ValidateJsonFailurePayload {
|
|
679
|
-
ok: false;
|
|
680
|
-
reason: ValidateFailureReason;
|
|
681
|
-
exitCode: number;
|
|
682
|
-
message: string;
|
|
683
|
-
}
|
|
684
|
-
declare class ValidateCommandError extends Error {
|
|
685
|
-
reason: ValidateFailureReason;
|
|
686
|
-
exitCode: number;
|
|
687
|
-
constructor(summary: ValidateFailureSummary, options?: ErrorOptions);
|
|
688
|
-
}
|
|
689
|
-
type TokenOutputFormat = 'json' | 'lines' | 'grouped-json';
|
|
690
|
-
type TokenGroupKey = 'relative' | 'absolute';
|
|
691
677
|
type CacOptionConfig = Parameters<Command['option']>[2];
|
|
692
678
|
interface TailwindcssPatchCommandOptionDefinition {
|
|
693
679
|
flags: string;
|
|
@@ -773,7 +759,7 @@ interface TailwindcssPatchCommandContext<TCommand extends TailwindcssPatchComman
|
|
|
773
759
|
args: TailwindcssPatchCommandArgMap[TCommand];
|
|
774
760
|
cwd: string;
|
|
775
761
|
logger: typeof logger;
|
|
776
|
-
loadConfig: () =>
|
|
762
|
+
loadConfig: () => Promise<TailwindcssConfigResult>;
|
|
777
763
|
loadPatchOptions: (overrides?: TailwindcssPatchOptions) => Promise<TailwindcssPatchOptions>;
|
|
778
764
|
createPatcher: (overrides?: TailwindcssPatchOptions) => Promise<TailwindcssPatcher>;
|
|
779
765
|
}
|
|
@@ -791,17 +777,41 @@ interface TailwindcssPatchCliOptions {
|
|
|
791
777
|
name?: string;
|
|
792
778
|
mountOptions?: TailwindcssPatchCliMountOptions;
|
|
793
779
|
}
|
|
780
|
+
|
|
781
|
+
declare const VALIDATE_EXIT_CODES: {
|
|
782
|
+
readonly OK: 0;
|
|
783
|
+
readonly REPORT_INCOMPATIBLE: 21;
|
|
784
|
+
readonly MISSING_BACKUPS: 22;
|
|
785
|
+
readonly IO_ERROR: 23;
|
|
786
|
+
readonly UNKNOWN_ERROR: 24;
|
|
787
|
+
};
|
|
788
|
+
declare const VALIDATE_FAILURE_REASONS: readonly ["report-incompatible", "missing-backups", "io-error", "unknown-error"];
|
|
789
|
+
type ValidateFailureReason = (typeof VALIDATE_FAILURE_REASONS)[number];
|
|
790
|
+
interface ValidateFailureSummary {
|
|
791
|
+
reason: ValidateFailureReason;
|
|
792
|
+
exitCode: number;
|
|
793
|
+
message: string;
|
|
794
|
+
}
|
|
795
|
+
interface ValidateJsonSuccessPayload extends RestoreConfigFilesResult {
|
|
796
|
+
ok: true;
|
|
797
|
+
}
|
|
798
|
+
interface ValidateJsonFailurePayload {
|
|
799
|
+
ok: false;
|
|
800
|
+
reason: ValidateFailureReason;
|
|
801
|
+
exitCode: number;
|
|
802
|
+
message: string;
|
|
803
|
+
}
|
|
804
|
+
declare class ValidateCommandError extends Error {
|
|
805
|
+
reason: ValidateFailureReason;
|
|
806
|
+
exitCode: number;
|
|
807
|
+
constructor(summary: ValidateFailureSummary, options?: ErrorOptions);
|
|
808
|
+
}
|
|
809
|
+
|
|
794
810
|
declare function mountTailwindcssPatchCommands(cli: CAC, options?: TailwindcssPatchCliMountOptions): CAC;
|
|
795
811
|
declare function createTailwindcssPatchCli(options?: TailwindcssPatchCliOptions): CAC;
|
|
796
812
|
|
|
797
|
-
declare function
|
|
798
|
-
|
|
799
|
-
interface PatchStatusContext {
|
|
800
|
-
packageInfo: PackageInfo;
|
|
801
|
-
options: NormalizedTailwindcssPatchOptions;
|
|
802
|
-
majorVersion: 2 | 3 | 4;
|
|
803
|
-
}
|
|
804
|
-
declare function getPatchStatusReport(context: PatchStatusContext): PatchStatusReport;
|
|
813
|
+
declare function migrateConfigFiles(options: MigrateConfigFilesOptions): Promise<ConfigFileMigrationReport>;
|
|
814
|
+
declare function restoreConfigFiles(options: RestoreConfigFilesOptions): Promise<RestoreConfigFilesResult>;
|
|
805
815
|
|
|
806
816
|
declare function collectClassesFromContexts(contexts: TailwindcssRuntimeContext[], filter: (className: string) => boolean): Set<string>;
|
|
807
817
|
declare function collectClassesFromTailwindV4(options: NormalizedTailwindcssPatchOptions): Promise<Set<string>>;
|
|
@@ -816,4 +826,11 @@ interface TailwindBuildOptions {
|
|
|
816
826
|
}
|
|
817
827
|
declare function runTailwindBuild(options: TailwindBuildOptions): Promise<postcss.Result<postcss.Root>>;
|
|
818
828
|
|
|
819
|
-
|
|
829
|
+
interface PatchStatusContext {
|
|
830
|
+
packageInfo: PackageInfo;
|
|
831
|
+
options: NormalizedTailwindcssPatchOptions;
|
|
832
|
+
majorVersion: 2 | 3 | 4;
|
|
833
|
+
}
|
|
834
|
+
declare function getPatchStatusReport(context: PatchStatusContext): PatchStatusReport;
|
|
835
|
+
|
|
836
|
+
export { type CacheClearOptions, type CacheClearResult, type CacheClearScope, type CacheContextMetadata, type CacheReadMeta, CacheStore, type CacheStrategy, type ConfigFileMigrationEntry, type ConfigFileMigrationReport, type ExtractResult, type ILengthUnitsPatchOptions, type LegacyTailwindcssPatcherOptions, MIGRATION_REPORT_KIND, MIGRATION_REPORT_SCHEMA_VERSION, type MigrateConfigFilesOptions, type NormalizedTailwindcssPatchOptions, type PatchCheckStatus, type PatchName, type PatchStatusEntry, type PatchStatusReport, type RestoreConfigFilesOptions, type RestoreConfigFilesResult, type TailwindPatchRuntime, type TailwindTokenByFileMap, type TailwindTokenFileKey, type TailwindTokenLocation, type TailwindTokenReport, type TailwindcssClassCache, type TailwindcssPatchCliMountOptions, type TailwindcssPatchCliOptions, type TailwindcssPatchCommand, type TailwindcssPatchCommandContext, type TailwindcssPatchCommandHandler, type TailwindcssPatchCommandHandlerMap, type TailwindcssPatchCommandOptionDefinition, type TailwindcssPatchCommandOptions, type TailwindcssPatchOptions, TailwindcssPatcher, type TailwindcssRuntimeContext, VALIDATE_EXIT_CODES, VALIDATE_FAILURE_REASONS, ValidateCommandError, type ValidateFailureReason, type ValidateFailureSummary, type ValidateJsonFailurePayload, type ValidateJsonSuccessPayload, collectClassesFromContexts, collectClassesFromTailwindV4, createTailwindcssPatchCli, extractProjectCandidatesWithPositions, extractRawCandidates, extractRawCandidatesWithPositions, extractValidCandidates, getPatchStatusReport, groupTokensByFile, loadRuntimeContexts, logger, migrateConfigFiles, mountTailwindcssPatchCommands, normalizeOptions, restoreConfigFiles, runTailwindBuild, tailwindcssPatchCommands };
|
package/dist/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { SourceEntry } from '@tailwindcss/oxide';
|
|
|
2
2
|
import postcss, { Rule, Node } from 'postcss';
|
|
3
3
|
import { Config } from 'tailwindcss';
|
|
4
4
|
import { PackageResolvingOptions, PackageInfo } from 'local-pkg';
|
|
5
|
-
import { TailwindLocatorOptions, TailwindNextOptions
|
|
5
|
+
import { TailwindLocatorOptions, TailwindNextOptions } from '@tailwindcss-mangle/config';
|
|
6
6
|
export { defineConfig } from '@tailwindcss-mangle/config';
|
|
7
7
|
import { Command, CAC } from 'cac';
|
|
8
8
|
import * as consola from 'consola';
|
|
@@ -486,6 +486,20 @@ interface LegacyTailwindcssPatcherOptions {
|
|
|
486
486
|
patch?: LegacyPatchOptions;
|
|
487
487
|
}
|
|
488
488
|
|
|
489
|
+
declare function normalizeOptions(options?: TailwindcssPatchOptions): NormalizedTailwindcssPatchOptions;
|
|
490
|
+
|
|
491
|
+
interface TailwindcssConfigModule {
|
|
492
|
+
CONFIG_NAME: string;
|
|
493
|
+
getConfig: (cwd?: string) => Promise<{
|
|
494
|
+
config?: {
|
|
495
|
+
registry?: unknown;
|
|
496
|
+
patch?: LegacyTailwindcssPatcherOptions['patch'];
|
|
497
|
+
};
|
|
498
|
+
}>;
|
|
499
|
+
initConfig: (cwd: string) => Promise<unknown>;
|
|
500
|
+
}
|
|
501
|
+
type TailwindcssConfigResult = Awaited<ReturnType<TailwindcssConfigModule['getConfig']>>;
|
|
502
|
+
|
|
489
503
|
interface ExtractValidCandidatesOption {
|
|
490
504
|
sources?: SourceEntry[];
|
|
491
505
|
base?: string;
|
|
@@ -590,8 +604,11 @@ declare class CacheStore {
|
|
|
590
604
|
readIndexSnapshot(): CacheIndexFileV2 | undefined;
|
|
591
605
|
}
|
|
592
606
|
|
|
607
|
+
declare const logger: consola.ConsolaInstance;
|
|
608
|
+
|
|
593
609
|
declare const MIGRATION_REPORT_KIND = "tw-patch-migrate-report";
|
|
594
610
|
declare const MIGRATION_REPORT_SCHEMA_VERSION = 1;
|
|
611
|
+
|
|
595
612
|
interface ConfigFileMigrationEntry {
|
|
596
613
|
file: string;
|
|
597
614
|
changed: boolean;
|
|
@@ -651,43 +668,12 @@ interface RestoreConfigFilesResult {
|
|
|
651
668
|
skippedEntries: number;
|
|
652
669
|
restored: string[];
|
|
653
670
|
}
|
|
654
|
-
declare function migrateConfigFiles(options: MigrateConfigFilesOptions): Promise<ConfigFileMigrationReport>;
|
|
655
|
-
declare function restoreConfigFiles(options: RestoreConfigFilesOptions): Promise<RestoreConfigFilesResult>;
|
|
656
671
|
|
|
657
|
-
|
|
672
|
+
type TokenOutputFormat = 'json' | 'lines' | 'grouped-json';
|
|
673
|
+
type TokenGroupKey = 'relative' | 'absolute';
|
|
658
674
|
|
|
659
675
|
type TailwindcssPatchCommand = 'install' | 'extract' | 'tokens' | 'init' | 'migrate' | 'restore' | 'validate' | 'status';
|
|
660
676
|
declare const tailwindcssPatchCommands: TailwindcssPatchCommand[];
|
|
661
|
-
declare const VALIDATE_EXIT_CODES: {
|
|
662
|
-
readonly OK: 0;
|
|
663
|
-
readonly REPORT_INCOMPATIBLE: 21;
|
|
664
|
-
readonly MISSING_BACKUPS: 22;
|
|
665
|
-
readonly IO_ERROR: 23;
|
|
666
|
-
readonly UNKNOWN_ERROR: 24;
|
|
667
|
-
};
|
|
668
|
-
declare const VALIDATE_FAILURE_REASONS: readonly ["report-incompatible", "missing-backups", "io-error", "unknown-error"];
|
|
669
|
-
type ValidateFailureReason = (typeof VALIDATE_FAILURE_REASONS)[number];
|
|
670
|
-
interface ValidateFailureSummary {
|
|
671
|
-
reason: ValidateFailureReason;
|
|
672
|
-
exitCode: number;
|
|
673
|
-
message: string;
|
|
674
|
-
}
|
|
675
|
-
interface ValidateJsonSuccessPayload extends RestoreConfigFilesResult {
|
|
676
|
-
ok: true;
|
|
677
|
-
}
|
|
678
|
-
interface ValidateJsonFailurePayload {
|
|
679
|
-
ok: false;
|
|
680
|
-
reason: ValidateFailureReason;
|
|
681
|
-
exitCode: number;
|
|
682
|
-
message: string;
|
|
683
|
-
}
|
|
684
|
-
declare class ValidateCommandError extends Error {
|
|
685
|
-
reason: ValidateFailureReason;
|
|
686
|
-
exitCode: number;
|
|
687
|
-
constructor(summary: ValidateFailureSummary, options?: ErrorOptions);
|
|
688
|
-
}
|
|
689
|
-
type TokenOutputFormat = 'json' | 'lines' | 'grouped-json';
|
|
690
|
-
type TokenGroupKey = 'relative' | 'absolute';
|
|
691
677
|
type CacOptionConfig = Parameters<Command['option']>[2];
|
|
692
678
|
interface TailwindcssPatchCommandOptionDefinition {
|
|
693
679
|
flags: string;
|
|
@@ -773,7 +759,7 @@ interface TailwindcssPatchCommandContext<TCommand extends TailwindcssPatchComman
|
|
|
773
759
|
args: TailwindcssPatchCommandArgMap[TCommand];
|
|
774
760
|
cwd: string;
|
|
775
761
|
logger: typeof logger;
|
|
776
|
-
loadConfig: () =>
|
|
762
|
+
loadConfig: () => Promise<TailwindcssConfigResult>;
|
|
777
763
|
loadPatchOptions: (overrides?: TailwindcssPatchOptions) => Promise<TailwindcssPatchOptions>;
|
|
778
764
|
createPatcher: (overrides?: TailwindcssPatchOptions) => Promise<TailwindcssPatcher>;
|
|
779
765
|
}
|
|
@@ -791,17 +777,41 @@ interface TailwindcssPatchCliOptions {
|
|
|
791
777
|
name?: string;
|
|
792
778
|
mountOptions?: TailwindcssPatchCliMountOptions;
|
|
793
779
|
}
|
|
780
|
+
|
|
781
|
+
declare const VALIDATE_EXIT_CODES: {
|
|
782
|
+
readonly OK: 0;
|
|
783
|
+
readonly REPORT_INCOMPATIBLE: 21;
|
|
784
|
+
readonly MISSING_BACKUPS: 22;
|
|
785
|
+
readonly IO_ERROR: 23;
|
|
786
|
+
readonly UNKNOWN_ERROR: 24;
|
|
787
|
+
};
|
|
788
|
+
declare const VALIDATE_FAILURE_REASONS: readonly ["report-incompatible", "missing-backups", "io-error", "unknown-error"];
|
|
789
|
+
type ValidateFailureReason = (typeof VALIDATE_FAILURE_REASONS)[number];
|
|
790
|
+
interface ValidateFailureSummary {
|
|
791
|
+
reason: ValidateFailureReason;
|
|
792
|
+
exitCode: number;
|
|
793
|
+
message: string;
|
|
794
|
+
}
|
|
795
|
+
interface ValidateJsonSuccessPayload extends RestoreConfigFilesResult {
|
|
796
|
+
ok: true;
|
|
797
|
+
}
|
|
798
|
+
interface ValidateJsonFailurePayload {
|
|
799
|
+
ok: false;
|
|
800
|
+
reason: ValidateFailureReason;
|
|
801
|
+
exitCode: number;
|
|
802
|
+
message: string;
|
|
803
|
+
}
|
|
804
|
+
declare class ValidateCommandError extends Error {
|
|
805
|
+
reason: ValidateFailureReason;
|
|
806
|
+
exitCode: number;
|
|
807
|
+
constructor(summary: ValidateFailureSummary, options?: ErrorOptions);
|
|
808
|
+
}
|
|
809
|
+
|
|
794
810
|
declare function mountTailwindcssPatchCommands(cli: CAC, options?: TailwindcssPatchCliMountOptions): CAC;
|
|
795
811
|
declare function createTailwindcssPatchCli(options?: TailwindcssPatchCliOptions): CAC;
|
|
796
812
|
|
|
797
|
-
declare function
|
|
798
|
-
|
|
799
|
-
interface PatchStatusContext {
|
|
800
|
-
packageInfo: PackageInfo;
|
|
801
|
-
options: NormalizedTailwindcssPatchOptions;
|
|
802
|
-
majorVersion: 2 | 3 | 4;
|
|
803
|
-
}
|
|
804
|
-
declare function getPatchStatusReport(context: PatchStatusContext): PatchStatusReport;
|
|
813
|
+
declare function migrateConfigFiles(options: MigrateConfigFilesOptions): Promise<ConfigFileMigrationReport>;
|
|
814
|
+
declare function restoreConfigFiles(options: RestoreConfigFilesOptions): Promise<RestoreConfigFilesResult>;
|
|
805
815
|
|
|
806
816
|
declare function collectClassesFromContexts(contexts: TailwindcssRuntimeContext[], filter: (className: string) => boolean): Set<string>;
|
|
807
817
|
declare function collectClassesFromTailwindV4(options: NormalizedTailwindcssPatchOptions): Promise<Set<string>>;
|
|
@@ -816,4 +826,11 @@ interface TailwindBuildOptions {
|
|
|
816
826
|
}
|
|
817
827
|
declare function runTailwindBuild(options: TailwindBuildOptions): Promise<postcss.Result<postcss.Root>>;
|
|
818
828
|
|
|
819
|
-
|
|
829
|
+
interface PatchStatusContext {
|
|
830
|
+
packageInfo: PackageInfo;
|
|
831
|
+
options: NormalizedTailwindcssPatchOptions;
|
|
832
|
+
majorVersion: 2 | 3 | 4;
|
|
833
|
+
}
|
|
834
|
+
declare function getPatchStatusReport(context: PatchStatusContext): PatchStatusReport;
|
|
835
|
+
|
|
836
|
+
export { type CacheClearOptions, type CacheClearResult, type CacheClearScope, type CacheContextMetadata, type CacheReadMeta, CacheStore, type CacheStrategy, type ConfigFileMigrationEntry, type ConfigFileMigrationReport, type ExtractResult, type ILengthUnitsPatchOptions, type LegacyTailwindcssPatcherOptions, MIGRATION_REPORT_KIND, MIGRATION_REPORT_SCHEMA_VERSION, type MigrateConfigFilesOptions, type NormalizedTailwindcssPatchOptions, type PatchCheckStatus, type PatchName, type PatchStatusEntry, type PatchStatusReport, type RestoreConfigFilesOptions, type RestoreConfigFilesResult, type TailwindPatchRuntime, type TailwindTokenByFileMap, type TailwindTokenFileKey, type TailwindTokenLocation, type TailwindTokenReport, type TailwindcssClassCache, type TailwindcssPatchCliMountOptions, type TailwindcssPatchCliOptions, type TailwindcssPatchCommand, type TailwindcssPatchCommandContext, type TailwindcssPatchCommandHandler, type TailwindcssPatchCommandHandlerMap, type TailwindcssPatchCommandOptionDefinition, type TailwindcssPatchCommandOptions, type TailwindcssPatchOptions, TailwindcssPatcher, type TailwindcssRuntimeContext, VALIDATE_EXIT_CODES, VALIDATE_FAILURE_REASONS, ValidateCommandError, type ValidateFailureReason, type ValidateFailureSummary, type ValidateJsonFailurePayload, type ValidateJsonSuccessPayload, collectClassesFromContexts, collectClassesFromTailwindV4, createTailwindcssPatchCli, extractProjectCandidatesWithPositions, extractRawCandidates, extractRawCandidatesWithPositions, extractValidCandidates, getPatchStatusReport, groupTokensByFile, loadRuntimeContexts, logger, migrateConfigFiles, mountTailwindcssPatchCommands, normalizeOptions, restoreConfigFiles, runTailwindBuild, tailwindcssPatchCommands };
|
package/dist/index.js
CHANGED
|
@@ -23,7 +23,8 @@
|
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
|
|
26
|
-
var
|
|
26
|
+
var _chunkEFYAZO6Cjs = require('./chunk-EFYAZO6C.js');
|
|
27
|
+
require('./chunk-7JAOSSRO.js');
|
|
27
28
|
|
|
28
29
|
// src/index.ts
|
|
29
30
|
var _config = require('@tailwindcss-mangle/config');
|
|
@@ -53,4 +54,4 @@ var _config = require('@tailwindcss-mangle/config');
|
|
|
53
54
|
|
|
54
55
|
|
|
55
56
|
|
|
56
|
-
exports.CacheStore =
|
|
57
|
+
exports.CacheStore = _chunkEFYAZO6Cjs.CacheStore; exports.MIGRATION_REPORT_KIND = _chunkEFYAZO6Cjs.MIGRATION_REPORT_KIND; exports.MIGRATION_REPORT_SCHEMA_VERSION = _chunkEFYAZO6Cjs.MIGRATION_REPORT_SCHEMA_VERSION; exports.TailwindcssPatcher = _chunkEFYAZO6Cjs.TailwindcssPatcher; exports.VALIDATE_EXIT_CODES = _chunkEFYAZO6Cjs.VALIDATE_EXIT_CODES; exports.VALIDATE_FAILURE_REASONS = _chunkEFYAZO6Cjs.VALIDATE_FAILURE_REASONS; exports.ValidateCommandError = _chunkEFYAZO6Cjs.ValidateCommandError; exports.collectClassesFromContexts = _chunkEFYAZO6Cjs.collectClassesFromContexts; exports.collectClassesFromTailwindV4 = _chunkEFYAZO6Cjs.collectClassesFromTailwindV4; exports.createTailwindcssPatchCli = _chunkEFYAZO6Cjs.createTailwindcssPatchCli; exports.defineConfig = _config.defineConfig; exports.extractProjectCandidatesWithPositions = _chunkEFYAZO6Cjs.extractProjectCandidatesWithPositions; exports.extractRawCandidates = _chunkEFYAZO6Cjs.extractRawCandidates; exports.extractRawCandidatesWithPositions = _chunkEFYAZO6Cjs.extractRawCandidatesWithPositions; exports.extractValidCandidates = _chunkEFYAZO6Cjs.extractValidCandidates; exports.getPatchStatusReport = _chunkEFYAZO6Cjs.getPatchStatusReport; exports.groupTokensByFile = _chunkEFYAZO6Cjs.groupTokensByFile; exports.loadRuntimeContexts = _chunkEFYAZO6Cjs.loadRuntimeContexts; exports.logger = _chunkEFYAZO6Cjs.logger_default; exports.migrateConfigFiles = _chunkEFYAZO6Cjs.migrateConfigFiles; exports.mountTailwindcssPatchCommands = _chunkEFYAZO6Cjs.mountTailwindcssPatchCommands; exports.normalizeOptions = _chunkEFYAZO6Cjs.normalizeOptions; exports.restoreConfigFiles = _chunkEFYAZO6Cjs.restoreConfigFiles; exports.runTailwindBuild = _chunkEFYAZO6Cjs.runTailwindBuild; exports.tailwindcssPatchCommands = _chunkEFYAZO6Cjs.tailwindcssPatchCommands;
|
package/dist/index.mjs
CHANGED
|
@@ -23,7 +23,8 @@ import {
|
|
|
23
23
|
restoreConfigFiles,
|
|
24
24
|
runTailwindBuild,
|
|
25
25
|
tailwindcssPatchCommands
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-3T6WSV7F.mjs";
|
|
27
|
+
import "./chunk-JHEI2MLC.mjs";
|
|
27
28
|
|
|
28
29
|
// src/index.ts
|
|
29
30
|
import { defineConfig } from "@tailwindcss-mangle/config";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tailwindcss-patch",
|
|
3
|
-
"version": "8.7.
|
|
3
|
+
"version": "8.7.3",
|
|
4
4
|
"description": "patch tailwindcss for exposing context and extract classes",
|
|
5
5
|
"author": "ice breaker <1324318532@qq.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
"@babel/parser": "^7.29.0",
|
|
59
59
|
"@babel/traverse": "^7.29.0",
|
|
60
60
|
"@babel/types": "^7.29.0",
|
|
61
|
-
"@tailwindcss/node": "^4.2.
|
|
61
|
+
"@tailwindcss/node": "^4.2.1",
|
|
62
62
|
"cac": "^6.7.14",
|
|
63
63
|
"consola": "^3.4.2",
|
|
64
64
|
"fs-extra": "^11.3.3",
|
|
@@ -67,12 +67,12 @@
|
|
|
67
67
|
"postcss": "^8.5.6",
|
|
68
68
|
"semver": "^7.7.4",
|
|
69
69
|
"tailwindcss-config": "^1.1.4",
|
|
70
|
-
"@tailwindcss-mangle/config": "6.1.
|
|
70
|
+
"@tailwindcss-mangle/config": "6.1.3"
|
|
71
71
|
},
|
|
72
72
|
"devDependencies": {
|
|
73
|
-
"@tailwindcss/oxide": "^4.2.
|
|
74
|
-
"@tailwindcss/postcss": "^4.2.
|
|
75
|
-
"@tailwindcss/vite": "^4.2.
|
|
73
|
+
"@tailwindcss/oxide": "^4.2.1",
|
|
74
|
+
"@tailwindcss/postcss": "^4.2.1",
|
|
75
|
+
"@tailwindcss/vite": "^4.2.1",
|
|
76
76
|
"tailwindcss": "^4.1.18",
|
|
77
77
|
"tailwindcss-3": "npm:tailwindcss@^3.4.19",
|
|
78
78
|
"tailwindcss-4": "npm:tailwindcss@^4.1.18"
|