Skip to content

Commit

Permalink
fix: add back absolute path resolving
Browse files Browse the repository at this point in the history
  • Loading branch information
khoaHyh committed Jan 24, 2024
1 parent 8983b84 commit b6d6dc2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/cli/collect-files.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,9 @@ module.exports = ({

// check that each file passed in to --file exists
fileArgs.forEach(file => {
const fileAbsolutePath = path.resolve(file);
try {
require.resolve(file);
require.resolve(fileAbsolutePath);
} catch (err) {
// this error doesn't bubble up to the middleware like how
// --require handles it so we have to do it here
Expand Down

0 comments on commit b6d6dc2

Please sign in to comment.