tailwindcss-patch 1.1.0 → 1.2.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
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-
|
|
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,8 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tailwindcss-patch",
|
|
3
|
-
"version": "1.1
|
|
3
|
+
"version": "1.2.1",
|
|
4
4
|
"description": "patch tailwindcss for exposing context",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
|
+
"module": "./dist/index.mjs",
|
|
6
7
|
"types": "dist/types/index.d.ts",
|
|
7
8
|
"bin": {
|
|
8
9
|
"tw-patch": "bin/tw-patch.js",
|
|
@@ -26,17 +27,17 @@
|
|
|
26
27
|
"@types/babel__generator": "^7.6.4",
|
|
27
28
|
"@types/babel__traverse": "^7.18.5",
|
|
28
29
|
"@types/resolve": "^1.20.2",
|
|
29
|
-
"@types/semver": "^7.
|
|
30
|
+
"@types/semver": "^7.5.0",
|
|
30
31
|
"defu": "^6.1.2",
|
|
31
|
-
"pkg-types": "^1.0.
|
|
32
|
+
"pkg-types": "^1.0.3",
|
|
32
33
|
"postcss": "^8.4.23",
|
|
33
34
|
"tailwindcss": "^3.3.2"
|
|
34
35
|
},
|
|
35
36
|
"dependencies": {
|
|
36
|
-
"@babel/generator": "^7.21.
|
|
37
|
-
"@babel/parser": "^7.21.
|
|
38
|
-
"@babel/traverse": "^7.21.
|
|
39
|
-
"@babel/types": "^7.21.
|
|
37
|
+
"@babel/generator": "^7.21.5",
|
|
38
|
+
"@babel/parser": "^7.21.8",
|
|
39
|
+
"@babel/traverse": "^7.21.5",
|
|
40
|
+
"@babel/types": "^7.21.5",
|
|
40
41
|
"resolve": "^1.22.2",
|
|
41
42
|
"semver": "^7.5.0"
|
|
42
43
|
},
|