@10stars/config 13.6.3 → 13.7.0

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 +3 -6
  2. package/src/index.ts +4 -8
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "access": "public"
5
5
  },
6
6
  "name": "@10stars/config",
7
- "version": "13.6.3",
7
+ "version": "13.7.0",
8
8
  "author": "10stars.dev <web@alexandrov.co> (https://alexandrov.co)",
9
9
  "license": "MIT",
10
10
  "bin": {
@@ -20,9 +20,6 @@
20
20
  "commitlint.config.js",
21
21
  "tsconfig.base.json"
22
22
  ],
23
- "comments-dependencies": {
24
- "tsx": "newer tsx breaks ladle"
25
- },
26
23
  "dependencies": {
27
24
  "@10stars/eslint-plugin-react-hooks": "^5.1.0",
28
25
  "@commitlint/cli": "^20.0.0",
@@ -33,8 +30,8 @@
33
30
  "@types/lodash": "^4.0.0",
34
31
  "@types/node": "^24.0.0",
35
32
  "@types/react": "^19.0.0",
36
- "esbuild": "~0.25.9",
37
- "tsx": "4.11.2",
33
+ "esbuild": "~0.27.0",
34
+ "tsx": "^4.20.6",
38
35
  "eslint-config-prettier": "^10.0.0",
39
36
  "eslint-plugin-import": "^2.0.0",
40
37
  "eslint-plugin-no-relative-import-paths": "^1.5.4",
package/src/index.ts CHANGED
@@ -14,12 +14,8 @@ const exec = (cmd: string) => {
14
14
  execSync(cmd, { cwd, stdio: `inherit` }) // make execSync process to use the parent's: "stdin", "stdout", "stderr" streams
15
15
  }
16
16
 
17
- const getConfig = async (): Promise<Config> =>
18
- import(path.join(cwd, `10stars.config`)).catch(() => {
19
- throw new Error(
20
- `10stars.config.ts not found.\nYou need to place it in the root of the repository.`,
21
- )
22
- })
17
+ const getConfig = async (): Promise<Config | null> =>
18
+ import(path.join(cwd, `10stars.config`)).catch(() => null)
23
19
 
24
20
  const getESLintCommonCmd = async () => {
25
21
  const isMonorepo = await checkIsMonorepo(cwd)
@@ -42,7 +38,7 @@ const actions = {
42
38
  if (process.env.CI) return
43
39
 
44
40
  const config = await getConfig()
45
- if (config.linkPackages) await linkPackages(cwd, config.linkPackages)
41
+ if (config?.linkPackages) await linkPackages(cwd, config.linkPackages)
46
42
  },
47
43
  },
48
44
  format: {
@@ -75,7 +71,7 @@ const actions = {
75
71
  action: () => {
76
72
  const pathCommitlint = new URL(`../commitlint.config.js`, import.meta.url)
77
73
  .pathname
78
- exec(`npm exec -- commitlint --edit --config ${pathCommitlint}`)
74
+ exec(`bun run commitlint --edit --config ${pathCommitlint}`)
79
75
  },
80
76
  },
81
77
  } satisfies Record<string, { info: string; action: () => void | Promise<void> }>