@vuepress/oxfmt-config 8.0.1 → 8.2.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 +1 -2
- package/dist/index.cjs +4 -4
- package/dist/index.d.cts +2 -2
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +4 -4
- package/package.json +5 -5
package/README.md
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -61,17 +61,17 @@ const config = {
|
|
|
61
61
|
const vuepress = (userConfig) => ({
|
|
62
62
|
...config,
|
|
63
63
|
...userConfig,
|
|
64
|
-
sortImports: {
|
|
64
|
+
sortImports: typeof userConfig?.sortImports !== "boolean" ? {
|
|
65
65
|
...config.sortImports,
|
|
66
66
|
...userConfig?.sortImports
|
|
67
|
-
},
|
|
67
|
+
} : userConfig.sortImports,
|
|
68
68
|
sortPackageJson: typeof userConfig?.sortPackageJson !== "boolean" ? {
|
|
69
69
|
...config.sortPackageJson,
|
|
70
70
|
...userConfig?.sortPackageJson
|
|
71
71
|
} : userConfig.sortPackageJson,
|
|
72
|
-
sortTailwindcss: userConfig?.sortTailwindcss ? {
|
|
72
|
+
sortTailwindcss: typeof userConfig?.sortTailwindcss !== "boolean" ? {
|
|
73
73
|
...config.sortTailwindcss,
|
|
74
|
-
...userConfig
|
|
74
|
+
...userConfig?.sortTailwindcss
|
|
75
75
|
} : void 0
|
|
76
76
|
});
|
|
77
77
|
//#endregion
|
package/dist/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { OxfmtConfig } from "oxfmt";
|
|
2
2
|
|
|
3
3
|
//#region src/config.d.ts
|
|
4
4
|
/**
|
|
@@ -50,6 +50,6 @@ declare const config: {
|
|
|
50
50
|
};
|
|
51
51
|
//#endregion
|
|
52
52
|
//#region src/vuepress.d.ts
|
|
53
|
-
declare const vuepress: (userConfig?: Partial<
|
|
53
|
+
declare const vuepress: (userConfig?: Partial<OxfmtConfig>) => OxfmtConfig;
|
|
54
54
|
//#endregion
|
|
55
55
|
export { config, vuepress };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { OxfmtConfig } from "oxfmt";
|
|
2
2
|
|
|
3
3
|
//#region src/config.d.ts
|
|
4
4
|
/**
|
|
@@ -50,6 +50,6 @@ declare const config: {
|
|
|
50
50
|
};
|
|
51
51
|
//#endregion
|
|
52
52
|
//#region src/vuepress.d.ts
|
|
53
|
-
declare const vuepress: (userConfig?: Partial<
|
|
53
|
+
declare const vuepress: (userConfig?: Partial<OxfmtConfig>) => OxfmtConfig;
|
|
54
54
|
//#endregion
|
|
55
55
|
export { config, vuepress };
|
package/dist/index.mjs
CHANGED
|
@@ -60,17 +60,17 @@ const config = {
|
|
|
60
60
|
const vuepress = (userConfig) => ({
|
|
61
61
|
...config,
|
|
62
62
|
...userConfig,
|
|
63
|
-
sortImports: {
|
|
63
|
+
sortImports: typeof userConfig?.sortImports !== "boolean" ? {
|
|
64
64
|
...config.sortImports,
|
|
65
65
|
...userConfig?.sortImports
|
|
66
|
-
},
|
|
66
|
+
} : userConfig.sortImports,
|
|
67
67
|
sortPackageJson: typeof userConfig?.sortPackageJson !== "boolean" ? {
|
|
68
68
|
...config.sortPackageJson,
|
|
69
69
|
...userConfig?.sortPackageJson
|
|
70
70
|
} : userConfig.sortPackageJson,
|
|
71
|
-
sortTailwindcss: userConfig?.sortTailwindcss ? {
|
|
71
|
+
sortTailwindcss: typeof userConfig?.sortTailwindcss !== "boolean" ? {
|
|
72
72
|
...config.sortTailwindcss,
|
|
73
|
-
...userConfig
|
|
73
|
+
...userConfig?.sortTailwindcss
|
|
74
74
|
} : void 0
|
|
75
75
|
});
|
|
76
76
|
//#endregion
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vuepress/oxfmt-config",
|
|
3
|
-
"version": "8.0
|
|
3
|
+
"version": "8.2.0",
|
|
4
4
|
"description": "Oxfmt config for VuePress Team",
|
|
5
5
|
"homepage": "https://github.com/vuepress",
|
|
6
6
|
"license": "MIT",
|
|
@@ -26,11 +26,11 @@
|
|
|
26
26
|
"publishConfig": {
|
|
27
27
|
"access": "public"
|
|
28
28
|
},
|
|
29
|
-
"dependencies": {
|
|
30
|
-
"oxfmt": "^0.40.0"
|
|
31
|
-
},
|
|
32
29
|
"devDependencies": {
|
|
33
|
-
"tsdown": "^0.
|
|
30
|
+
"tsdown": "^0.22.0"
|
|
31
|
+
},
|
|
32
|
+
"peerDependencies": {
|
|
33
|
+
"oxfmt": ">=0.42.0"
|
|
34
34
|
},
|
|
35
35
|
"scripts": {
|
|
36
36
|
"build": "tsdown",
|