diff --git a/release.mjs b/release.mjs index 675e2c2..de8fbad 100755 --- a/release.mjs +++ b/release.mjs @@ -176,7 +176,7 @@ ${commits.join('\n')}`).join('\n') console.log(chalk.bold('Great success!')) - if (pkgJson.postrelease) { + if (pkgJson.scripts?.postrelease) { console.log('postrelease') await $`npm run postrelease` }