electrobun 0.0.19-beta.14 → 0.0.19-beta.15
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/cli/index.ts +7 -1
package/package.json
CHANGED
package/src/cli/index.ts
CHANGED
|
@@ -249,6 +249,7 @@ const commandDefaults = {
|
|
|
249
249
|
|
|
250
250
|
// todo (yoav): add types for config
|
|
251
251
|
const defaultConfig = {
|
|
252
|
+
entrypoint: "src/bun/index.ts",
|
|
252
253
|
app: {
|
|
253
254
|
name: "MyApp",
|
|
254
255
|
identifier: "com.example.myapp",
|
|
@@ -1290,7 +1291,12 @@ function getConfig() {
|
|
|
1290
1291
|
if (existsSync(configPath)) {
|
|
1291
1292
|
const configFileContents = readFileSync(configPath, "utf8");
|
|
1292
1293
|
// Note: we want this to hard fail if there's a syntax error
|
|
1293
|
-
|
|
1294
|
+
try {
|
|
1295
|
+
loadedConfig = JSON.parse(configFileContents);
|
|
1296
|
+
} catch (error) {
|
|
1297
|
+
console.error("Failed to parse config file:", error);
|
|
1298
|
+
console.error("using default config instead");
|
|
1299
|
+
}
|
|
1294
1300
|
}
|
|
1295
1301
|
|
|
1296
1302
|
// todo (yoav): write a deep clone fn
|