css-typed-vars 0.11.0 → 0.13.0
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 +37 -4
- package/dist/{chunk-P3HJQZ6Y.js → chunk-FWKCSH2F.js} +7 -3
- package/dist/{chunk-CBN3J54B.js → chunk-JGJ53FND.js} +1 -1
- package/dist/{chunk-TR53YUPE.js → chunk-XSFYQPH6.js} +88 -19
- package/dist/cli.cjs +112 -27
- package/dist/cli.js +21 -9
- package/dist/esbuild.cjs +52 -12
- package/dist/esbuild.d.cts +1 -1
- package/dist/esbuild.d.ts +1 -1
- package/dist/esbuild.js +2 -2
- package/dist/{generator-DJ9uOYBP.d.ts → generator-BokM5zux.d.cts} +1 -1
- package/dist/{generator-DJ9uOYBP.d.cts → generator-BokM5zux.d.ts} +1 -1
- package/dist/index.cjs +91 -18
- package/dist/index.d.cts +10 -5
- package/dist/index.d.ts +10 -5
- package/dist/index.js +2 -2
- package/dist/rollup.cjs +52 -12
- package/dist/rollup.d.cts +1 -1
- package/dist/rollup.d.ts +1 -1
- package/dist/rollup.js +2 -2
- package/dist/unplugin.cjs +52 -12
- package/dist/unplugin.d.cts +2 -2
- package/dist/unplugin.d.ts +2 -2
- package/dist/unplugin.js +2 -2
- package/dist/vite.cjs +52 -12
- package/dist/vite.d.cts +1 -1
- package/dist/vite.d.ts +1 -1
- package/dist/vite.js +2 -2
- package/dist/webpack.cjs +52 -12
- package/dist/webpack.d.cts +1 -1
- package/dist/webpack.d.ts +1 -1
- package/dist/webpack.js +2 -2
- package/package.json +4 -4
- package/schema.json +5 -1
package/dist/webpack.d.cts
CHANGED
package/dist/webpack.d.ts
CHANGED
package/dist/webpack.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "css-typed-vars",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.13.0",
|
|
4
4
|
"description": "Generate TypeScript typed constants from CSS custom properties",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -83,13 +83,13 @@
|
|
|
83
83
|
},
|
|
84
84
|
"dependencies": {
|
|
85
85
|
"chokidar": "^5.0.0",
|
|
86
|
-
"
|
|
87
|
-
"
|
|
86
|
+
"picomatch": "^4.0.7",
|
|
87
|
+
"tinyglobby": "^0.2.17",
|
|
88
88
|
"unplugin": "^3.0.0"
|
|
89
89
|
},
|
|
90
90
|
"devDependencies": {
|
|
91
91
|
"@types/node": "^25.5.2",
|
|
92
|
-
"@types/picomatch": "^
|
|
92
|
+
"@types/picomatch": "^4.0.3",
|
|
93
93
|
"tsup": "^8.0.0",
|
|
94
94
|
"typescript": "^5.4.0",
|
|
95
95
|
"vitepress": "^1.6.4",
|
package/schema.json
CHANGED
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
},
|
|
60
60
|
"helpers": {
|
|
61
61
|
"type": "boolean",
|
|
62
|
-
"description": "Also emit the CssVarRef type and the getCssVar/setCssVar/withFallback helpers."
|
|
62
|
+
"description": "Also emit the CssVarRef type and the getCssVar/setCssVar/withFallback/varName helpers."
|
|
63
63
|
},
|
|
64
64
|
"prune": {
|
|
65
65
|
"type": "boolean",
|
|
@@ -77,6 +77,10 @@
|
|
|
77
77
|
"type": "array",
|
|
78
78
|
"items": { "type": "string" },
|
|
79
79
|
"description": "Names (or --prefix-* patterns) that --lint-refs shouldn't report, e.g. vars set from JS."
|
|
80
|
+
},
|
|
81
|
+
"refsSource": {
|
|
82
|
+
"$ref": "#/definitions/globs",
|
|
83
|
+
"description": "Glob(s) of source files (TS/JSX, Vue, HTML, ...) whose var(--name) references --lint-refs checks too."
|
|
80
84
|
}
|
|
81
85
|
}
|
|
82
86
|
}
|