Skip to content

Commit

Permalink
Merge branch 'wrap-require' of https://github.com/actions/github-script
Browse files Browse the repository at this point in the history
… into wrap-require
  • Loading branch information
jclem committed Apr 21, 2021
2 parents c758586 + 256da4e commit b616178
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/wrap-require.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import * as path from 'path'
export const wrapRequire = new Proxy(__non_webpack_require__, {
apply: (target, thisArg, [moduleID]) => {
if (moduleID.startsWith('.')) {
moduleID = path.join(process.cwd(), moduleID)
moduleID = path.resolve(moduleID)
return target.apply(thisArg, [moduleID])
}

Expand Down

0 comments on commit b616178

Please sign in to comment.