tailwindcss-patch 7.1.5 → 7.1.6

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.
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; } var _class;// ../../node_modules/.pnpm/tsup@8.5.0_jiti@2.5.1_postcss@8.5.6_tsx@4.20.5_typescript@5.9.2_yaml@2.8.1/node_modules/tsup/assets/cjs_shims.js
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; } var _class;// ../../node_modules/.pnpm/tsup@8.5.0_jiti@2.6.0_postcss@8.5.6_tsx@4.20.6_typescript@5.9.2_yaml@2.8.1/node_modules/tsup/assets/cjs_shims.js
2
2
  var getImportMetaUrl = () => typeof document === "undefined" ? new URL(`file:${__filename}`).href : document.currentScript && document.currentScript.src || new URL("main.js", document.baseURI).href;
3
3
  var importMetaUrl = /* @__PURE__ */ getImportMetaUrl();
4
4
 
package/dist/cli.js CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
 
6
6
 
7
- var _chunkN2DIY7M3js = require('./chunk-N2DIY7M3.js');
7
+ var _chunkZKCG5Q25js = require('./chunk-ZKCG5Q25.js');
8
8
 
9
9
  // src/cli.ts
10
10
  var _process = require('process'); var _process2 = _interopRequireDefault(_process);
@@ -16,26 +16,26 @@ function init() {
16
16
  }
17
17
  var cli = _cac2.default.call(void 0, );
