electrobun 0.0.19-beta.14 → 0.0.19-beta.16
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/bin/electrobun.cjs +0 -0
- package/package.json +1 -1
- package/src/cli/index.ts +14 -1
package/bin/electrobun.cjs
CHANGED
|
File without changes
|
package/package.json
CHANGED
package/src/cli/index.ts
CHANGED
|
@@ -267,6 +267,10 @@ const defaultConfig = {
|
|
|
267
267
|
},
|
|
268
268
|
icons: "icon.iconset",
|
|
269
269
|
},
|
|
270
|
+
bun: {
|
|
271
|
+
entrypoint: "src/bun/index.ts",
|
|
272
|
+
external: [],
|
|
273
|
+
},
|
|
270
274
|
},
|
|
271
275
|
scripts: {
|
|
272
276
|
postBuild: "",
|
|
@@ -1290,7 +1294,12 @@ function getConfig() {
|
|
|
1290
1294
|
if (existsSync(configPath)) {
|
|
1291
1295
|
const configFileContents = readFileSync(configPath, "utf8");
|
|
1292
1296
|
// Note: we want this to hard fail if there's a syntax error
|
|
1293
|
-
|
|
1297
|
+
try {
|
|
1298
|
+
loadedConfig = JSON.parse(configFileContents);
|
|
1299
|
+
} catch (error) {
|
|
1300
|
+
console.error("Failed to parse config file:", error);
|
|
1301
|
+
console.error("using default config instead");
|
|
1302
|
+
}
|
|
1294
1303
|
}
|
|
1295
1304
|
|
|
1296
1305
|
// todo (yoav): write a deep clone fn
|
|
@@ -1312,6 +1321,10 @@ function getConfig() {
|
|
|
1312
1321
|
...(loadedConfig?.build?.mac?.entitlements || {}),
|
|
1313
1322
|
},
|
|
1314
1323
|
},
|
|
1324
|
+
bun: {
|
|
1325
|
+
...defaultConfig.build.bun,
|
|
1326
|
+
...(loadedConfig?.build?.bun || {}),
|
|
1327
|
+
}
|
|
1315
1328
|
},
|
|
1316
1329
|
scripts: {
|
|
1317
1330
|
...defaultConfig.scripts,
|