@best-shot/preset-style 0.15.0 → 0.15.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/lib/apply-stylesheet.mjs +9 -5
- package/package.json +7 -7
package/lib/apply-stylesheet.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { fileURLToPath } from 'node:url';
|
|
2
2
|
|
|
3
3
|
import extToRegexp from 'ext-to-regexp';
|
|
4
|
-
import { haveLocalDependencies } from 'settingz';
|
|
4
|
+
import { haveDevDependencies, haveLocalDependencies } from 'settingz';
|
|
5
5
|
import slashToRegexp from 'slash-to-regexp';
|
|
6
6
|
|
|
7
7
|
const auto = (resourcePath, resourceQuery) =>
|
|
@@ -106,10 +106,14 @@ export function applyStylesheet({ extract }) {
|
|
|
106
106
|
.loader(fileURLToPath(import.meta.resolve('postcss-loader')))
|
|
107
107
|
.options({
|
|
108
108
|
postcssOptions: {
|
|
109
|
-
plugins:
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
109
|
+
plugins: haveLocalDependencies('tailwindcss')
|
|
110
|
+
? [
|
|
111
|
+
haveDevDependencies('@tailwindcss/postcss')
|
|
112
|
+
? '@tailwindcss/postcss'
|
|
113
|
+
: 'tailwindcss',
|
|
114
|
+
'postcss-preset-evergreen/lib/tailwind.cjs',
|
|
115
|
+
]
|
|
116
|
+
: ['postcss-preset-evergreen'],
|
|
113
117
|
},
|
|
114
118
|
});
|
|
115
119
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@best-shot/preset-style",
|
|
3
|
-
"version": "0.15.
|
|
3
|
+
"version": "0.15.2",
|
|
4
4
|
"description": "A `best-shot` preset for stylesheet",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": {
|
|
@@ -39,24 +39,24 @@
|
|
|
39
39
|
"css-minimizer-webpack-plugin": "^7.0.0",
|
|
40
40
|
"cssnano": "^7.0.6",
|
|
41
41
|
"ext-to-regexp": "^0.1.0",
|
|
42
|
-
"less": "^4.2.
|
|
42
|
+
"less": "^4.2.2",
|
|
43
43
|
"less-loader": "^12.2.0",
|
|
44
44
|
"mini-css-extract-plugin": "^2.9.2",
|
|
45
|
-
"postcss": "^8.
|
|
45
|
+
"postcss": "^8.5.1",
|
|
46
46
|
"postcss-loader": "^8.1.1",
|
|
47
|
-
"postcss-preset-evergreen": "^0.
|
|
47
|
+
"postcss-preset-evergreen": "^0.8.1",
|
|
48
48
|
"resolve-url-loader": "^5.0.0",
|
|
49
|
-
"sass-embedded": "^1.83.
|
|
49
|
+
"sass-embedded": "^1.83.4",
|
|
50
50
|
"sass-loader": "^16.0.4",
|
|
51
51
|
"settingz": "^0.2.0",
|
|
52
52
|
"slash-to-regexp": "^0.1.0",
|
|
53
53
|
"style-loader": "^4.0.0"
|
|
54
54
|
},
|
|
55
55
|
"peerDependencies": {
|
|
56
|
-
"@best-shot/core": "~0.12.
|
|
56
|
+
"@best-shot/core": "~0.12.2"
|
|
57
57
|
},
|
|
58
58
|
"engines": {
|
|
59
|
-
"node": ">=22.11.0 || ^20.
|
|
59
|
+
"node": ">=22.11.0 || ^20.18.0"
|
|
60
60
|
},
|
|
61
61
|
"publishConfig": {
|
|
62
62
|
"access": "public",
|