@pubinfo-pr/config 0.222.3 → 0.223.1
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/unocss/index.mjs +2 -1
- package/package.json +3 -3
- package/src/unocss/index.ts +4 -0
package/dist/unocss/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "../theme.mjs";
|
|
2
2
|
import { t as presetThemes } from "../presetThemes.mjs";
|
|
3
|
-
import { definePreset, presetAttributify, presetIcons, presetTypography, presetUno } from "unocss";
|
|
3
|
+
import { definePreset, presetAttributify, presetIcons, presetTypography, presetUno, transformerDirectives } from "unocss";
|
|
4
4
|
|
|
5
5
|
//#region src/unocss/index.ts
|
|
6
6
|
var unocss_default = definePreset((options) => {
|
|
@@ -16,6 +16,7 @@ var unocss_default = definePreset((options) => {
|
|
|
16
16
|
"vertical-align": "middle"
|
|
17
17
|
} })
|
|
18
18
|
],
|
|
19
|
+
transformers: [transformerDirectives()],
|
|
19
20
|
shortcuts: [{
|
|
20
21
|
"flex-center": "flex justify-center items-center",
|
|
21
22
|
"flex-col-center": "flex flex-col justify-center items-center"
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pubinfo-pr/config",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.223.1",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
7
7
|
"types": "./dist/index.d.mts",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"peerDependencies": {
|
|
38
38
|
"eslint": "^10.0.0",
|
|
39
39
|
"stylelint": "^17.1.1",
|
|
40
|
-
"unocss": "
|
|
40
|
+
"unocss": ">=65.5.0"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
43
|
"@antfu/eslint-config": "^7.4.2",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"devDependencies": {
|
|
54
54
|
"eslint": "^10.0.0",
|
|
55
55
|
"stylelint": "^17.1.1",
|
|
56
|
-
"unocss": "
|
|
56
|
+
"unocss": "65.5.0"
|
|
57
57
|
},
|
|
58
58
|
"scripts": {
|
|
59
59
|
"dev": "tsdown --watch",
|
package/src/unocss/index.ts
CHANGED
|
@@ -5,6 +5,7 @@ import {
|
|
|
5
5
|
presetIcons,
|
|
6
6
|
presetTypography,
|
|
7
7
|
presetUno,
|
|
8
|
+
transformerDirectives,
|
|
8
9
|
} from 'unocss';
|
|
9
10
|
import { presetThemes } from './presetThemes';
|
|
10
11
|
|
|
@@ -34,6 +35,9 @@ export default definePreset<{ themes?: globalTheme[], type?: 'app' | 'module' }>
|
|
|
34
35
|
},
|
|
35
36
|
}),
|
|
36
37
|
],
|
|
38
|
+
transformers: [
|
|
39
|
+
transformerDirectives(),
|
|
40
|
+
],
|
|
37
41
|
shortcuts: [
|
|
38
42
|
{
|
|
39
43
|
'flex-center': 'flex justify-center items-center',
|