tailwindcss-patch 3.0.0 → 3.0.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/bin/tw-patch.js +1 -0
- package/dist/cli.cjs +1 -1
- package/dist/cli.mjs +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +4 -4
- package/dist/index.d.mts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.mjs +1 -1
- package/dist/shared/{tailwindcss-patch.2fb4223c.cjs → tailwindcss-patch.1e524aba.cjs} +4 -1
- package/dist/shared/{tailwindcss-patch.c6a99ac9.mjs → tailwindcss-patch.9adeca36.mjs} +4 -1
- package/package.json +10 -9
package/bin/tw-patch.js
CHANGED
package/dist/cli.cjs
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
const process = require('node:process');
|
|
4
4
|
const cac = require('cac');
|
|
5
5
|
const config = require('@tailwindcss-mangle/config');
|
|
6
|
-
const index = require('./shared/tailwindcss-patch.
|
|
6
|
+
const index = require('./shared/tailwindcss-patch.1e524aba.cjs');
|
|
7
7
|
require('@babel/types');
|
|
8
8
|
require('node:path');
|
|
9
9
|
require('node:fs');
|
package/dist/cli.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import process from 'node:process';
|
|
2
2
|
import cac from 'cac';
|
|
3
3
|
import { configName, getConfig, initConfig } from '@tailwindcss-mangle/config';
|
|
4
|
-
import { T as TailwindcssPatcher, g as getPatchOptions } from './shared/tailwindcss-patch.
|
|
4
|
+
import { T as TailwindcssPatcher, g as getPatchOptions } from './shared/tailwindcss-patch.9adeca36.mjs';
|
|
5
5
|
import '@babel/types';
|
|
6
6
|
import 'node:path';
|
|
7
7
|
import 'node:fs';
|
package/dist/index.cjs
CHANGED
package/dist/index.d.cts
CHANGED
|
@@ -135,12 +135,12 @@ declare function inspectPostcssPlugin(content: string): {
|
|
|
135
135
|
};
|
|
136
136
|
|
|
137
137
|
declare function monkeyPatchForExposingContextV3(twDir: string, opt: InternalPatchOptions): {
|
|
138
|
-
processTailwindFeatures?: string
|
|
139
|
-
plugin?: string
|
|
138
|
+
processTailwindFeatures?: string;
|
|
139
|
+
plugin?: string;
|
|
140
140
|
} & Record<string, any>;
|
|
141
141
|
declare function monkeyPatchForExposingContextV2(twDir: string, opt: InternalPatchOptions): {
|
|
142
|
-
processTailwindFeatures?: string
|
|
143
|
-
plugin?: string
|
|
142
|
+
processTailwindFeatures?: string;
|
|
143
|
+
plugin?: string;
|
|
144
144
|
} & Record<string, any>;
|
|
145
145
|
declare function internalPatch(pkgJsonPath: string | undefined, options: InternalPatchOptions): any | undefined;
|
|
146
146
|
|
package/dist/index.d.mts
CHANGED
|
@@ -135,12 +135,12 @@ declare function inspectPostcssPlugin(content: string): {
|
|
|
135
135
|
};
|
|
136
136
|
|
|
137
137
|
declare function monkeyPatchForExposingContextV3(twDir: string, opt: InternalPatchOptions): {
|
|
138
|
-
processTailwindFeatures?: string
|
|
139
|
-
plugin?: string
|
|
138
|
+
processTailwindFeatures?: string;
|
|
139
|
+
plugin?: string;
|
|
140
140
|
} & Record<string, any>;
|
|
141
141
|
declare function monkeyPatchForExposingContextV2(twDir: string, opt: InternalPatchOptions): {
|
|
142
|
-
processTailwindFeatures?: string
|
|
143
|
-
plugin?: string
|
|
142
|
+
processTailwindFeatures?: string;
|
|
143
|
+
plugin?: string;
|
|
144
144
|
} & Record<string, any>;
|
|
145
145
|
declare function internalPatch(pkgJsonPath: string | undefined, options: InternalPatchOptions): any | undefined;
|
|
146
146
|
|
package/dist/index.d.ts
CHANGED
|
@@ -135,12 +135,12 @@ declare function inspectPostcssPlugin(content: string): {
|
|
|
135
135
|
};
|
|
136
136
|
|
|
137
137
|
declare function monkeyPatchForExposingContextV3(twDir: string, opt: InternalPatchOptions): {
|
|
138
|
-
processTailwindFeatures?: string
|
|
139
|
-
plugin?: string
|
|
138
|
+
processTailwindFeatures?: string;
|
|
139
|
+
plugin?: string;
|
|
140
140
|
} & Record<string, any>;
|
|
141
141
|
declare function monkeyPatchForExposingContextV2(twDir: string, opt: InternalPatchOptions): {
|
|
142
|
-
processTailwindFeatures?: string
|
|
143
|
-
plugin?: string
|
|
142
|
+
processTailwindFeatures?: string;
|
|
143
|
+
plugin?: string;
|
|
144
144
|
} & Record<string, any>;
|
|
145
145
|
declare function internalPatch(pkgJsonPath: string | undefined, options: InternalPatchOptions): any | undefined;
|
|
146
146
|
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { C as CacheManager, T as TailwindcssPatcher, f as ensureDir, e as ensureFileContent, d as getCacheOptions, h as getPackageInfoSync, a as inspectPostcssPlugin, i as inspectProcessTailwindFeaturesReturnContext, c as internalPatch, j as isObject, b as monkeyPatchForExposingContextV2, m as monkeyPatchForExposingContextV3, r as requireResolve } from './shared/tailwindcss-patch.
|
|
1
|
+
export { C as CacheManager, T as TailwindcssPatcher, f as ensureDir, e as ensureFileContent, d as getCacheOptions, h as getPackageInfoSync, a as inspectPostcssPlugin, i as inspectProcessTailwindFeaturesReturnContext, c as internalPatch, j as isObject, b as monkeyPatchForExposingContextV2, m as monkeyPatchForExposingContextV3, r as requireResolve } from './shared/tailwindcss-patch.9adeca36.mjs';
|
|
2
2
|
export { defineConfig } from '@tailwindcss-mangle/config';
|
|
3
3
|
import 'node:path';
|
|
4
4
|
import 'node:fs';
|
|
@@ -584,9 +584,12 @@ async function processTailwindcss(options) {
|
|
|
584
584
|
}
|
|
585
585
|
config = result.filepath;
|
|
586
586
|
}
|
|
587
|
+
const id = requireResolve("tailwindcss", {
|
|
588
|
+
basedir: options.cwd
|
|
589
|
+
});
|
|
587
590
|
return await postcss__default([
|
|
588
591
|
// eslint-disable-next-line ts/no-var-requires, ts/no-require-imports
|
|
589
|
-
require(
|
|
592
|
+
require(id)({
|
|
590
593
|
config
|
|
591
594
|
})
|
|
592
595
|
]).process("@tailwind base;@tailwind components;@tailwind utilities;", {
|
|
@@ -566,9 +566,12 @@ async function processTailwindcss(options) {
|
|
|
566
566
|
}
|
|
567
567
|
config = result.filepath;
|
|
568
568
|
}
|
|
569
|
+
const id = requireResolve("tailwindcss", {
|
|
570
|
+
basedir: options.cwd
|
|
571
|
+
});
|
|
569
572
|
return await postcss([
|
|
570
573
|
// eslint-disable-next-line ts/no-var-requires, ts/no-require-imports
|
|
571
|
-
require(
|
|
574
|
+
require(id)({
|
|
572
575
|
config
|
|
573
576
|
})
|
|
574
577
|
]).process("@tailwind base;@tailwind components;@tailwind utilities;", {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tailwindcss-patch",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.2",
|
|
4
4
|
"description": "patch tailwindcss for exposing context and extract classes",
|
|
5
5
|
"author": "SonOfMagic <qq1324318532@gmail.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -19,6 +19,7 @@
|
|
|
19
19
|
"class"
|
|
20
20
|
],
|
|
21
21
|
"main": "./dist/index.cjs",
|
|
22
|
+
"module": "./dist/index.mjs",
|
|
22
23
|
"types": "./dist/index.d.ts",
|
|
23
24
|
"bin": {
|
|
24
25
|
"tw-patch": "bin/tw-patch.js",
|
|
@@ -41,17 +42,17 @@
|
|
|
41
42
|
}
|
|
42
43
|
},
|
|
43
44
|
"dependencies": {
|
|
44
|
-
"@babel/generator": "^7.24.
|
|
45
|
-
"@babel/parser": "^7.24.
|
|
46
|
-
"@babel/traverse": "^7.24.
|
|
47
|
-
"@babel/types": "^7.24.
|
|
45
|
+
"@babel/generator": "^7.24.7",
|
|
46
|
+
"@babel/parser": "^7.24.7",
|
|
47
|
+
"@babel/traverse": "^7.24.7",
|
|
48
|
+
"@babel/types": "^7.24.7",
|
|
48
49
|
"cac": "^6.7.14",
|
|
49
|
-
"jiti": "^1.21.
|
|
50
|
-
"lilconfig": "^3.1.
|
|
50
|
+
"jiti": "^1.21.6",
|
|
51
|
+
"lilconfig": "^3.1.2",
|
|
51
52
|
"postcss": "^8.4.38",
|
|
52
53
|
"resolve": "^1.22.8",
|
|
53
54
|
"semver": "^7.6.2",
|
|
54
|
-
"@tailwindcss-mangle/config": "^
|
|
55
|
+
"@tailwindcss-mangle/config": "^3.0.0"
|
|
55
56
|
},
|
|
56
57
|
"devDependencies": {
|
|
57
58
|
"@types/babel__generator": "^7.6.8",
|
|
@@ -60,7 +61,7 @@
|
|
|
60
61
|
"@types/semver": "^7.5.8",
|
|
61
62
|
"pkg-types": "^1.1.1",
|
|
62
63
|
"postcss7": "npm:postcss@7",
|
|
63
|
-
"tailwindcss": "^3.4.
|
|
64
|
+
"tailwindcss": "^3.4.4",
|
|
64
65
|
"tailwindcss2": "npm:@tailwindcss/postcss7-compat@^2.2.17"
|
|
65
66
|
},
|
|
66
67
|
"directories": {
|