electrobun 0.0.19-beta.13 → 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.
@@ -138,14 +138,6 @@ async function ensureCliBinary() {
138
138
  async function main() {
139
139
  try {
140
140
  const args = process.argv.slice(2);
141
-
142
- // Handle postinstall flag - just download CLI and exit
143
- if (args.includes('--install-only')) {
144
- await ensureCliBinary();
145
- console.log('electrobun CLI installed successfully!');
146
- return;
147
- }
148
-
149
141
  const cliPath = await ensureCliBinary();
150
142
 
151
143
  // Replace this process with the actual CLI
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "electrobun",
3
- "version": "0.0.19-beta.13",
3
+ "version": "0.0.19-beta.15",
4
4
  "description": "Build ultra fast, tiny, and cross-platform desktop apps with Typescript.",
5
5
  "license": "MIT",
6
6
  "author": "Blackboard Technologies Inc.",
@@ -18,7 +18,7 @@
18
18
  },
19
19
  "type": "module",
20
20
  "bin": {
21
- "electrobun": "./bin/electrobun"
21
+ "electrobun": "./bin/electrobun.cjs"
22
22
  },
23
23
  "homepage": "https://electrobun.dev",
24
24
  "repository": {
@@ -26,7 +26,6 @@
26
26
  "url": "git+https://github.com/blackboardsh/electrobun.git"
27
27
  },
28
28
  "scripts": {
29
- "postinstall": "node bin/electrobun.cjs --install-only",
30
29
  "build:cli": "mkdir -p bin && bun build src/cli/index.ts --compile --outfile bin/electrobun",
31
30
  "start": "bun src/bun/index.ts",
32
31
  "check-zig-version": "vendors/zig/zig version",
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
- loadedConfig = JSON.parse(configFileContents);
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