Skip to content

Commit fef6f02

Browse files
author
David Joy
committed
fix: use the process dir if PROJECT_ROOT does not exist
This can happen if you don’t go through fedx-scripts to use a config file.
1 parent 2276dae commit fef6f02

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/paths.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
const path = require('path');
22

33
module.exports = {
4-
PROJECT_ROOT: process.env.PROJECT_ROOT,
4+
PROJECT_ROOT: process.env.PROJECT_ROOT ? process.env.PROJECT_ROOT : process.cwd(),
55
BASE_CONFIG_DIR: path.resolve(__dirname, '..', 'config'),
66
};

0 commit comments

Comments
 (0)