Skip to content

Commit 03a27c7

Browse files
committed
fix: cross-platform paths
1 parent 8c654b9 commit 03a27c7

File tree

3 files changed

+15
-4
lines changed

3 files changed

+15
-4
lines changed

package-lock.json

Lines changed: 13 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@
5959
"fs-extra": "^10.0.0",
6060
"moize": "^6.1.0",
6161
"outdent": "^0.8.0",
62+
"pathe": "^0.2.0",
6263
"semver": "^7.3.5",
6364
"slash": "^3.0.0",
6465
"tiny-glob": "^0.2.9"

src/helpers/config.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// @ts-check
2-
const { join, dirname, relative } = require('path')
3-
42
const { readJSON } = require('fs-extra')
3+
const { join, dirname, relative } = require('pathe')
54

65
const defaultFailBuild = (message, { error }) => {
76
throw new Error(`${message}\n${error && error.stack}`)

0 commit comments

Comments
 (0)