@10stars/config 15.6.0 → 15.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@10stars/config",
3
- "version": "15.6.0",
3
+ "version": "15.6.1",
4
4
  "private": false,
5
5
  "bin": {
6
6
  "config": "./src/index.ts"
@@ -51,9 +51,15 @@ export const setupOverrides = async (cwd: string) => {
51
51
  const merged = { ...pkgJson.overrides, ...managedOverrides }
52
52
  const sorted = Object.fromEntries(Object.entries(merged).sort(([a], [b]) => a.localeCompare(b)))
53
53
 
54
+ const changed = JSON.stringify(pkgJson.overrides ?? {}) !== JSON.stringify(sorted)
55
+ if (!changed) return
56
+
54
57
  pkgJson.overrides = sorted
55
58
 
56
59
  await fs.writeFile(pkgPath, JSON.stringify(pkgJson, null, 2) + `\n`)
57
60
  console.info(`Written: ${pkgPath}`)
58
61
  execSync(`bunx oxfmt ${pkgPath}`, { cwd, stdio: `inherit` })
62
+
63
+ console.info(`Overrides changed, running "bun install"...`)
64
+ execSync(`bun install`, { cwd, stdio: `inherit` })
59
65
  }