Fix npm publish (#10575)

Signed-off-by: Artem Savchenko <armisav@gmail.com>
This commit is contained in:
Artyom Savchenko
2026-03-02 10:59:00 +07:00
committed by GitHub
parent e778a2748b
commit a21764cbf0
2 changed files with 12 additions and 0 deletions
+5
View File
@@ -89,6 +89,11 @@ function getPublishablePackages(includePattern) {
*/
function publishPackage(packagePath, packageName) {
try {
try {
execSync('npm pkg fix', { cwd: packagePath, encoding: 'utf-8', stdio: 'pipe' })
} catch {
// Ignore pkg fix errors (e.g. npm < 10)
}
console.log(`Publishing ${packageName}...`)
execSync('npm publish', {
cwd: packagePath,