tailwindcss-patch 3.0.1 → 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 CHANGED
@@ -1,6 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  const fs = require('node:fs')
3
3
  const path = require('node:path')
4
+
4
5
  const cliPath = path.resolve(__dirname, '../dist/cli.cjs')
5
6
  if (fs.existsSync(cliPath)) {
6
7
  require(cliPath)
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 | undefined;
139
- plugin?: string | undefined;
138
+ processTailwindFeatures?: string;
139
+ plugin?: string;
140
140
  } & Record<string, any>;
141
141
  declare function monkeyPatchForExposingContextV2(twDir: string, opt: InternalPatchOptions): {
142
- processTailwindFeatures?: string | undefined;
143
- plugin?: string | undefined;
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 | undefined;
139
- plugin?: string | undefined;
138
+ processTailwindFeatures?: string;
139
+ plugin?: string;
140
140
  } & Record<string, any>;
141
141
  declare function monkeyPatchForExposingContextV2(twDir: string, opt: InternalPatchOptions): {
142
- processTailwindFeatures?: string | undefined;
143
- plugin?: string | undefined;
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 | undefined;
139
- plugin?: string | undefined;
138
+ processTailwindFeatures?: string;
139
+ plugin?: string;
140
140
  } & Record<string, any>;
141
141
  declare function monkeyPatchForExposingContextV2(twDir: string, opt: InternalPatchOptions): {
142
- processTailwindFeatures?: string | undefined;
143
- plugin?: string | undefined;
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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tailwindcss-patch",
3
- "version": "3.0.1",
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",
@@ -51,7 +52,7 @@
51
52
  "postcss": "^8.4.38",
52
53
  "resolve": "^1.22.8",
53
54
  "semver": "^7.6.2",
54
- "@tailwindcss-mangle/config": "^2.2.2"
55
+ "@tailwindcss-mangle/config": "^3.0.0"
55
56
  },
56
57
  "devDependencies": {
57
58
  "@types/babel__generator": "^7.6.8",