tailwindcss-config 2.0.6 → 2.0.7
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/index.cjs +3 -6
- package/dist/index.js +2 -4
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
|
|
2
|
+
// \0rolldown/runtime.js
|
|
3
3
|
var __create = Object.create;
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
5
5
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -20,7 +20,6 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
20
20
|
value: mod,
|
|
21
21
|
enumerable: true
|
|
22
22
|
}) : target, mod));
|
|
23
|
-
//#endregion
|
|
24
23
|
let node_path = require("node:path");
|
|
25
24
|
node_path = __toESM(node_path, 1);
|
|
26
25
|
let node_process = require("node:process");
|
|
@@ -29,7 +28,7 @@ let jiti = require("jiti");
|
|
|
29
28
|
let lilconfig = require("lilconfig");
|
|
30
29
|
let node_module = require("node:module");
|
|
31
30
|
let _weapp_tailwindcss_shared = require("@weapp-tailwindcss/shared");
|
|
32
|
-
|
|
31
|
+
// src/module-cache.ts
|
|
33
32
|
const require$1 = (0, node_module.createRequire)(require("url").pathToFileURL(__filename).href);
|
|
34
33
|
/** 配置及本地辅助模块每次重新执行,已安装依赖继续复用原生缓存。 */
|
|
35
34
|
function clearConfigModuleCache(filename) {
|
|
@@ -59,8 +58,7 @@ function clearConfigModuleCache(filename) {
|
|
|
59
58
|
}
|
|
60
59
|
if (root) visit(root);
|
|
61
60
|
}
|
|
62
|
-
|
|
63
|
-
//#region src/index.ts
|
|
61
|
+
// src/index.ts
|
|
64
62
|
async function loadConfig(options) {
|
|
65
63
|
const jiti$1 = (0, jiti.createJiti)(require("url").pathToFileURL(__filename).href, {
|
|
66
64
|
moduleCache: true,
|
|
@@ -97,5 +95,4 @@ async function loadConfig(options) {
|
|
|
97
95
|
return await searcher.load(configPath);
|
|
98
96
|
} else return await searcher.search(cwd);
|
|
99
97
|
}
|
|
100
|
-
//#endregion
|
|
101
98
|
exports.loadConfig = loadConfig;
|
package/dist/index.js
CHANGED
|
@@ -4,7 +4,7 @@ import process from "node:process";
|
|
|
4
4
|
import { createJiti } from "jiti";
|
|
5
5
|
import { lilconfig } from "lilconfig";
|
|
6
6
|
import { defuOverrideArray } from "@weapp-tailwindcss/shared";
|
|
7
|
-
|
|
7
|
+
// src/module-cache.ts
|
|
8
8
|
const require = createRequire(import.meta.url);
|
|
9
9
|
/** 配置及本地辅助模块每次重新执行,已安装依赖继续复用原生缓存。 */
|
|
10
10
|
function clearConfigModuleCache(filename) {
|
|
@@ -34,8 +34,7 @@ function clearConfigModuleCache(filename) {
|
|
|
34
34
|
}
|
|
35
35
|
if (root) visit(root);
|
|
36
36
|
}
|
|
37
|
-
|
|
38
|
-
//#region src/index.ts
|
|
37
|
+
// src/index.ts
|
|
39
38
|
async function loadConfig(options) {
|
|
40
39
|
const jiti = createJiti(import.meta.url, {
|
|
41
40
|
moduleCache: true,
|
|
@@ -72,5 +71,4 @@ async function loadConfig(options) {
|
|
|
72
71
|
return await searcher.load(configPath);
|
|
73
72
|
} else return await searcher.search(cwd);
|
|
74
73
|
}
|
|
75
|
-
//#endregion
|
|
76
74
|
export { loadConfig };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tailwindcss-config",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.0.
|
|
4
|
+
"version": "2.0.7",
|
|
5
5
|
"description": "Tailwind CSS configuration loader for cross-platform toolchains. 跨端工具链的 Tailwind CSS 配置加载器。",
|
|
6
6
|
"author": "ice breaker <1324318532@qq.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"dependencies": {
|
|
44
44
|
"@weapp-tailwindcss/shared": "2.0.4",
|
|
45
45
|
"jiti": "2.7.0",
|
|
46
|
-
"lilconfig": "^3.1.
|
|
46
|
+
"lilconfig": "^3.1.4"
|
|
47
47
|
},
|
|
48
48
|
"scripts": {
|
|
49
49
|
"dev": "tsdown --watch --sourcemap",
|