mirror of
https://github.com/actions/github-script.git
synced 2025-12-08 08:06:23 +00:00
Use concat for paths
This commit is contained in:
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) => {
|
||||
|
||||
Reference in New Issue
Block a user