2021-12-31 00:12:06 +01:00
|
|
|
function readPackage(pkg) {
|
2022-01-10 21:39:35 +01:00
|
|
|
const pkgs = ['@openstamanager/vite-config', '@maicol07/eslint-config'];
|
|
|
|
|
|
|
|
if (pkgs.includes(pkg.name)) {
|
2022-01-10 17:17:07 +01:00
|
|
|
/** @type {object} */
|
|
|
|
pkg.dependencies = {
|
|
|
|
...pkg.peerDependencies,
|
|
|
|
...pkg.dependencies,
|
|
|
|
}
|
|
|
|
pkg.peerDependencies = {};
|
2021-12-31 00:12:06 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
return pkg;
|
|
|
|
}
|
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
hooks: {
|
|
|
|
readPackage,
|
|
|
|
},
|
|
|
|
};
|