mirror of
https://github.com/hcengineering/platform.git
synced 2026-08-17 18:05:42 +02:00
Fix npm publish (#10575)
Signed-off-by: Artem Savchenko <armisav@gmail.com>
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user