mirror of
https://github.com/actions/github-script.git
synced 2025-12-21 15:22:30 +00:00
Use concat for paths
This commit is contained in:
@@ -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())
|
||||
})
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user