postcss-tailwindcss 0.0.0 → 0.0.2
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/README.md +2 -2
- package/README.zh.md +2 -2
- package/package.json +9 -2
package/README.md
CHANGED
|
@@ -128,8 +128,8 @@ Resolution is project-aware:
|
|
|
128
128
|
- escaped selectors such as `.hover\\:bg-red-500:hover` are normalized back to `hover:bg-red-500`
|
|
129
129
|
- this package does **not** validate whether a class is truly registered by Tailwind; it only extracts and normalizes syntax
|
|
130
130
|
|
|
131
|
-
## Relationship To `stylelint-plugin-
|
|
131
|
+
## Relationship To `stylelint-plugin-tailwindcss`
|
|
132
132
|
|
|
133
|
-
`stylelint-plugin-
|
|
133
|
+
`stylelint-plugin-tailwindcss` uses this package for selector collection and Tailwind runtime resolution.
|
|
134
134
|
|
|
135
135
|
This package provides the low-level analysis layer; the Stylelint plugin provides the policy and reporting layer.
|
package/README.zh.md
CHANGED
|
@@ -128,8 +128,8 @@ interface TailwindAnalysis {
|
|
|
128
128
|
- `.hover\\:bg-red-500:hover` 这类转义 selector 会被还原成 `hover:bg-red-500`
|
|
129
129
|
- 这个包**不会**判断某个类名是否真的被 Tailwind 注册;它只负责提取和归一化语法
|
|
130
130
|
|
|
131
|
-
## 与 `stylelint-plugin-
|
|
131
|
+
## 与 `stylelint-plugin-tailwindcss` 的关系
|
|
132
132
|
|
|
133
|
-
`stylelint-plugin-
|
|
133
|
+
`stylelint-plugin-tailwindcss` 当前会复用这个包来做 selector 收集和 Tailwind 运行时解析。
|
|
134
134
|
|
|
135
135
|
这个包是底层分析层,Stylelint 插件是在其上叠加规则策略和报错逻辑。
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "postcss-tailwindcss",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.2",
|
|
5
5
|
"description": "PostCSS AST utilities for analyzing Tailwind CSS syntax",
|
|
6
6
|
"author": "ice breaker <1324318532@qq.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"dist"
|
|
37
37
|
],
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"enhanced-resolve": "^5.20.
|
|
39
|
+
"enhanced-resolve": "^5.20.1",
|
|
40
40
|
"get-tsconfig": "^4.13.6",
|
|
41
41
|
"postcss": "^8.5.6",
|
|
42
42
|
"postcss-selector-parser": "^7.1.0",
|
|
@@ -46,10 +46,17 @@
|
|
|
46
46
|
"access": "public",
|
|
47
47
|
"registry": "https://registry.npmjs.org"
|
|
48
48
|
},
|
|
49
|
+
"tsd": {
|
|
50
|
+
"directory": "test-d",
|
|
51
|
+
"compilerOptions": {
|
|
52
|
+
"skipLibCheck": true
|
|
53
|
+
}
|
|
54
|
+
},
|
|
49
55
|
"scripts": {
|
|
50
56
|
"dev": "tsdown --watch --sourcemap",
|
|
51
57
|
"build": "tsdown",
|
|
52
58
|
"test": "vitest run",
|
|
59
|
+
"test:types": "tsd",
|
|
53
60
|
"test:dev": "vitest",
|
|
54
61
|
"release": "pnpm publish",
|
|
55
62
|
"sync": "cnpm sync postcss-tailwindcss",
|