mirror of
https://github.com/actions/github-script.git
synced 2026-02-07 19:47:26 +00:00
Merge branch 'wrap-require' of https://github.com/actions/github-script into wrap-require
This commit is contained in:
commit
b616178d6d
1 changed files with 1 additions and 1 deletions
|
|
@ -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])
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue