tailwindcss-patch 1.1.0 → 1.1.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.js CHANGED
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var patcher = require('./patcher-8dfb86e3.js');
3
+ var patcher = require('./patcher-3d84b17b.js');
4
4
  require('path');
5
5
  require('fs');
6
6
  require('semver');
package/dist/index.js CHANGED
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var path = require('path');
6
6
  var fs = require('fs');
7
- var patcher = require('./patcher-8dfb86e3.js');
7
+ var patcher = require('./patcher-3d84b17b.js');
8
8
  require('semver');
9
9
  require('@babel/types');
10
10
  require('@babel/generator');
@@ -18,9 +18,7 @@ var path__default = /*#__PURE__*/_interopDefaultCompat(path);
18
18
  var fs__default = /*#__PURE__*/_interopDefaultCompat(fs);
19
19
 
20
20
  function getTailwindcssEntry(basedir = process.cwd()) {
21
- return patcher.requireResolve('tailwindcss', {
22
- basedir
23
- });
21
+ return patcher.requireResolve('tailwindcss');
24
22
  }
25
23
  function getContexts(basedir) {
26
24
  const twPath = getTailwindcssEntry(basedir);
@@ -226,11 +226,9 @@ const defaultOptions = {
226
226
  };
227
227
 
228
228
  function getInstalledPkgJsonPath(options = {}) {
229
- var _a;
230
229
  try {
231
230
  const tmpJsonPath = requireResolve(`tailwindcss/package.json`, {
232
- paths: options.paths,
233
- basedir: (_a = options.basedir) !== null && _a !== void 0 ? _a : process.cwd()
231
+ paths: options.paths
234
232
  });
235
233
  return tmpJsonPath;
236
234
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tailwindcss-patch",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "description": "patch tailwindcss for exposing context",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/types/index.d.ts",
@@ -33,10 +33,10 @@
33
33
  "tailwindcss": "^3.3.2"
34
34
  },
35
35
  "dependencies": {
36
- "@babel/generator": "^7.21.4",
37
- "@babel/parser": "^7.21.4",
38
- "@babel/traverse": "^7.21.4",
39
- "@babel/types": "^7.21.4",
36
+ "@babel/generator": "^7.21.5",
37
+ "@babel/parser": "^7.21.5",
38
+ "@babel/traverse": "^7.21.5",
39
+ "@babel/types": "^7.21.5",
40
40
  "resolve": "^1.22.2",
41
41
  "semver": "^7.5.0"
42
42
  },