@10stars/config 11.0.3 → 11.0.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 -3
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { execSync } from "node:child_process"
|
|
2
|
-
import
|
|
2
|
+
import path from "node:path"
|
|
3
3
|
|
|
4
4
|
import { linkPackages, checkIsMonorepo } from "./link-packages"
|
|
5
5
|
|
|
@@ -15,9 +15,9 @@ const exec = (cmd: string) => {
|
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
const getConfig = async (): Promise<Config> =>
|
|
18
|
-
import(join(cwd, "10stars.config
|
|
18
|
+
import(path.join(cwd, "10stars.config")).catch(() => {
|
|
19
19
|
throw new Error(
|
|
20
|
-
`10stars.config.
|
|
20
|
+
`10stars.config.ts not found.\nYou need to place it in the root of the repository.`,
|
|
21
21
|
)
|
|
22
22
|
})
|
|
23
23
|
|