tailwindcss-config 2.0.7 → 2.0.8
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.d.cts +12 -0
- package/dist/module-cache.d.cts +2 -0
- package/dist/utils.d.cts +1 -0
- package/package.json +15 -7
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { Config } from 'tailwindcss';
|
|
2
|
+
export interface LoadConfigOptions {
|
|
3
|
+
cwd: string;
|
|
4
|
+
config: string;
|
|
5
|
+
moduleName: string;
|
|
6
|
+
}
|
|
7
|
+
export type LoadConfigResult = null | {
|
|
8
|
+
filepath: string;
|
|
9
|
+
config: Config;
|
|
10
|
+
isEmpty?: boolean;
|
|
11
|
+
};
|
|
12
|
+
export declare function loadConfig(options?: Partial<LoadConfigOptions>): Promise<LoadConfigResult>;
|
package/dist/utils.d.cts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { defu, defuOverrideArray, } from '@weapp-tailwindcss/shared';
|
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.8",
|
|
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",
|
|
@@ -22,9 +22,14 @@
|
|
|
22
22
|
"sideEffects": false,
|
|
23
23
|
"exports": {
|
|
24
24
|
".": {
|
|
25
|
-
"
|
|
26
|
-
|
|
27
|
-
|
|
25
|
+
"import": {
|
|
26
|
+
"types": "./dist/index.d.ts",
|
|
27
|
+
"default": "./dist/index.js"
|
|
28
|
+
},
|
|
29
|
+
"require": {
|
|
30
|
+
"types": "./dist/index.d.cts",
|
|
31
|
+
"default": "./dist/index.cjs"
|
|
32
|
+
}
|
|
28
33
|
}
|
|
29
34
|
},
|
|
30
35
|
"main": "./dist/index.cjs",
|
|
@@ -40,15 +45,18 @@
|
|
|
40
45
|
"access": "public",
|
|
41
46
|
"registry": "https://registry.npmjs.org"
|
|
42
47
|
},
|
|
48
|
+
"peerDependencies": {
|
|
49
|
+
"tailwindcss": "^3.0.0 || ^4.0.0"
|
|
50
|
+
},
|
|
43
51
|
"dependencies": {
|
|
44
|
-
"@weapp-tailwindcss/shared": "2.0.
|
|
52
|
+
"@weapp-tailwindcss/shared": "2.0.5",
|
|
45
53
|
"jiti": "2.7.0",
|
|
46
54
|
"lilconfig": "^3.1.4"
|
|
47
55
|
},
|
|
48
56
|
"scripts": {
|
|
49
57
|
"dev": "tsdown --watch --sourcemap",
|
|
50
|
-
"build": "tsdown &&
|
|
51
|
-
"build:types": "tsc -p tsconfig.build.json",
|
|
58
|
+
"build": "tsdown && pnpm build:types",
|
|
59
|
+
"build:types": "tsc -p tsconfig.build.json && tsx ../../tools/weapp-tailwindcss-scripts/src/duplicate-cjs-declarations.ts .",
|
|
52
60
|
"test": "vitest run",
|
|
53
61
|
"test:dev": "vitest",
|
|
54
62
|
"release": "pnpm publish",
|