Skip to content

Commit

Permalink
Use resolve instead of process.cwd() and join
Browse files Browse the repository at this point in the history
  • Loading branch information
marc2332 authored and inukshuk committed Sep 29, 2020
1 parent 52439e7 commit a8a2d4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/run.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ exports.builder = yargs => {
}
if (argv.preload) {
try {
argv.preload = join(process.cwd(), argv.preload)
argv.preload = resolve(argv.preload)
} catch (e) {
throw errors.createMissingArgumentError(
`--preload requires file path [${e.code}].`
Expand Down

0 comments on commit a8a2d4f

Please sign in to comment.