tailwindcss-patch 6.0.3 → 6.0.4
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.
|
@@ -177,6 +177,7 @@ var acceptChars = [..."abcdefghijklmnopqrstuvwxyz"];
|
|
|
177
177
|
// src/defaults.ts
|
|
178
178
|
function getDefaultPatchOptions() {
|
|
179
179
|
return {
|
|
180
|
+
packageName: "tailwindcss",
|
|
180
181
|
applyPatches: {
|
|
181
182
|
exportContext: true,
|
|
182
183
|
extendLengthUnits: false
|
|
@@ -777,7 +778,16 @@ var TailwindcssPatcher = (_class = class {
|
|
|
777
778
|
this.cacheOptions = getCacheOptions(options.cache);
|
|
778
779
|
this.patchOptions = getPatchOptions(options.patch);
|
|
779
780
|
this.cacheManager = new CacheManager(this.cacheOptions);
|
|
780
|
-
const packageInfo = _localpkg.getPackageInfoSync.call(void 0,
|
|
781
|
+
const packageInfo = _localpkg.getPackageInfoSync.call(void 0,
|
|
782
|
+
_nullishCoalesce(this.patchOptions.packageName, () => ( "tailwindcss")),
|
|
783
|
+
this.patchOptions.resolve
|
|
784
|
+
// defuOverrideArray<PackageResolvingOptions, Partial<PackageResolvingOptions>[]>(
|
|
785
|
+
// this.patchOptions.resolve!,
|
|
786
|
+
// {
|
|
787
|
+
// paths: [import.meta.dirname],
|
|
788
|
+
// },
|
|
789
|
+
// ),
|
|
790
|
+
);
|
|
781
791
|
if (!packageInfo) {
|
|
782
792
|
throw new Error("tailwindcss not found");
|
|
783
793
|
}
|
|
@@ -173,6 +173,7 @@ var acceptChars = [..."abcdefghijklmnopqrstuvwxyz"];
|
|
|
173
173
|
// src/defaults.ts
|
|
174
174
|
function getDefaultPatchOptions() {
|
|
175
175
|
return {
|
|
176
|
+
packageName: "tailwindcss",
|
|
176
177
|
applyPatches: {
|
|
177
178
|
exportContext: true,
|
|
178
179
|
extendLengthUnits: false
|
|
@@ -773,7 +774,16 @@ var TailwindcssPatcher = class {
|
|
|
773
774
|
this.cacheOptions = getCacheOptions(options.cache);
|
|
774
775
|
this.patchOptions = getPatchOptions(options.patch);
|
|
775
776
|
this.cacheManager = new CacheManager(this.cacheOptions);
|
|
776
|
-
const packageInfo = getPackageInfoSync(
|
|
777
|
+
const packageInfo = getPackageInfoSync(
|
|
778
|
+
this.patchOptions.packageName ?? "tailwindcss",
|
|
779
|
+
this.patchOptions.resolve
|
|
780
|
+
// defuOverrideArray<PackageResolvingOptions, Partial<PackageResolvingOptions>[]>(
|
|
781
|
+
// this.patchOptions.resolve!,
|
|
782
|
+
// {
|
|
783
|
+
// paths: [import.meta.dirname],
|
|
784
|
+
// },
|
|
785
|
+
// ),
|
|
786
|
+
);
|
|
777
787
|
if (!packageInfo) {
|
|
778
788
|
throw new Error("tailwindcss not found");
|
|
779
789
|
}
|
package/dist/cli.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkR73U6A56js = require('./chunk-R73U6A56.js');
|
|
6
6
|
|
|
7
7
|
// src/cli.ts
|
|
8
8
|
var _process = require('process'); var _process2 = _interopRequireDefault(_process);
|
|
@@ -14,21 +14,21 @@ function init() {
|
|
|
14
14
|
}
|
|
15
15
|
var cli = _cac2.default.call(void 0, );
|
|
16
16
|
cli.command("install", "patch install").action(() => {
|
|
17
|
-
const twPatcher = new (0,
|
|
18
|
-
patch:
|
|
17
|
+
const twPatcher = new (0, _chunkR73U6A56js.TailwindcssPatcher)({
|
|
18
|
+
patch: _chunkR73U6A56js.getPatchOptions.call(void 0, )
|
|
19
19
|
});
|
|
20
20
|
twPatcher.patch();
|
|
21
21
|
});
|
|
22
22
|
cli.command("init").action(async () => {
|
|
23
23
|
await init();
|
|
24
|
-
|
|
24
|
+
_chunkR73U6A56js.logger_default.success(`\u2728 ${_config.CONFIG_NAME}.config.ts initialized!`);
|
|
25
25
|
});
|
|
26
26
|
cli.command("extract").action(async () => {
|
|
27
27
|
const { config } = await _config.getConfig.call(void 0, );
|
|
28
28
|
if (config) {
|
|
29
|
-
const twPatcher = new (0,
|
|
29
|
+
const twPatcher = new (0, _chunkR73U6A56js.TailwindcssPatcher)();
|
|
30
30
|
const p = await twPatcher.extract(config.patch);
|
|
31
|
-
|
|
31
|
+
_chunkR73U6A56js.logger_default.success(`\u2728 tailwindcss-patch extract success! file path: ${p}`);
|
|
32
32
|
}
|
|
33
33
|
});
|
|
34
34
|
cli.help();
|
package/dist/cli.mjs
CHANGED
package/dist/index.js
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkR73U6A56js = require('./chunk-R73U6A56.js');
|
|
11
11
|
|
|
12
12
|
// src/index.ts
|
|
13
13
|
var _config = require('@tailwindcss-mangle/config');
|
|
@@ -21,4 +21,4 @@ var _config = require('@tailwindcss-mangle/config');
|
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
|
|
24
|
-
exports.CacheManager =
|
|
24
|
+
exports.CacheManager = _chunkR73U6A56js.CacheManager; exports.TailwindcssPatcher = _chunkR73U6A56js.TailwindcssPatcher; exports.defineConfig = _config.defineConfig; exports.getCacheOptions = _chunkR73U6A56js.getCacheOptions; exports.internalPatch = _chunkR73U6A56js.internalPatch; exports.logger = _chunkR73U6A56js.logger_default; exports.monkeyPatchForExposingContextV2 = _chunkR73U6A56js.monkeyPatchForExposingContextV2; exports.monkeyPatchForExposingContextV3 = _chunkR73U6A56js.monkeyPatchForExposingContextV3; exports.monkeyPatchForSupportingCustomUnit = _chunkR73U6A56js.monkeyPatchForSupportingCustomUnit;
|
package/dist/index.mjs
CHANGED
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
monkeyPatchForExposingContextV2,
|
|
8
8
|
monkeyPatchForExposingContextV3,
|
|
9
9
|
monkeyPatchForSupportingCustomUnit
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-X2JGSXYF.mjs";
|
|
11
11
|
|
|
12
12
|
// src/index.ts
|
|
13
13
|
import { defineConfig } from "@tailwindcss-mangle/config";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tailwindcss-patch",
|
|
3
|
-
"version": "6.0.
|
|
3
|
+
"version": "6.0.4",
|
|
4
4
|
"description": "patch tailwindcss for exposing context and extract classes",
|
|
5
5
|
"author": "ice breaker <1324318532@qq.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
"postcss": "^8.5.2",
|
|
63
63
|
"semver": "^7.7.1",
|
|
64
64
|
"tailwindcss-config": "^1.0.0",
|
|
65
|
-
"@tailwindcss-mangle/config": "^5.0.
|
|
65
|
+
"@tailwindcss-mangle/config": "^5.0.2"
|
|
66
66
|
},
|
|
67
67
|
"devDependencies": {
|
|
68
68
|
"@tailwindcss/node": "^4.0.6",
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
"@tailwindcss/vite": "^4.0.6",
|
|
72
72
|
"tailwindcss": "^4.0.6",
|
|
73
73
|
"tailwindcss-3": "npm:tailwindcss@^3",
|
|
74
|
-
"tailwindcss-4": "npm:tailwindcss@^4"
|
|
74
|
+
"tailwindcss-4": "npm:tailwindcss@^4.0.6"
|
|
75
75
|
},
|
|
76
76
|
"scripts": {
|
|
77
77
|
"dev": "tsup --watch --sourcemap",
|