ci(scripts): update pack-all-to-dest

This commit is contained in:
Elliot DeNolf
2024-04-25 23:25:31 -04:00
parent faf142baff
commit df6b9dd30b

View File

@@ -33,14 +33,11 @@ async function main() {
const packageWhitelist = [
'payload',
'translations',
'ui',
'next',
'graphql',
'db-mongodb',
'db-postgres',
'richtext-slate',
'richtext-lexical',
'translations',
]
const packageDetails = await getPackageDetails(packageWhitelist)
@@ -54,7 +51,7 @@ async function main() {
header(`\nOutputting ${filtered.length} packages...
${filtered.map((p) => p.name).join('\n')}
${chalk.white.bold(filtered.map((p) => p.name).join('\n'))}
`)
execSync('pnpm build:all --output-logs=errors-only', { stdio: 'inherit' })
@@ -63,7 +60,6 @@ async function main() {
await Promise.all(
filtered.map(async (p) => {
await exec(`pnpm -r --filter ${p.shortName} run prepublishOnly`)
await exec(`pnpm pack -C ${p.packagePath} --pack-destination ${resolvedDest}`)
}),
)
@@ -72,8 +68,5 @@ async function main() {
}
function header(message: string, opts?: { enable?: boolean }) {
const { enable } = opts ?? {}
if (!enable) return
console.log(chalk.bold.green(`${message}\n`))
}