Skip to content

Commit

Permalink
fix: fix dist dir check regex
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Aug 11, 2022
1 parent 716a519 commit 6cad682
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dirs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { fileURLToPath } from 'url'
import { dirname, resolve } from 'pathe'

let distDir = dirname(fileURLToPath(import.meta.url))
if (/\/[chunks|shared]$/.test(distDir)) {
if (/(chunks|shared)$/.test(distDir)) {
distDir = dirname(distDir)
}
export const pkgDir = resolve(distDir, '..')
Expand Down

0 comments on commit 6cad682

Please sign in to comment.