Skip to content

Commit e0990ba

Browse files
committed
Just grab location from lerna in publish
1 parent a69381c commit e0990ba

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

scripts/publish.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,8 @@ for (const package of packagesToPublish) {
5656
}
5757
}
5858
}
59-
const lerna = lernaList.find((it) => it.name === package.name);
60-
const packageJsonPath = join(lerna.location, "package.json");
59+
const { location } = lernaList.find((it) => it.name === package.name);
60+
const packageJsonPath = join(location, "package.json");
6161
writeFileSync(packageJsonPath, JSON.stringify(package, undefined, 2));
62-
const cwd = lerna.location;
63-
execSync(`npm publish`, { cwd });
62+
execSync(`npm publish`, { cwd: location });
6463
}

0 commit comments

Comments
 (0)