Skip to content

Commit 0a41764

Browse files
committed
Use process.cwd()
1 parent b1f65d0 commit 0a41764

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bin/harper.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,12 +121,12 @@ async function harper() {
121121
console.warn(
122122
`It appears you are running Harper in an application directory, but did not specify the path. I'll go ahead and run the application for you since that's probably what you meant. But to avoid this warning in the future, run applications in the current directory like this: "harper ${service} ."`
123123
);
124-
process.env.RUN_HDB_APP = path.resolve('.');
124+
process.env.RUN_HDB_APP = process.cwd();
125125
} else if (fs.existsSync(hdbTerms.HARPER_CONFIG_FILE) || fs.existsSync(hdbTerms.HDB_CONFIG_FILE)) {
126126
console.warn(
127127
`It appears you are running Harper in a root data directory, but did not specify the path. I'll go ahead and run Harper with its root path set to "." for you since that's probably what you meant. But to avoid this warning in the future, run it like this: "harper ${service} ."`
128128
);
129-
process.env.ROOTPATH = path.resolve('.');
129+
process.env.ROOTPATH = process.cwd();
130130
}
131131
}
132132
// fall through

0 commit comments

Comments
 (0)