Skip to content

Commit b616178

Browse files
committed
Merge branch 'wrap-require' of https://github.com/actions/github-script into wrap-require
2 parents c758586 + 256da4e commit b616178

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/wrap-require.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import * as path from 'path'
33
export const wrapRequire = new Proxy(__non_webpack_require__, {
44
apply: (target, thisArg, [moduleID]) => {
55
if (moduleID.startsWith('.')) {
6-
moduleID = path.join(process.cwd(), moduleID)
6+
moduleID = path.resolve(moduleID)
77
return target.apply(thisArg, [moduleID])
88
}
99

0 commit comments

Comments
 (0)