Skip to content

Commit bfc72a4

Browse files
authored
docs: fix build on windows (#2493)
1 parent 4f52734 commit bfc72a4

File tree

5 files changed

+5
-3
lines changed

5 files changed

+5
-3
lines changed

docs/.vitepress/build-system/build.mts

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Pre-build cjs packages that cannot be bundled well.
33
*/
44
import esbuild from 'esbuild'
5-
import path from 'path'
5+
import path from 'pathe'
66
import fs from 'fs'
77
import { fileURLToPath } from 'url'
88

docs/.vitepress/config.mts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import type { DefaultTheme } from 'vitepress'
22
import { defineConfig } from 'vitepress'
3-
import path from 'path'
3+
import path from 'pathe'
44
import { fileURLToPath } from 'url'
55
import { viteCommonjs, vitePluginRequireResolve } from './vite-plugin.mjs'
66

docs/.vitepress/vite-plugin.mts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import type { UserConfig } from 'vitepress'
2-
import path from 'path'
2+
import path from 'pathe'
33
import { fileURLToPath } from 'url'
44
import esbuild from 'esbuild'
55
type Plugin = Extract<

lib/rules/order-in-components.js

+1
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,7 @@ module.exports = {
259259
}
260260

261261
/**
262+
* @param {RuleFixer} fixer
262263
* @param {Property} propertyNode
263264
* @param {Property} unorderedPropertyNode
264265
*/

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@
9292
"markdownlint-cli": "^0.41.0",
9393
"mocha": "^10.3.0",
9494
"nyc": "^17.0.0",
95+
"pathe": "^1.1.2",
9596
"prettier": "^3.2.5",
9697
"typescript": "^5.3.3",
9798
"vitepress": "^1.0.0-rc.42"

0 commit comments

Comments
 (0)