From 3a3bb0e58ca187766b597a9aa0687eec0822f1c7 Mon Sep 17 00:00:00 2001 From: Simon <10131203+gaomeng1900@users.noreply.github.com> Date: Wed, 21 Jan 2026 01:23:07 +0800 Subject: [PATCH] fix: use spaces for JSON formatting in version sync script --- scripts/sync-version.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/sync-version.js b/scripts/sync-version.js index 0ce5b28..2267b59 100644 --- a/scripts/sync-version.js +++ b/scripts/sync-version.js @@ -34,7 +34,7 @@ console.log(chalk.cyan.bold('\nšŸ“¦ Syncing version\n')) // Update root package.json if new version specified if (versionArg) { rootPkg.version = newVersion - writeFileSync(rootPkgPath, JSON.stringify(rootPkg, null, '\t') + '\n') + writeFileSync(rootPkgPath, JSON.stringify(rootPkg, null, ' ') + '\n') console.log(chalk.green('āœ“') + ` ${chalk.bold('root')} → ${chalk.yellow(newVersion)}`) } else { console.log(chalk.dim(' root:') + ` ${chalk.yellow(newVersion)} ${chalk.dim('(source)')}`) @@ -94,7 +94,7 @@ for (const pkg of packages) { continue } - writeFileSync(pkgPath, JSON.stringify(pkgJson, null, '\t') + '\n') + writeFileSync(pkgPath, JSON.stringify(pkgJson, null, ' ') + '\n') console.log( chalk.green('āœ“') + ` ${chalk.bold(pkgJson.name)}: ${chalk.dim(oldVersion)} → ${chalk.yellow(newVersion)}`