* feat: adds dev-cli * feat: adds dev-cli * fix: works with org package names * fix: medusa cli bin * hotfix(brightpearl): rounding errors + failing customer test (#199) * fix: verdacio publish * fix: update yarn lock * fix(CI): update node * fix: update yarn lock
12 lines
317 B
JavaScript
12 lines
317 B
JavaScript
const path = require(`path`);
|
|
|
|
exports.getMonorepoPackageJsonPath = ({ packageName, root }) => {
|
|
let dirName = packageName;
|
|
if (packageName.startsWith("@medusajs")) {
|
|
const [, directory] = packageName.split("/");
|
|
dirName = directory;
|
|
}
|
|
|
|
return path.join(root, `packages`, dirName, `package.json`);
|
|
};
|