mirror of
https://github.com/actions/github-script.git
synced 2026-02-07 19:47:26 +00:00
Use concat for paths
This commit is contained in:
parent
c1c139b0ab
commit
ade5cea985
2 changed files with 6 additions and 2 deletions
4
dist/index.js
vendored
4
dist/index.js
vendored
|
|
@ -2467,7 +2467,9 @@ const wrapRequire = new Proxy(require, {
|
|||
return target.apply(thisArg, [moduleID]);
|
||||
}
|
||||
catch (err) {
|
||||
return target.resolve(moduleID, { paths: [...module.paths, process.cwd()] });
|
||||
return target.resolve(moduleID, {
|
||||
paths: module.paths.concat(process.cwd())
|
||||
});
|
||||
}
|
||||
},
|
||||
get: (target, prop, receiver) => {
|
||||
|
|
|
|||
|
|
@ -10,7 +10,9 @@ export const wrapRequire = new Proxy(__non_webpack_require__, {
|
|||
try {
|
||||
return target.apply(thisArg, [moduleID])
|
||||
} catch (err) {
|
||||
return target.resolve(moduleID, {paths: [...module.paths, process.cwd()]})
|
||||
return target.resolve(moduleID, {
|
||||
paths: module.paths.concat(process.cwd())
|
||||
})
|
||||
}
|
||||
},
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue