We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a69381c commit e0990baCopy full SHA for e0990ba
scripts/publish.js
@@ -56,9 +56,8 @@ for (const package of packagesToPublish) {
56
}
57
58
59
- const lerna = lernaList.find((it) => it.name === package.name);
60
- const packageJsonPath = join(lerna.location, "package.json");
+ const { location } = lernaList.find((it) => it.name === package.name);
+ const packageJsonPath = join(location, "package.json");
61
writeFileSync(packageJsonPath, JSON.stringify(package, undefined, 2));
62
- const cwd = lerna.location;
63
- execSync(`npm publish`, { cwd });
+ execSync(`npm publish`, { cwd: location });
64
0 commit comments