We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 84df16f commit a4d00ecCopy full SHA for a4d00ec
src/utils/config.mjs
@@ -35,7 +35,7 @@ export function projectPath() {
35
}
36
37
export function withTilde(path) {
38
- return path.replace(homedir(), '~').replace('~/', '~')
+ return path.replace(homedir(), '~/').replace(/\/{2,}/, '/')
39
40
41
export async function getPackageJson(cwd) {
0 commit comments