tailwindcss-patch 9.0.0-alpha.1 → 9.0.0-alpha.2
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 +20 -0
- package/dist/{chunk-Z6OMJZTU.js → chunk-TOAZIPHJ.js} +29 -11
- package/dist/{chunk-SWLOK2S6.mjs → chunk-VDWTCQ74.mjs} +29 -11
- package/dist/cli.js +4 -4
- package/dist/cli.mjs +1 -1
- package/dist/index.d.mts +43 -35
- package/dist/index.d.ts +43 -35
- package/dist/index.js +2 -2
- package/dist/index.mjs +1 -1
- package/package.json +8 -3
- package/src/api/tailwindcss-patcher.ts +424 -0
- package/src/babel/index.ts +12 -0
- package/src/cache/context.ts +212 -0
- package/src/cache/store.ts +1440 -0
- package/src/cache/types.ts +71 -0
- package/src/cli.ts +20 -0
- package/src/commands/basic-handlers.ts +145 -0
- package/src/commands/cli.ts +56 -0
- package/src/commands/command-context.ts +77 -0
- package/src/commands/command-definitions.ts +102 -0
- package/src/commands/command-metadata.ts +68 -0
- package/src/commands/command-registrar.ts +39 -0
- package/src/commands/command-runtime.ts +33 -0
- package/src/commands/default-handler-map.ts +25 -0
- package/src/commands/migrate-config.ts +104 -0
- package/src/commands/migrate-handler.ts +67 -0
- package/src/commands/migration-aggregation.ts +100 -0
- package/src/commands/migration-args.ts +85 -0
- package/src/commands/migration-file-executor.ts +189 -0
- package/src/commands/migration-output.ts +115 -0
- package/src/commands/migration-report-loader.ts +26 -0
- package/src/commands/migration-report.ts +21 -0
- package/src/commands/migration-source.ts +318 -0
- package/src/commands/migration-target-files.ts +161 -0
- package/src/commands/migration-target-resolver.ts +34 -0
- package/src/commands/migration-types.ts +65 -0
- package/src/commands/restore-handler.ts +24 -0
- package/src/commands/status-handler.ts +17 -0
- package/src/commands/status-output.ts +60 -0
- package/src/commands/token-output.ts +30 -0
- package/src/commands/types.ts +137 -0
- package/src/commands/validate-handler.ts +42 -0
- package/src/commands/validate.ts +83 -0
- package/src/config/index.ts +25 -0
- package/src/config/workspace.ts +87 -0
- package/src/constants.ts +4 -0
- package/src/extraction/candidate-extractor.ts +354 -0
- package/src/index.ts +57 -0
- package/src/install/class-collector.ts +1 -0
- package/src/install/context-registry.ts +1 -0
- package/src/install/index.ts +5 -0
- package/src/install/patch-runner.ts +1 -0
- package/src/install/process-tailwindcss.ts +1 -0
- package/src/install/status.ts +1 -0
- package/src/logger.ts +5 -0
- package/src/options/legacy.ts +93 -0
- package/src/options/normalize.ts +262 -0
- package/src/options/types.ts +217 -0
- package/src/patching/operations/export-context/index.ts +110 -0
- package/src/patching/operations/export-context/postcss-v2.ts +235 -0
- package/src/patching/operations/export-context/postcss-v3.ts +249 -0
- package/src/patching/operations/extend-length-units.ts +197 -0
- package/src/patching/patch-runner.ts +46 -0
- package/src/patching/status.ts +262 -0
- package/src/runtime/class-collector.ts +105 -0
- package/src/runtime/collector.ts +148 -0
- package/src/runtime/context-registry.ts +65 -0
- package/src/runtime/process-tailwindcss.ts +115 -0
- package/src/types.ts +159 -0
- package/src/utils.ts +52 -0
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { TailwindcssMangleConfig } from '@tailwindcss-mangle/config';
|
|
1
2
|
import { SourceEntry } from '@tailwindcss/oxide';
|
|
2
3
|
import postcss, { Rule, Node } from 'postcss';
|
|
3
4
|
import { Config } from 'tailwindcss';
|
|
@@ -10,7 +11,7 @@ type CacheDriver = 'file' | 'memory' | 'noop';
|
|
|
10
11
|
/**
|
|
11
12
|
* Configures how the Tailwind class cache is stored and where it lives on disk.
|
|
12
13
|
*/
|
|
13
|
-
interface
|
|
14
|
+
interface CacheOptions {
|
|
14
15
|
/** Whether caching is enabled. */
|
|
15
16
|
enabled?: boolean;
|
|
16
17
|
/** Working directory used when resolving cache paths. */
|
|
@@ -30,7 +31,7 @@ interface CacheUserOptions {
|
|
|
30
31
|
/**
|
|
31
32
|
* Preferred options for extraction output behavior.
|
|
32
33
|
*/
|
|
33
|
-
interface
|
|
34
|
+
interface ExtractOptions {
|
|
34
35
|
/** Whether to produce an output file. */
|
|
35
36
|
write?: boolean;
|
|
36
37
|
/** Optional absolute or relative path to the output file. */
|
|
@@ -45,32 +46,29 @@ interface TailwindExtractionUserOptions {
|
|
|
45
46
|
/**
|
|
46
47
|
* Options controlling how Tailwind contexts are exposed during runtime patching.
|
|
47
48
|
*/
|
|
48
|
-
interface
|
|
49
|
+
interface ExposeContextOptions {
|
|
49
50
|
/** Name of the property used to reference an exposed context. */
|
|
50
51
|
refProperty?: string;
|
|
51
52
|
}
|
|
52
53
|
/**
|
|
53
54
|
* Extends the built-in length-unit patch with custom defaults.
|
|
54
55
|
*/
|
|
55
|
-
interface
|
|
56
|
+
interface ExtendLengthUnitsOptions extends Partial<ILengthUnitsPatchOptions> {
|
|
56
57
|
/** Enables or disables the length-unit patch. */
|
|
57
58
|
enabled?: boolean;
|
|
58
59
|
}
|
|
59
60
|
/**
|
|
60
61
|
* Preferred options for runtime patch behavior.
|
|
61
62
|
*/
|
|
62
|
-
interface
|
|
63
|
+
interface ApplyOptions {
|
|
63
64
|
/** Whether patched files can be overwritten on disk. */
|
|
64
65
|
overwrite?: boolean;
|
|
65
66
|
/** Whether to expose runtime Tailwind contexts (or configure how they are exposed). */
|
|
66
|
-
exposeContext?: boolean |
|
|
67
|
+
exposeContext?: boolean | ExposeContextOptions;
|
|
67
68
|
/** Extends the length-unit patch or disables it entirely. */
|
|
68
|
-
extendLengthUnits?: false |
|
|
69
|
+
extendLengthUnits?: false | ExtendLengthUnitsOptions;
|
|
69
70
|
}
|
|
70
|
-
|
|
71
|
-
* Shared configuration used for Tailwind v2/v3 patching flows.
|
|
72
|
-
*/
|
|
73
|
-
interface TailwindRuntimeConfigUserOptions {
|
|
71
|
+
interface TailwindRuntimeOptionsBase {
|
|
74
72
|
/** Path to a Tailwind config file when auto-detection is insufficient. */
|
|
75
73
|
config?: string;
|
|
76
74
|
/** Custom working directory used when resolving config-relative paths. */
|
|
@@ -78,10 +76,20 @@ interface TailwindRuntimeConfigUserOptions {
|
|
|
78
76
|
/** Optional PostCSS plugin name to use instead of the default. */
|
|
79
77
|
postcssPlugin?: string;
|
|
80
78
|
}
|
|
79
|
+
/**
|
|
80
|
+
* Configuration specific to Tailwind CSS v2 patching flows.
|
|
81
|
+
*/
|
|
82
|
+
interface TailwindV2Options extends TailwindRuntimeOptionsBase {
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* Configuration specific to Tailwind CSS v3 patching flows.
|
|
86
|
+
*/
|
|
87
|
+
interface TailwindV3Options extends TailwindRuntimeOptionsBase {
|
|
88
|
+
}
|
|
81
89
|
/**
|
|
82
90
|
* Additional configuration specific to Tailwind CSS v4 extraction.
|
|
83
91
|
*/
|
|
84
|
-
interface
|
|
92
|
+
interface TailwindV4Options {
|
|
85
93
|
/** Base directory used when resolving v4 content sources and configs. */
|
|
86
94
|
base?: string;
|
|
87
95
|
/** Raw CSS passed directly to the v4 design system. */
|
|
@@ -94,7 +102,7 @@ interface TailwindV4RuntimeUserOptions {
|
|
|
94
102
|
/**
|
|
95
103
|
* High-level Tailwind patch configuration shared across versions.
|
|
96
104
|
*/
|
|
97
|
-
interface
|
|
105
|
+
interface TailwindCssOptions extends TailwindRuntimeOptionsBase {
|
|
98
106
|
/** Explicit Tailwind CSS major version used by the current project. When omitted, the installed package version is inferred. */
|
|
99
107
|
version?: 2 | 3 | 4;
|
|
100
108
|
/** Tailwind package name if the project uses a fork. */
|
|
@@ -102,31 +110,31 @@ interface TailwindcssUserOptions extends TailwindRuntimeConfigUserOptions {
|
|
|
102
110
|
/** Package resolution options forwarded to `local-pkg`. */
|
|
103
111
|
resolve?: PackageResolvingOptions;
|
|
104
112
|
/** Overrides applied when patching Tailwind CSS v2. */
|
|
105
|
-
v2?:
|
|
113
|
+
v2?: TailwindV2Options;
|
|
106
114
|
/** Overrides applied when patching Tailwind CSS v3. */
|
|
107
|
-
v3?:
|
|
115
|
+
v3?: TailwindV3Options;
|
|
108
116
|
/** Options specific to Tailwind CSS v4 patching. */
|
|
109
|
-
v4?:
|
|
117
|
+
v4?: TailwindV4Options;
|
|
110
118
|
}
|
|
111
119
|
/**
|
|
112
120
|
* Root configuration consumed by the Tailwind CSS patch runner.
|
|
113
121
|
*/
|
|
114
|
-
interface
|
|
122
|
+
interface TailwindCssPatchOptions {
|
|
115
123
|
/**
|
|
116
124
|
* Base directory used when resolving Tailwind resources.
|
|
117
125
|
* Defaults to `process.cwd()`.
|
|
118
126
|
*/
|
|
119
127
|
projectRoot?: string;
|
|
120
128
|
/** Preferred Tailwind runtime configuration. */
|
|
121
|
-
tailwindcss?:
|
|
129
|
+
tailwindcss?: TailwindCssOptions;
|
|
122
130
|
/** Preferred patch toggles. */
|
|
123
|
-
apply?:
|
|
131
|
+
apply?: ApplyOptions;
|
|
124
132
|
/** Preferred extraction output settings. */
|
|
125
|
-
extract?:
|
|
133
|
+
extract?: ExtractOptions;
|
|
126
134
|
/** Optional function that filters final class names. */
|
|
127
135
|
filter?: (className: string) => boolean;
|
|
128
136
|
/** Cache configuration or boolean to enable/disable quickly. */
|
|
129
|
-
cache?: boolean |
|
|
137
|
+
cache?: boolean | CacheOptions;
|
|
130
138
|
}
|
|
131
139
|
/**
|
|
132
140
|
* Stable shape for output configuration after normalization.
|
|
@@ -171,12 +179,12 @@ interface NormalizedTailwindV4Options {
|
|
|
171
179
|
/**
|
|
172
180
|
* Tailwind configuration ready for consumption by the runtime after normalization.
|
|
173
181
|
*/
|
|
174
|
-
interface NormalizedTailwindConfigOptions extends
|
|
182
|
+
interface NormalizedTailwindConfigOptions extends TailwindRuntimeOptionsBase {
|
|
175
183
|
packageName: string;
|
|
176
184
|
versionHint?: 2 | 3 | 4;
|
|
177
185
|
resolve?: PackageResolvingOptions;
|
|
178
|
-
v2?:
|
|
179
|
-
v3?:
|
|
186
|
+
v2?: TailwindV2Options;
|
|
187
|
+
v3?: TailwindV3Options;
|
|
180
188
|
v4?: NormalizedTailwindV4Options;
|
|
181
189
|
}
|
|
182
190
|
/** Grouped normalized feature flags. */
|
|
@@ -185,7 +193,7 @@ interface NormalizedFeatureOptions {
|
|
|
185
193
|
extendLengthUnits: NormalizedExtendLengthUnitsOptions | null;
|
|
186
194
|
}
|
|
187
195
|
/** Final normalized shape consumed throughout the patch runtime. */
|
|
188
|
-
interface
|
|
196
|
+
interface NormalizedTailwindCssPatchOptions {
|
|
189
197
|
projectRoot: string;
|
|
190
198
|
overwrite: boolean;
|
|
191
199
|
tailwind: NormalizedTailwindConfigOptions;
|
|
@@ -322,7 +330,7 @@ interface TailwindTokenReport {
|
|
|
322
330
|
}
|
|
323
331
|
type TailwindTokenByFileMap = Record<string, TailwindTokenLocation[]>;
|
|
324
332
|
interface TailwindPatchRuntime {
|
|
325
|
-
options:
|
|
333
|
+
options: NormalizedTailwindCssPatchOptions;
|
|
326
334
|
majorVersion: 2 | 3 | 4;
|
|
327
335
|
}
|
|
328
336
|
|
|
@@ -388,7 +396,7 @@ interface PatchRunnerResult {
|
|
|
388
396
|
extendLengthUnits?: ReturnType<typeof applyExtendLengthUnitsPatchV3> | ReturnType<typeof applyExtendLengthUnitsPatchV4>;
|
|
389
397
|
}
|
|
390
398
|
|
|
391
|
-
declare function normalizeOptions(options?:
|
|
399
|
+
declare function normalizeOptions(options?: TailwindCssPatchOptions): NormalizedTailwindCssPatchOptions;
|
|
392
400
|
|
|
393
401
|
interface TailwindcssConfigModule {
|
|
394
402
|
CONFIG_NAME: string;
|
|
@@ -429,14 +437,14 @@ declare function groupTokensByFile(report: TailwindTokenReport, options?: {
|
|
|
429
437
|
type TailwindMajorVersion = 2 | 3 | 4;
|
|
430
438
|
|
|
431
439
|
declare class TailwindcssPatcher {
|
|
432
|
-
readonly options:
|
|
440
|
+
readonly options: NormalizedTailwindCssPatchOptions;
|
|
433
441
|
readonly packageInfo: PackageInfo;
|
|
434
442
|
readonly majorVersion: TailwindMajorVersion;
|
|
435
443
|
private readonly cacheContext;
|
|
436
444
|
private readonly cacheStore;
|
|
437
445
|
private readonly collector;
|
|
438
446
|
private patchMemo;
|
|
439
|
-
constructor(options?:
|
|
447
|
+
constructor(options?: TailwindCssPatchOptions);
|
|
440
448
|
patch(): Promise<PatchRunnerResult>;
|
|
441
449
|
getPatchStatus(): Promise<PatchStatusReport>;
|
|
442
450
|
getContexts(): TailwindcssRuntimeContext[];
|
|
@@ -666,8 +674,8 @@ interface TailwindcssPatchCommandContext<TCommand extends TailwindcssPatchComman
|
|
|
666
674
|
cwd: string;
|
|
667
675
|
logger: typeof logger;
|
|
668
676
|
loadConfig: () => Promise<TailwindcssConfigResult>;
|
|
669
|
-
loadPatchOptions: (overrides?:
|
|
670
|
-
createPatcher: (overrides?:
|
|
677
|
+
loadPatchOptions: (overrides?: TailwindCssPatchOptions) => Promise<TailwindCssPatchOptions>;
|
|
678
|
+
createPatcher: (overrides?: TailwindCssPatchOptions) => Promise<TailwindcssPatcher>;
|
|
671
679
|
}
|
|
672
680
|
type TailwindcssPatchCommandHandler<TCommand extends TailwindcssPatchCommand> = (context: TailwindcssPatchCommandContext<TCommand>, next: () => Promise<TailwindcssPatchCommandResultMap[TCommand]>) => Promise<TailwindcssPatchCommandResultMap[TCommand]> | TailwindcssPatchCommandResultMap[TCommand];
|
|
673
681
|
type TailwindcssPatchCommandHandlerMap = Partial<{
|
|
@@ -720,7 +728,7 @@ declare function migrateConfigFiles(options: MigrateConfigFilesOptions): Promise
|
|
|
720
728
|
declare function restoreConfigFiles(options: RestoreConfigFilesOptions): Promise<RestoreConfigFilesResult>;
|
|
721
729
|
|
|
722
730
|
declare function collectClassesFromContexts(contexts: TailwindcssRuntimeContext[], filter: (className: string) => boolean): Set<string>;
|
|
723
|
-
declare function collectClassesFromTailwindV4(options:
|
|
731
|
+
declare function collectClassesFromTailwindV4(options: NormalizedTailwindCssPatchOptions): Promise<Set<string>>;
|
|
724
732
|
|
|
725
733
|
declare function loadRuntimeContexts(packageInfo: PackageInfo, majorVersion: 2 | 3 | 4, refProperty: string): TailwindcssRuntimeContext[];
|
|
726
734
|
|
|
@@ -734,11 +742,11 @@ declare function runTailwindBuild(options: TailwindBuildOptions): Promise<postcs
|
|
|
734
742
|
|
|
735
743
|
interface PatchStatusContext {
|
|
736
744
|
packageInfo: PackageInfo;
|
|
737
|
-
options:
|
|
745
|
+
options: NormalizedTailwindCssPatchOptions;
|
|
738
746
|
majorVersion: 2 | 3 | 4;
|
|
739
747
|
}
|
|
740
748
|
declare function getPatchStatusReport(context: PatchStatusContext): PatchStatusReport;
|
|
741
749
|
|
|
742
|
-
declare function defineConfig<T>(config: T): T;
|
|
750
|
+
declare function defineConfig<T extends TailwindcssMangleConfig>(config: T): T;
|
|
743
751
|
|
|
744
|
-
export { type CacheClearOptions, type CacheClearResult, type CacheClearScope, type CacheContextMetadata, type CacheReadMeta, CacheStore, type CacheStrategy, type ConfigFileMigrationEntry, type ConfigFileMigrationReport, type ExtractResult, type ILengthUnitsPatchOptions, MIGRATION_REPORT_KIND, MIGRATION_REPORT_SCHEMA_VERSION, type MigrateConfigFilesOptions, type
|
|
752
|
+
export { type ApplyOptions, type CacheClearOptions, type CacheClearResult, type CacheClearScope, type CacheContextMetadata, type CacheOptions, type CacheReadMeta, CacheStore, type CacheStrategy, type ConfigFileMigrationEntry, type ConfigFileMigrationReport, type ExposeContextOptions, type ExtendLengthUnitsOptions, type ExtractOptions, type ExtractResult, type ILengthUnitsPatchOptions, MIGRATION_REPORT_KIND, MIGRATION_REPORT_SCHEMA_VERSION, type MigrateConfigFilesOptions, type NormalizedTailwindCssPatchOptions, type PatchCheckStatus, type PatchName, type PatchStatusEntry, type PatchStatusReport, type RestoreConfigFilesOptions, type RestoreConfigFilesResult, type TailwindCssOptions, type TailwindCssPatchOptions, type TailwindPatchRuntime, type TailwindTokenByFileMap, type TailwindTokenFileKey, type TailwindTokenLocation, type TailwindTokenReport, type TailwindV2Options, type TailwindV3Options, type TailwindV4Options, type TailwindcssClassCache, type TailwindcssPatchCliMountOptions, type TailwindcssPatchCliOptions, type TailwindcssPatchCommand, type TailwindcssPatchCommandContext, type TailwindcssPatchCommandHandler, type TailwindcssPatchCommandHandlerMap, type TailwindcssPatchCommandOptionDefinition, type TailwindcssPatchCommandOptions, TailwindcssPatcher, type TailwindcssRuntimeContext, VALIDATE_EXIT_CODES, VALIDATE_FAILURE_REASONS, ValidateCommandError, type ValidateFailureReason, type ValidateFailureSummary, type ValidateJsonFailurePayload, type ValidateJsonSuccessPayload, collectClassesFromContexts, collectClassesFromTailwindV4, createTailwindcssPatchCli, defineConfig, extractProjectCandidatesWithPositions, extractRawCandidates, extractRawCandidatesWithPositions, extractValidCandidates, getPatchStatusReport, groupTokensByFile, loadRuntimeContexts, logger, migrateConfigFiles, mountTailwindcssPatchCommands, normalizeOptions, restoreConfigFiles, runTailwindBuild, tailwindcssPatchCommands };
|
package/dist/index.js
CHANGED
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
|
|
26
|
-
var
|
|
26
|
+
var _chunkTOAZIPHJjs = require('./chunk-TOAZIPHJ.js');
|
|
27
27
|
require('./chunk-5CWNAWKP.js');
|
|
28
28
|
|
|
29
29
|
// src/index.ts
|
|
@@ -56,4 +56,4 @@ function defineConfig(config) {
|
|
|
56
56
|
|
|
57
57
|
|
|
58
58
|
|
|
59
|
-
exports.CacheStore =
|
|
59
|
+
exports.CacheStore = _chunkTOAZIPHJjs.CacheStore; exports.MIGRATION_REPORT_KIND = _chunkTOAZIPHJjs.MIGRATION_REPORT_KIND; exports.MIGRATION_REPORT_SCHEMA_VERSION = _chunkTOAZIPHJjs.MIGRATION_REPORT_SCHEMA_VERSION; exports.TailwindcssPatcher = _chunkTOAZIPHJjs.TailwindcssPatcher; exports.VALIDATE_EXIT_CODES = _chunkTOAZIPHJjs.VALIDATE_EXIT_CODES; exports.VALIDATE_FAILURE_REASONS = _chunkTOAZIPHJjs.VALIDATE_FAILURE_REASONS; exports.ValidateCommandError = _chunkTOAZIPHJjs.ValidateCommandError; exports.collectClassesFromContexts = _chunkTOAZIPHJjs.collectClassesFromContexts; exports.collectClassesFromTailwindV4 = _chunkTOAZIPHJjs.collectClassesFromTailwindV4; exports.createTailwindcssPatchCli = _chunkTOAZIPHJjs.createTailwindcssPatchCli; exports.defineConfig = defineConfig; exports.extractProjectCandidatesWithPositions = _chunkTOAZIPHJjs.extractProjectCandidatesWithPositions; exports.extractRawCandidates = _chunkTOAZIPHJjs.extractRawCandidates; exports.extractRawCandidatesWithPositions = _chunkTOAZIPHJjs.extractRawCandidatesWithPositions; exports.extractValidCandidates = _chunkTOAZIPHJjs.extractValidCandidates; exports.getPatchStatusReport = _chunkTOAZIPHJjs.getPatchStatusReport; exports.groupTokensByFile = _chunkTOAZIPHJjs.groupTokensByFile; exports.loadRuntimeContexts = _chunkTOAZIPHJjs.loadRuntimeContexts; exports.logger = _chunkTOAZIPHJjs.logger_default; exports.migrateConfigFiles = _chunkTOAZIPHJjs.migrateConfigFiles; exports.mountTailwindcssPatchCommands = _chunkTOAZIPHJjs.mountTailwindcssPatchCommands; exports.normalizeOptions = _chunkTOAZIPHJjs.normalizeOptions; exports.restoreConfigFiles = _chunkTOAZIPHJjs.restoreConfigFiles; exports.runTailwindBuild = _chunkTOAZIPHJjs.runTailwindBuild; exports.tailwindcssPatchCommands = _chunkTOAZIPHJjs.tailwindcssPatchCommands;
|
package/dist/index.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tailwindcss-patch",
|
|
3
|
-
"version": "9.0.0-alpha.
|
|
3
|
+
"version": "9.0.0-alpha.2",
|
|
4
4
|
"description": "patch tailwindcss for exposing context and extract classes",
|
|
5
5
|
"author": "ice breaker <1324318532@qq.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -39,8 +39,12 @@
|
|
|
39
39
|
"files": [
|
|
40
40
|
"bin",
|
|
41
41
|
"dist",
|
|
42
|
-
"schema"
|
|
42
|
+
"schema",
|
|
43
|
+
"src"
|
|
43
44
|
],
|
|
45
|
+
"tsd": {
|
|
46
|
+
"directory": "test-d"
|
|
47
|
+
},
|
|
44
48
|
"publishConfig": {
|
|
45
49
|
"access": "public",
|
|
46
50
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -67,7 +71,7 @@
|
|
|
67
71
|
"postcss": "^8.5.8",
|
|
68
72
|
"semver": "^7.7.4",
|
|
69
73
|
"tailwindcss-config": "^1.1.4",
|
|
70
|
-
"@tailwindcss-mangle/config": "7.0.0-alpha.
|
|
74
|
+
"@tailwindcss-mangle/config": "7.0.0-alpha.2"
|
|
71
75
|
},
|
|
72
76
|
"devDependencies": {
|
|
73
77
|
"@tailwindcss/oxide": "^4.2.1",
|
|
@@ -81,6 +85,7 @@
|
|
|
81
85
|
"dev": "tsup --watch --sourcemap",
|
|
82
86
|
"build": "tsup",
|
|
83
87
|
"test": "vitest run",
|
|
88
|
+
"test:types": "pnpm build && tsd --typings dist/index.d.mts --files test-d/**/*.test-d.ts",
|
|
84
89
|
"test:dev": "vitest",
|
|
85
90
|
"bench:cold-start": "node --import tsx bench/cold-start.ts",
|
|
86
91
|
"patch": "tsx dev/bin.ts install",
|