mirror of
https://github.com/actions/github-script.git
synced 2025-12-09 00:26:20 +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]);
|
return target.apply(thisArg, [moduleID]);
|
||||||
}
|
}
|
||||||
catch (err) {
|
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) => {
|
get: (target, prop, receiver) => {
|
||||||
|
|||||||
@@ -10,7 +10,9 @@ export const wrapRequire = new Proxy(__non_webpack_require__, {
|
|||||||
try {
|
try {
|
||||||
return target.apply(thisArg, [moduleID])
|
return target.apply(thisArg, [moduleID])
|
||||||
} catch (err) {
|
} 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