tailwindcss-patch 3.0.0 → 3.0.1

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/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.2fb4223c.cjs');
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.c6a99ac9.mjs';
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
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const index = require('./shared/tailwindcss-patch.2fb4223c.cjs');
3
+ const index = require('./shared/tailwindcss-patch.1e524aba.cjs');
4
4
  const config = require('@tailwindcss-mangle/config');
5
5
  require('node:path');
6
6
  require('node:fs');
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.c6a99ac9.mjs';
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("tailwindcss")({
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("tailwindcss")({
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.0",
3
+ "version": "3.0.1",
4
4
  "description": "patch tailwindcss for exposing context and extract classes",
5
5
  "author": "SonOfMagic <qq1324318532@gmail.com>",
6
6
  "license": "MIT",
@@ -41,13 +41,13 @@
41
41
  }
42
42
  },
43
43
  "dependencies": {
44
- "@babel/generator": "^7.24.6",
45
- "@babel/parser": "^7.24.6",
46
- "@babel/traverse": "^7.24.6",
47
- "@babel/types": "^7.24.6",
44
+ "@babel/generator": "^7.24.7",
45
+ "@babel/parser": "^7.24.7",
46
+ "@babel/traverse": "^7.24.7",
47
+ "@babel/types": "^7.24.7",
48
48
  "cac": "^6.7.14",
49
- "jiti": "^1.21.3",
50
- "lilconfig": "^3.1.1",
49
+ "jiti": "^1.21.6",
50
+ "lilconfig": "^3.1.2",
51
51
  "postcss": "^8.4.38",
52
52
  "resolve": "^1.22.8",
53
53
  "semver": "^7.6.2",
@@ -60,7 +60,7 @@
60
60
  "@types/semver": "^7.5.8",
61
61
  "pkg-types": "^1.1.1",
62
62
  "postcss7": "npm:postcss@7",
63
- "tailwindcss": "^3.4.3",
63
+ "tailwindcss": "^3.4.4",
64
64
  "tailwindcss2": "npm:@tailwindcss/postcss7-compat@^2.2.17"
65
65
  },
66
66
  "directories": {