mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-16 09:36:44 +00:00
fix: Add cleaner logging to build script (no-changelog) (#16952)
This commit is contained in:
@@ -84,9 +84,21 @@ echo(chalk.yellow('INFO: Starting local application pre-build...'));
|
||||
startTimer('package_build');
|
||||
|
||||
echo(chalk.yellow('INFO: Running pnpm install and build...'));
|
||||
await $`cd ${config.rootDir} && pnpm install --frozen-lockfile`;
|
||||
await $`cd ${config.rootDir} && pnpm build`;
|
||||
echo(chalk.green('✅ pnpm install and build completed'));
|
||||
try {
|
||||
const installProcess = $`cd ${config.rootDir} && pnpm install --frozen-lockfile`;
|
||||
installProcess.pipe(process.stdout);
|
||||
await installProcess;
|
||||
|
||||
const buildProcess = $`cd ${config.rootDir} && pnpm build`;
|
||||
buildProcess.pipe(process.stdout);
|
||||
await buildProcess;
|
||||
|
||||
echo(chalk.green('✅ pnpm install and build completed'));
|
||||
} catch (error) {
|
||||
console.error(chalk.red('\n🛑 BUILD PROCESS FAILED!'));
|
||||
console.error(chalk.red('An error occurred during the build process:'));
|
||||
process.exit(1);
|
||||
}
|
||||
|
||||
const packageBuildTime = getElapsedTime('package_build');
|
||||
echo(chalk.green(`✅ Package build completed in ${formatDuration(packageBuildTime)}`));
|
||||
|
||||
Reference in New Issue
Block a user