@10stars/config 15.5.1 → 15.5.3

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.
Files changed (2) hide show
  1. package/package.json +5 -5
  2. package/src/index.ts +8 -4
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@10stars/config",
3
- "version": "15.5.1",
3
+ "version": "15.5.3",
4
4
  "private": false,
5
5
  "bin": {
6
6
  "config": "./src/index.ts"
@@ -26,10 +26,10 @@
26
26
  "@types/node": "^24.0.0",
27
27
  "@types/react": "^19.2.14",
28
28
  "husky": "^9.1.7",
29
- "oxfmt": "^0.50.0",
30
- "oxlint": "^1.65.0",
31
- "oxlint-tsgolint": "^0.22.1",
32
- "tsx": "^4.22.0",
29
+ "oxfmt": "^0.51.0",
30
+ "oxlint": "^1.66.0",
31
+ "oxlint-tsgolint": "^0.23.0",
32
+ "tsx": "^4.22.3",
33
33
  "type-fest": "^5.6.0",
34
34
  "typescript": "~6.0.3"
35
35
  }
package/src/index.ts CHANGED
@@ -16,8 +16,12 @@ interface Config {
16
16
 
17
17
  const exec = (cmd: string) => {
18
18
  console.info(`Executing: ${cmd}`)
19
- // bunx is optimized for running scripts
20
- execSync(`bunx ${cmd}`, { cwd, stdio: `inherit` }) // make execSync process to use the parent's: "stdin", "stdout", "stderr" streams
19
+ try {
20
+ // bunx is optimized for running scripts
21
+ execSync(`bunx ${cmd}`, { cwd, stdio: `inherit` }) // make execSync process to use the parent's: "stdin", "stdout", "stderr" streams
22
+ } catch {
23
+ process.exit(1)
24
+ }
21
25
  }
22
26
 
23
27
  const getConfig = async (): Promise<Config | null> =>
@@ -70,8 +74,8 @@ const actions = {
70
74
  lint: {
71
75
  info: `Format & Lint code (no watch)`,
72
76
  action: async () => {
73
- exec(`bunx --bun oxfmt`) // split for better error tracing; --bun prevents ESM resolution issues
74
- exec(`bunx --bun oxlint --fix --type-aware ${await getOxlintCommonCmd()}`)
77
+ exec(`--bun oxfmt`) // split for better error tracing; --bun prevents ESM resolution issues
78
+ exec(`--bun oxlint --fix --type-aware ${await getOxlintCommonCmd()}`)
75
79
  },
76
80
  },
77
81
  precommit: {