Skip to content

Commit b844498

Browse files
committed
fix(config): handle invalid/unset projectDir
1 parent 3902257 commit b844498

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

lib/services/project-config-service.ts

+7-1
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,13 @@ export default {
116116
.filter(Boolean)
117117
.map((c) => {
118118
if (this.$fs.isRelativePath(c)) {
119-
return path.join(projectDir || this.projectHelper.projectDir, c);
119+
const dir = projectDir || this.projectHelper.projectDir;
120+
121+
if (!dir) {
122+
return c;
123+
}
124+
125+
return path.join(dir, c);
120126
}
121127

122128
return c;

0 commit comments

Comments
 (0)