styimat 3.4.0 → 3.4.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/bin/convert-styimat.js +3 -3
- package/package.json +4 -2
package/bin/convert-styimat.js
CHANGED
|
@@ -174,9 +174,9 @@ async function convertAndOutput(inputContent, outputFile) {
|
|
|
174
174
|
async function convertStyimat(inputContent) {
|
|
175
175
|
// 尝试从多个位置加载 styimat.js
|
|
176
176
|
const possiblePaths = [
|
|
177
|
-
path.join(__dirname, 'styimat.js'),
|
|
178
|
-
path.join(process.cwd(), 'styimat.js'),
|
|
179
|
-
path.join(process.cwd(), 'node_modules', 'styimat', 'styimat.js')
|
|
177
|
+
path.join(__dirname, 'dist', 'styimat.js'),
|
|
178
|
+
path.join(process.cwd(), 'dist', 'styimat.js'),
|
|
179
|
+
path.join(process.cwd(), 'node_modules', 'styimat', 'dist', 'styimat.js')
|
|
180
180
|
];
|
|
181
181
|
|
|
182
182
|
let styimatModule = null;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "styimat",
|
|
3
|
-
"version": "3.4.
|
|
3
|
+
"version": "3.4.2",
|
|
4
4
|
"description": "一个高效的CSS变量预处理库,支持Lab/LCH颜色空间自动转换、嵌套选择器和Display P3广色域,让现代CSS开发更简洁强大。",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"css",
|
|
@@ -28,7 +28,9 @@
|
|
|
28
28
|
"import": "./bin/convert-styimat.js",
|
|
29
29
|
"require": "./bin/convert-styimat.js",
|
|
30
30
|
"default": "./bin/convert-styimat.js"
|
|
31
|
-
}
|
|
31
|
+
},
|
|
32
|
+
"./umd": "./dist/styimat.min.js",
|
|
33
|
+
"./esm": "./dist/styimat.min.mjs"
|
|
32
34
|
},
|
|
33
35
|
"browser": "dist/styimat.min.js",
|
|
34
36
|
"unpkg": "dist/styimat.min.js",
|