@10stars/config 13.6.3 → 13.6.4
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 +1 -1
- package/src/index.ts +3 -7
package/package.json
CHANGED
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
|
|
41
|
+
if (config?.linkPackages) await linkPackages(cwd, config.linkPackages)
|
|
46
42
|
},
|
|
47
43
|
},
|
|
48
44
|
format: {
|