@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 CHANGED
@@ -13,10 +13,9 @@ npm i -D @vuepress/oxfmt-config
13
13
  ## Usage
14
14
 
15
15
  ```ts
16
- import { defineConfig } from 'oxfmt'
17
16
  import { vuepress } from '@vuepress/oxfmt-config'
18
17
 
19
- export default defineConfig(vuepress())
18
+ export default vuepress()
20
19
  ```
21
20
 
22
21
  ## License
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.sortTailwindcss
74
+ ...userConfig?.sortTailwindcss
75
75
  } : void 0
76
76
  });
77
77
  //#endregion
package/dist/index.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { FormatOptions } from "oxfmt";
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<FormatOptions>) => FormatOptions;
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 { FormatOptions } from "oxfmt";
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<FormatOptions>) => FormatOptions;
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.sortTailwindcss
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.1",
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.21.3"
30
+ "tsdown": "^0.22.0"
31
+ },
32
+ "peerDependencies": {
33
+ "oxfmt": ">=0.42.0"
34
34
  },
35
35
  "scripts": {
36
36
  "build": "tsdown",