@idomatic/core 1.1.0 → 1.1.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/lib/readConfig.js +0 -5
- package/package.json +1 -1
package/lib/readConfig.js
CHANGED
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
import fs from "fs";
|
|
2
2
|
import path from "path";
|
|
3
|
-
import defaultConfigs from "./defaultConfigs.js";
|
|
4
|
-
|
|
5
|
-
const defaultFallback = defaultConfigs.react;
|
|
6
3
|
|
|
7
4
|
export default function getUserConfig() {
|
|
8
5
|
const configFilePath = path.join(process.cwd(), ".idomaticsrc.json");
|
|
@@ -16,10 +13,8 @@ export default function getUserConfig() {
|
|
|
16
13
|
console.error(
|
|
17
14
|
"Error reading the .idomaticsrc.json file. Using default config."
|
|
18
15
|
);
|
|
19
|
-
return defaultFallback;
|
|
20
16
|
}
|
|
21
17
|
} else {
|
|
22
18
|
console.warn("No .idomaticsrc.json file found. Using default config.");
|
|
23
|
-
return defaultFallback;
|
|
24
19
|
}
|
|
25
20
|
}
|