Skip to content

Commit 0a1eb8d

Browse files
Resolve current file directory (#25)
1 parent 82887fd commit 0a1eb8d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/get-custom-properties-from-root.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export default async function getCustomPropertiesFromRoot(root, resolver) {
99
let customProperties = {};
1010

1111
// resolve current file directory
12-
let sourceDir = __dirname;
12+
let sourceDir = process.cwd();
1313
if (root.source && root.source.input && root.source.input.file) {
1414
sourceDir = path.dirname(root.source.input.file);
1515
}

0 commit comments

Comments
 (0)