18
18
  cli.command("install", "patch install").action(() => {
19
- const twPatcher = new (0, _chunkN2DIY7M3js.TailwindcssPatcher)({
20
- patch: _chunkN2DIY7M3js.getPatchOptions.call(void 0, )
19
+ const twPatcher = new (0, _chunkZKCG5Q25js.TailwindcssPatcher)({
20
+ patch: _chunkZKCG5Q25js.getPatchOptions.call(void 0, )
21
21
  });
22
22
  twPatcher.patch();
23
23
  });
24
24
  cli.command("init").action(async () => {
25
25
  await init();
26
- _chunkN2DIY7M3js.logger_default.success(`\u2728 ${_config.CONFIG_NAME}.config.ts initialized!`);
26
+ _chunkZKCG5Q25js.logger_default.success(`\u2728 ${_config.CONFIG_NAME}.config.ts initialized!`);
27
27
  });
28
28
  cli.command("extract").option("--css [file]", "css file entries").action(async (options) => {
29
29
  const { config } = await _config.getConfig.call(void 0, );
30
30
  const file = options.css;
31
31
  if (config) {
32
- const twPatcher = new (0, _chunkN2DIY7M3js.TailwindcssPatcher)(
32
+ const twPatcher = new (0, _chunkZKCG5Q25js.TailwindcssPatcher)(
33
33
  {
34
- patch: _chunkN2DIY7M3js.defuOverrideArray.call(void 0,
34
+ patch: _chunkZKCG5Q25js.defuOverrideArray.call(void 0,
35
35
  config.patch,
36
36
  {
37
37
  resolve: {
38
- paths: [_chunkN2DIY7M3js.importMetaUrl]
38
+ paths: [_chunkZKCG5Q25js.importMetaUrl]
39
39
  },
40
40
  tailwindcss: {
41
41
  v4: {
@@ -47,7 +47,7 @@ cli.command("extract").option("--css [file]", "css file entries").action(async (
47
47
  }
48
48
  );
49
49
  const p = await twPatcher.extract();
50
- p && _chunkN2DIY7M3js.logger_default.success(`\u2728 tailwindcss-patch extract success! file path: ${p.filename}, classList length: ${p.classList.length}`);
50
+ p && _chunkZKCG5Q25js.logger_default.success(`\u2728 tailwindcss-patch extract success! file path: ${p.filename}, classList length: ${p.classList.length}`);
51
51
  }
52
52
  });
53
53
  cli.help();
package/dist/index.js CHANGED
@@ -8,7 +8,7 @@
8
8
 
9
9
 
10
10
 
11
- var _chunkN2DIY7M3js = require('./chunk-N2DIY7M3.js');
11
+ var _chunkZKCG5Q25js = require('./chunk-ZKCG5Q25.js');
12
12
 
13
13
  // src/index.ts
14
14
  var _config = require('@tailwindcss-mangle/config');
@@ -23,4 +23,4 @@ var _config = require('@tailwindcss-mangle/config');
23
23
 
24
24
 
25
25
 
26
- exports.CacheManager = _chunkN2DIY7M3js.CacheManager; exports.TailwindcssPatcher = _chunkN2DIY7M3js.TailwindcssPatcher; exports.defineConfig = _config.defineConfig; exports.getCacheOptions = _chunkN2DIY7M3js.getCacheOptions; exports.internalPatch = _chunkN2DIY7M3js.internalPatch; exports.logger = _chunkN2DIY7M3js.logger_default; exports.monkeyPatchForExposingContextV2 = _chunkN2DIY7M3js.monkeyPatchForExposingContextV2; exports.monkeyPatchForExposingContextV3 = _chunkN2DIY7M3js.monkeyPatchForExposingContextV3; exports.monkeyPatchForSupportingCustomUnitV3 = _chunkN2DIY7M3js.monkeyPatchForSupportingCustomUnitV3; exports.monkeyPatchForSupportingCustomUnitV4 = _chunkN2DIY7M3js.monkeyPatchForSupportingCustomUnitV4;
26
+ exports.CacheManager = _chunkZKCG5Q25js.CacheManager; exports.TailwindcssPatcher = _chunkZKCG5Q25js.TailwindcssPatcher; exports.defineConfig = _config.defineConfig; exports.getCacheOptions = _chunkZKCG5Q25js.getCacheOptions; exports.internalPatch = _chunkZKCG5Q25js.internalPatch; exports.logger = _chunkZKCG5Q25js.logger_default; exports.monkeyPatchForExposingContextV2 = _chunkZKCG5Q25js.monkeyPatchForExposingContextV2; exports.monkeyPatchForExposingContextV3 = _chunkZKCG5Q25js.monkeyPatchForExposingContextV3; exports.monkeyPatchForSupportingCustomUnitV3 = _chunkZKCG5Q25js.monkeyPatchForSupportingCustomUnitV3; exports.monkeyPatchForSupportingCustomUnitV4 = _chunkZKCG5Q25js.monkeyPatchForSupportingCustomUnitV4;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tailwindcss-patch",
3
- "version": "7.1.5",
3
+ "version": "7.1.6",
4
4
  "description": "patch tailwindcss for exposing context and extract classes",
5
5
  "author": "ice breaker <1324318532@qq.com>",
6
6
  "license": "MIT",
@@ -54,18 +54,18 @@
54
54
  "@babel/parser": "^7.28.4",
55
55
  "@babel/traverse": "^7.28.4",
56
56
  "@babel/types": "^7.28.4",
57
+ "@tailwindcss/node": "^4.1.13",
57
58
  "cac": "^6.7.14",
58
59
  "consola": "^3.4.2",
59
- "fs-extra": "^11.3.1",
60
+ "fs-extra": "^11.3.2",
60
61
  "local-pkg": "^1.1.2",
61
62
  "pathe": "^2.0.3",
62
63
  "postcss": "^8.5.6",
63
64
  "semver": "^7.7.2",
64
65
  "tailwindcss-config": "^1.1.1",
65
- "@tailwindcss-mangle/config": "^5.1.1"
66
+ "@tailwindcss-mangle/config": "^5.1.2"
66
67
  },
67
68
  "devDependencies": {
68
- "@tailwindcss/node": "^4.1.13",
69
69
  "@tailwindcss/oxide": "^4.1.13",
70
70
  "@tailwindcss/postcss": "^4.1.13",
71
71
  "@tailwindcss/vite": "^4.1.13",