tailwindcss-patch 8.4.0 → 8.4.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/dist/{chunk-PF5ZTTYM.js → chunk-6WXBENUZ.js} +72 -11
- package/dist/{chunk-SHYTHM5B.mjs → chunk-K5JHLM3J.mjs} +84 -23
- package/dist/cli.js +2 -2
- package/dist/cli.mjs +1 -1
- package/dist/index.d.mts +5 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +2 -2
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
|
@@ -8,7 +8,11 @@ var logger = _consola.createConsola.call(void 0, );
|
|
|
8
8
|
var logger_default = logger;
|
|
9
9
|
|
|
10
10
|
// src/cache/store.ts
|
|
11
|
+
var _process = require('process'); var _process2 = _interopRequireDefault(_process);
|
|
11
12
|
var _fsextra = require('fs-extra'); var _fsextra2 = _interopRequireDefault(_fsextra);
|
|
13
|
+
function isErrnoException(error) {
|
|
14
|
+
return error instanceof Error && typeof error.code === "string";
|
|
15
|
+
}
|
|
12
16
|
var CacheStore = class {
|
|
13
17
|
constructor(options) {
|
|
14
18
|
this.options = options;
|
|
@@ -19,15 +23,70 @@ var CacheStore = class {
|
|
|
19
23
|
ensureDirSync() {
|
|
20
24
|
_fsextra2.default.ensureDirSync(this.options.dir);
|
|
21
25
|
}
|
|
26
|
+
createTempPath() {
|
|
27
|
+
const uniqueSuffix = `${_process2.default.pid}-${Date.now()}-${Math.random().toString(16).slice(2)}`;
|
|
28
|
+
return `${this.options.path}.${uniqueSuffix}.tmp`;
|
|
29
|
+
}
|
|
30
|
+
async replaceCacheFile(tempPath) {
|
|
31
|
+
try {
|
|
32
|
+
await _fsextra2.default.rename(tempPath, this.options.path);
|
|
33
|
+
} catch (error) {
|
|
34
|
+
if (isErrnoException(error) && (error.code === "EEXIST" || error.code === "EPERM")) {
|
|
35
|
+
try {
|
|
36
|
+
await _fsextra2.default.remove(this.options.path);
|
|
37
|
+
} catch (removeError) {
|
|
38
|
+
if (!isErrnoException(removeError) || removeError.code !== "ENOENT") {
|
|
39
|
+
throw removeError;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
await _fsextra2.default.rename(tempPath, this.options.path);
|
|
43
|
+
return;
|
|
44
|
+
}
|
|
45
|
+
throw error;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
replaceCacheFileSync(tempPath) {
|
|
49
|
+
try {
|
|
50
|
+
_fsextra2.default.renameSync(tempPath, this.options.path);
|
|
51
|
+
} catch (error) {
|
|
52
|
+
if (isErrnoException(error) && (error.code === "EEXIST" || error.code === "EPERM")) {
|
|
53
|
+
try {
|
|
54
|
+
_fsextra2.default.removeSync(this.options.path);
|
|
55
|
+
} catch (removeError) {
|
|
56
|
+
if (!isErrnoException(removeError) || removeError.code !== "ENOENT") {
|
|
57
|
+
throw removeError;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
_fsextra2.default.renameSync(tempPath, this.options.path);
|
|
61
|
+
return;
|
|
62
|
+
}
|
|
63
|
+
throw error;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
async cleanupTempFile(tempPath) {
|
|
67
|
+
try {
|
|
68
|
+
await _fsextra2.default.remove(tempPath);
|
|
69
|
+
} catch (e2) {
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
cleanupTempFileSync(tempPath) {
|
|
73
|
+
try {
|
|
74
|
+
_fsextra2.default.removeSync(tempPath);
|
|
75
|
+
} catch (e3) {
|
|
76
|
+
}
|
|
77
|
+
}
|
|
22
78
|
async write(data) {
|
|
23
79
|
if (!this.options.enabled) {
|
|
24
80
|
return void 0;
|
|
25
81
|
}
|
|
82
|
+
const tempPath = this.createTempPath();
|
|
26
83
|
try {
|
|
27
84
|
await this.ensureDir();
|
|
28
|
-
await _fsextra2.default.writeJSON(
|
|
85
|
+
await _fsextra2.default.writeJSON(tempPath, Array.from(data));
|
|
86
|
+
await this.replaceCacheFile(tempPath);
|
|
29
87
|
return this.options.path;
|
|
30
88
|
} catch (error) {
|
|
89
|
+
await this.cleanupTempFile(tempPath);
|
|
31
90
|
logger_default.error("Unable to persist Tailwind class cache", error);
|
|
32
91
|
return void 0;
|
|
33
92
|
}
|
|
@@ -36,11 +95,14 @@ var CacheStore = class {
|
|
|
36
95
|
if (!this.options.enabled) {
|
|
37
96
|
return void 0;
|
|
38
97
|
}
|
|
98
|
+
const tempPath = this.createTempPath();
|
|
39
99
|
try {
|
|
40
100
|
this.ensureDirSync();
|
|
41
|
-
_fsextra2.default.writeJSONSync(
|
|
101
|
+
_fsextra2.default.writeJSONSync(tempPath, Array.from(data));
|
|
102
|
+
this.replaceCacheFileSync(tempPath);
|
|
42
103
|
return this.options.path;
|
|
43
104
|
} catch (error) {
|
|
105
|
+
this.cleanupTempFileSync(tempPath);
|
|
44
106
|
logger_default.error("Unable to persist Tailwind class cache", error);
|
|
45
107
|
return void 0;
|
|
46
108
|
}
|
|
@@ -59,6 +121,9 @@ var CacheStore = class {
|
|
|
59
121
|
return new Set(data.filter((item) => typeof item === "string"));
|
|
60
122
|
}
|
|
61
123
|
} catch (error) {
|
|
124
|
+
if (isErrnoException(error) && error.code === "ENOENT") {
|
|
125
|
+
return /* @__PURE__ */ new Set();
|
|
126
|
+
}
|
|
62
127
|
logger_default.warn("Unable to read Tailwind class cache, removing invalid file.", error);
|
|
63
128
|
try {
|
|
64
129
|
await _fsextra2.default.remove(this.options.path);
|
|
@@ -82,6 +147,9 @@ var CacheStore = class {
|
|
|
82
147
|
return new Set(data.filter((item) => typeof item === "string"));
|
|
83
148
|
}
|
|
84
149
|
} catch (error) {
|
|
150
|
+
if (isErrnoException(error) && error.code === "ENOENT") {
|
|
151
|
+
return /* @__PURE__ */ new Set();
|
|
152
|
+
}
|
|
85
153
|
logger_default.warn("Unable to read Tailwind class cache, removing invalid file.", error);
|
|
86
154
|
try {
|
|
87
155
|
_fsextra2.default.removeSync(this.options.path);
|
|
@@ -95,7 +163,7 @@ var CacheStore = class {
|
|
|
95
163
|
|
|
96
164
|
// src/extraction/candidate-extractor.ts
|
|
97
165
|
var _fs = require('fs');
|
|
98
|
-
|
|
166
|
+
|
|
99
167
|
var _pathe = require('pathe'); var _pathe2 = _interopRequireDefault(_pathe);
|
|
100
168
|
async function importNode() {
|
|
101
169
|
return Promise.resolve().then(() => _interopRequireWildcard(require("@tailwindcss/node")));
|
|
@@ -391,7 +459,7 @@ function normalizeTailwindV4Options(v4, fallbackBase) {
|
|
|
391
459
|
const hasUserDefinedSources = Boolean(_optionalChain([userSources, 'optionalAccess', _17 => _17.length]));
|
|
392
460
|
const sources = hasUserDefinedSources ? userSources : [
|
|
393
461
|
{
|
|
394
|
-
base,
|
|
462
|
+
base: fallbackBase,
|
|
395
463
|
pattern: "**/*",
|
|
396
464
|
negated: false
|
|
397
465
|
}
|
|
@@ -520,13 +588,6 @@ async function collectClassesFromTailwindV4(options) {
|
|
|
520
588
|
if (!_optionalChain([v4Options, 'access', _28 => _28.sources, 'optionalAccess', _29 => _29.length])) {
|
|
521
589
|
return void 0;
|
|
522
590
|
}
|
|
523
|
-
if (!v4Options.hasUserDefinedSources && !resolvedConfiguredBase) {
|
|
524
|
-
return v4Options.sources.map((source) => ({
|
|
525
|
-
base,
|
|
526
|
-
pattern: source.pattern,
|
|
527
|
-
negated: source.negated
|
|
528
|
-
}));
|
|
529
|
-
}
|
|
530
591
|
return v4Options.sources.map((source) => ({
|
|
531
592
|
base: _nullishCoalesce(source.base, () => ( base)),
|
|
532
593
|
pattern: source.pattern,
|
|
@@ -4,7 +4,11 @@ var logger = createConsola();
|
|
|
4
4
|
var logger_default = logger;
|
|
5
5
|
|
|
6
6
|
// src/cache/store.ts
|
|
7
|
+
import process from "process";
|
|
7
8
|
import fs from "fs-extra";
|
|
9
|
+
function isErrnoException(error) {
|
|
10
|
+
return error instanceof Error && typeof error.code === "string";
|
|
11
|
+
}
|
|
8
12
|
var CacheStore = class {
|
|
9
13
|
constructor(options) {
|
|
10
14
|
this.options = options;
|
|
@@ -15,15 +19,70 @@ var CacheStore = class {
|
|
|
15
19
|
ensureDirSync() {
|
|
16
20
|
fs.ensureDirSync(this.options.dir);
|
|
17
21
|
}
|
|
22
|
+
createTempPath() {
|
|
23
|
+
const uniqueSuffix = `${process.pid}-${Date.now()}-${Math.random().toString(16).slice(2)}`;
|
|
24
|
+
return `${this.options.path}.${uniqueSuffix}.tmp`;
|
|
25
|
+
}
|
|
26
|
+
async replaceCacheFile(tempPath) {
|
|
27
|
+
try {
|
|
28
|
+
await fs.rename(tempPath, this.options.path);
|
|
29
|
+
} catch (error) {
|
|
30
|
+
if (isErrnoException(error) && (error.code === "EEXIST" || error.code === "EPERM")) {
|
|
31
|
+
try {
|
|
32
|
+
await fs.remove(this.options.path);
|
|
33
|
+
} catch (removeError) {
|
|
34
|
+
if (!isErrnoException(removeError) || removeError.code !== "ENOENT") {
|
|
35
|
+
throw removeError;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
await fs.rename(tempPath, this.options.path);
|
|
39
|
+
return;
|
|
40
|
+
}
|
|
41
|
+
throw error;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
replaceCacheFileSync(tempPath) {
|
|
45
|
+
try {
|
|
46
|
+
fs.renameSync(tempPath, this.options.path);
|
|
47
|
+
} catch (error) {
|
|
48
|
+
if (isErrnoException(error) && (error.code === "EEXIST" || error.code === "EPERM")) {
|
|
49
|
+
try {
|
|
50
|
+
fs.removeSync(this.options.path);
|
|
51
|
+
} catch (removeError) {
|
|
52
|
+
if (!isErrnoException(removeError) || removeError.code !== "ENOENT") {
|
|
53
|
+
throw removeError;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
fs.renameSync(tempPath, this.options.path);
|
|
57
|
+
return;
|
|
58
|
+
}
|
|
59
|
+
throw error;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
async cleanupTempFile(tempPath) {
|
|
63
|
+
try {
|
|
64
|
+
await fs.remove(tempPath);
|
|
65
|
+
} catch {
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
cleanupTempFileSync(tempPath) {
|
|
69
|
+
try {
|
|
70
|
+
fs.removeSync(tempPath);
|
|
71
|
+
} catch {
|
|
72
|
+
}
|
|
73
|
+
}
|
|
18
74
|
async write(data) {
|
|
19
75
|
if (!this.options.enabled) {
|
|
20
76
|
return void 0;
|
|
21
77
|
}
|
|
78
|
+
const tempPath = this.createTempPath();
|
|
22
79
|
try {
|
|
23
80
|
await this.ensureDir();
|
|
24
|
-
await fs.writeJSON(
|
|
81
|
+
await fs.writeJSON(tempPath, Array.from(data));
|
|
82
|
+
await this.replaceCacheFile(tempPath);
|
|
25
83
|
return this.options.path;
|
|
26
84
|
} catch (error) {
|
|
85
|
+
await this.cleanupTempFile(tempPath);
|
|
27
86
|
logger_default.error("Unable to persist Tailwind class cache", error);
|
|
28
87
|
return void 0;
|
|
29
88
|
}
|
|
@@ -32,11 +91,14 @@ var CacheStore = class {
|
|
|
32
91
|
if (!this.options.enabled) {
|
|
33
92
|
return void 0;
|
|
34
93
|
}
|
|
94
|
+
const tempPath = this.createTempPath();
|
|
35
95
|
try {
|
|
36
96
|
this.ensureDirSync();
|
|
37
|
-
fs.writeJSONSync(
|
|
97
|
+
fs.writeJSONSync(tempPath, Array.from(data));
|
|
98
|
+
this.replaceCacheFileSync(tempPath);
|
|
38
99
|
return this.options.path;
|
|
39
100
|
} catch (error) {
|
|
101
|
+
this.cleanupTempFileSync(tempPath);
|
|
40
102
|
logger_default.error("Unable to persist Tailwind class cache", error);
|
|
41
103
|
return void 0;
|
|
42
104
|
}
|
|
@@ -55,6 +117,9 @@ var CacheStore = class {
|
|
|
55
117
|
return new Set(data.filter((item) => typeof item === "string"));
|
|
56
118
|
}
|
|
57
119
|
} catch (error) {
|
|
120
|
+
if (isErrnoException(error) && error.code === "ENOENT") {
|
|
121
|
+
return /* @__PURE__ */ new Set();
|
|
122
|
+
}
|
|
58
123
|
logger_default.warn("Unable to read Tailwind class cache, removing invalid file.", error);
|
|
59
124
|
try {
|
|
60
125
|
await fs.remove(this.options.path);
|
|
@@ -78,6 +143,9 @@ var CacheStore = class {
|
|
|
78
143
|
return new Set(data.filter((item) => typeof item === "string"));
|
|
79
144
|
}
|
|
80
145
|
} catch (error) {
|
|
146
|
+
if (isErrnoException(error) && error.code === "ENOENT") {
|
|
147
|
+
return /* @__PURE__ */ new Set();
|
|
148
|
+
}
|
|
81
149
|
logger_default.warn("Unable to read Tailwind class cache, removing invalid file.", error);
|
|
82
150
|
try {
|
|
83
151
|
fs.removeSync(this.options.path);
|
|
@@ -91,7 +159,7 @@ var CacheStore = class {
|
|
|
91
159
|
|
|
92
160
|
// src/extraction/candidate-extractor.ts
|
|
93
161
|
import { promises as fs2 } from "fs";
|
|
94
|
-
import
|
|
162
|
+
import process2 from "process";
|
|
95
163
|
import path from "pathe";
|
|
96
164
|
async function importNode() {
|
|
97
165
|
return import("@tailwindcss/node");
|
|
@@ -118,7 +186,7 @@ async function extractRawCandidates(sources) {
|
|
|
118
186
|
}
|
|
119
187
|
async function extractValidCandidates(options) {
|
|
120
188
|
const providedOptions = options ?? {};
|
|
121
|
-
const defaultCwd = providedOptions.cwd ??
|
|
189
|
+
const defaultCwd = providedOptions.cwd ?? process2.cwd();
|
|
122
190
|
const base = providedOptions.base ?? defaultCwd;
|
|
123
191
|
const css = providedOptions.css ?? '@import "tailwindcss";';
|
|
124
192
|
const sources = (providedOptions.sources ?? [
|
|
@@ -214,7 +282,7 @@ function toRelativeFile(cwd, filename) {
|
|
|
214
282
|
return relative === "" ? path.basename(filename) : relative;
|
|
215
283
|
}
|
|
216
284
|
async function extractProjectCandidatesWithPositions(options) {
|
|
217
|
-
const cwd = options?.cwd ? path.resolve(options.cwd) :
|
|
285
|
+
const cwd = options?.cwd ? path.resolve(options.cwd) : process2.cwd();
|
|
218
286
|
const normalizedSources = normalizeSources(options?.sources, cwd);
|
|
219
287
|
const { Scanner } = await importOxide();
|
|
220
288
|
const scanner = new Scanner({
|
|
@@ -286,7 +354,7 @@ function groupTokensByFile(report, options) {
|
|
|
286
354
|
}
|
|
287
355
|
|
|
288
356
|
// src/options/normalize.ts
|
|
289
|
-
import
|
|
357
|
+
import process3 from "process";
|
|
290
358
|
import path2 from "pathe";
|
|
291
359
|
|
|
292
360
|
// src/constants.ts
|
|
@@ -387,7 +455,7 @@ function normalizeTailwindV4Options(v4, fallbackBase) {
|
|
|
387
455
|
const hasUserDefinedSources = Boolean(userSources?.length);
|
|
388
456
|
const sources = hasUserDefinedSources ? userSources : [
|
|
389
457
|
{
|
|
390
|
-
base,
|
|
458
|
+
base: fallbackBase,
|
|
391
459
|
pattern: "**/*",
|
|
392
460
|
negated: false
|
|
393
461
|
}
|
|
@@ -422,7 +490,7 @@ function normalizeTailwindOptions(tailwind, projectRoot) {
|
|
|
422
490
|
};
|
|
423
491
|
}
|
|
424
492
|
function normalizeOptions(options = {}) {
|
|
425
|
-
const projectRoot = options.cwd ? path2.resolve(options.cwd) :
|
|
493
|
+
const projectRoot = options.cwd ? path2.resolve(options.cwd) : process3.cwd();
|
|
426
494
|
const overwrite = options.overwrite ?? true;
|
|
427
495
|
const output = normalizeOutputOptions(options.output);
|
|
428
496
|
const cache = normalizeCacheOptions(options.cache, projectRoot);
|
|
@@ -453,7 +521,7 @@ function normalizeOptions(options = {}) {
|
|
|
453
521
|
}
|
|
454
522
|
|
|
455
523
|
// src/runtime/class-collector.ts
|
|
456
|
-
import
|
|
524
|
+
import process4 from "process";
|
|
457
525
|
import fs3 from "fs-extra";
|
|
458
526
|
import path3 from "pathe";
|
|
459
527
|
|
|
@@ -511,18 +579,11 @@ async function collectClassesFromTailwindV4(options) {
|
|
|
511
579
|
return path3.isAbsolute(value) ? value : path3.resolve(options.projectRoot, value);
|
|
512
580
|
};
|
|
513
581
|
const resolvedConfiguredBase = toAbsolute(v4Options.configuredBase);
|
|
514
|
-
const resolvedDefaultBase = toAbsolute(v4Options.base) ??
|
|
582
|
+
const resolvedDefaultBase = toAbsolute(v4Options.base) ?? process4.cwd();
|
|
515
583
|
const resolveSources = (base) => {
|
|
516
584
|
if (!v4Options.sources?.length) {
|
|
517
585
|
return void 0;
|
|
518
586
|
}
|
|
519
|
-
if (!v4Options.hasUserDefinedSources && !resolvedConfiguredBase) {
|
|
520
|
-
return v4Options.sources.map((source) => ({
|
|
521
|
-
base,
|
|
522
|
-
pattern: source.pattern,
|
|
523
|
-
negated: source.negated
|
|
524
|
-
}));
|
|
525
|
-
}
|
|
526
587
|
return v4Options.sources.map((source) => ({
|
|
527
588
|
base: source.base ?? base,
|
|
528
589
|
pattern: source.pattern,
|
|
@@ -656,7 +717,7 @@ async function runTailwindBuild(options) {
|
|
|
656
717
|
}
|
|
657
718
|
|
|
658
719
|
// src/api/tailwindcss-patcher.ts
|
|
659
|
-
import
|
|
720
|
+
import process5 from "process";
|
|
660
721
|
import fs7 from "fs-extra";
|
|
661
722
|
import { getPackageInfoSync } from "local-pkg";
|
|
662
723
|
import path8 from "pathe";
|
|
@@ -1532,7 +1593,7 @@ var TailwindcssPatcher = class {
|
|
|
1532
1593
|
await fs7.writeFile(target, `${classList.join("\n")}
|
|
1533
1594
|
`, "utf8");
|
|
1534
1595
|
}
|
|
1535
|
-
logger_default.success(`Tailwind CSS class list saved to ${target.replace(
|
|
1596
|
+
logger_default.success(`Tailwind CSS class list saved to ${target.replace(process5.cwd(), ".")}`);
|
|
1536
1597
|
return {
|
|
1537
1598
|
...result,
|
|
1538
1599
|
filename: target
|
|
@@ -1559,7 +1620,7 @@ var TailwindcssPatcher = class {
|
|
|
1559
1620
|
};
|
|
1560
1621
|
|
|
1561
1622
|
// src/cli/commands.ts
|
|
1562
|
-
import
|
|
1623
|
+
import process6 from "process";
|
|
1563
1624
|
import { CONFIG_NAME, getConfig, initConfig } from "@tailwindcss-mangle/config";
|
|
1564
1625
|
|
|
1565
1626
|
// ../../node_modules/.pnpm/defu@6.1.4/node_modules/defu/dist/defu.mjs
|
|
@@ -1680,7 +1741,7 @@ function formatGroupedPreview(map, limit = 3) {
|
|
|
1680
1741
|
}
|
|
1681
1742
|
function resolveCwd(rawCwd) {
|
|
1682
1743
|
if (!rawCwd) {
|
|
1683
|
-
return
|
|
1744
|
+
return process6.cwd();
|
|
1684
1745
|
}
|
|
1685
1746
|
return path9.resolve(rawCwd);
|
|
1686
1747
|
}
|
|
@@ -1744,7 +1805,7 @@ function createCwdOptionDefinition(description = "Working directory") {
|
|
|
1744
1805
|
return {
|
|
1745
1806
|
flags: "--cwd <dir>",
|
|
1746
1807
|
description,
|
|
1747
|
-
config: { default:
|
|
1808
|
+
config: { default: process6.cwd() }
|
|
1748
1809
|
};
|
|
1749
1810
|
}
|
|
1750
1811
|
function buildDefaultCommandDefinitions() {
|
|
@@ -1898,7 +1959,7 @@ async function tokensCommandDefaultHandler(ctx) {
|
|
|
1898
1959
|
await fs8.writeFile(target, `${lines.join("\n")}
|
|
1899
1960
|
`, "utf8");
|
|
1900
1961
|
}
|
|
1901
|
-
logger_default.success(`Collected ${report.entries.length} tokens (${format}) \u2192 ${target.replace(
|
|
1962
|
+
logger_default.success(`Collected ${report.entries.length} tokens (${format}) \u2192 ${target.replace(process6.cwd(), ".")}`);
|
|
1902
1963
|
} else {
|
|
1903
1964
|
logger_default.success(`Collected ${report.entries.length} tokens from ${report.filesScanned} files.`);
|
|
1904
1965
|
if (format === "lines") {
|
package/dist/cli.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunk6WXBENUZjs = require('./chunk-6WXBENUZ.js');
|
|
4
4
|
|
|
5
5
|
// src/cli.ts
|
|
6
|
-
var cli =
|
|
6
|
+
var cli = _chunk6WXBENUZjs.createTailwindcssPatchCli.call(void 0, );
|
|
7
7
|
cli.help();
|
|
8
8
|
cli.parse();
|
package/dist/cli.mjs
CHANGED
package/dist/index.d.mts
CHANGED
|
@@ -417,6 +417,11 @@ declare class CacheStore {
|
|
|
417
417
|
constructor(options: NormalizedCacheOptions);
|
|
418
418
|
private ensureDir;
|
|
419
419
|
private ensureDirSync;
|
|
420
|
+
private createTempPath;
|
|
421
|
+
private replaceCacheFile;
|
|
422
|
+
private replaceCacheFileSync;
|
|
423
|
+
private cleanupTempFile;
|
|
424
|
+
private cleanupTempFileSync;
|
|
420
425
|
write(data: Set<string>): Promise<string | undefined>;
|
|
421
426
|
writeSync(data: Set<string>): string | undefined;
|
|
422
427
|
read(): Promise<Set<string>>;
|
package/dist/index.d.ts
CHANGED
|
@@ -417,6 +417,11 @@ declare class CacheStore {
|
|
|
417
417
|
constructor(options: NormalizedCacheOptions);
|
|
418
418
|
private ensureDir;
|
|
419
419
|
private ensureDirSync;
|
|
420
|
+
private createTempPath;
|
|
421
|
+
private replaceCacheFile;
|
|
422
|
+
private replaceCacheFileSync;
|
|
423
|
+
private cleanupTempFile;
|
|
424
|
+
private cleanupTempFileSync;
|
|
420
425
|
write(data: Set<string>): Promise<string | undefined>;
|
|
421
426
|
writeSync(data: Set<string>): string | undefined;
|
|
422
427
|
read(): Promise<Set<string>>;
|
package/dist/index.js
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _chunk6WXBENUZjs = require('./chunk-6WXBENUZ.js');
|
|
19
19
|
|
|
20
20
|
// src/index.ts
|
|
21
21
|
var _config = require('@tailwindcss-mangle/config');
|
|
@@ -37,4 +37,4 @@ var _config = require('@tailwindcss-mangle/config');
|
|
|
37
37
|
|
|
38
38
|
|
|
39
39
|
|
|
40
|
-
exports.CacheStore =
|
|
40
|
+
exports.CacheStore = _chunk6WXBENUZjs.CacheStore; exports.TailwindcssPatcher = _chunk6WXBENUZjs.TailwindcssPatcher; exports.collectClassesFromContexts = _chunk6WXBENUZjs.collectClassesFromContexts; exports.collectClassesFromTailwindV4 = _chunk6WXBENUZjs.collectClassesFromTailwindV4; exports.createTailwindcssPatchCli = _chunk6WXBENUZjs.createTailwindcssPatchCli; exports.defineConfig = _config.defineConfig; exports.extractProjectCandidatesWithPositions = _chunk6WXBENUZjs.extractProjectCandidatesWithPositions; exports.extractRawCandidates = _chunk6WXBENUZjs.extractRawCandidates; exports.extractRawCandidatesWithPositions = _chunk6WXBENUZjs.extractRawCandidatesWithPositions; exports.extractValidCandidates = _chunk6WXBENUZjs.extractValidCandidates; exports.groupTokensByFile = _chunk6WXBENUZjs.groupTokensByFile; exports.loadRuntimeContexts = _chunk6WXBENUZjs.loadRuntimeContexts; exports.logger = _chunk6WXBENUZjs.logger_default; exports.mountTailwindcssPatchCommands = _chunk6WXBENUZjs.mountTailwindcssPatchCommands; exports.normalizeOptions = _chunk6WXBENUZjs.normalizeOptions; exports.runTailwindBuild = _chunk6WXBENUZjs.runTailwindBuild; exports.tailwindcssPatchCommands = _chunk6WXBENUZjs.tailwindcssPatchCommands;
|
package/dist/index.mjs
CHANGED