easc 0.0.11 → 0.0.12

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/easc.js CHANGED
@@ -17,7 +17,7 @@ const envArgs = existsSync(envPath) ? ["--env-file", envPath] : [];
17
17
  const scriptArgs = [indexPath, ...process.argv.slice(2)];
18
18
 
19
19
  function getRuntime() {
20
- const runtime = typeof Bun !== "undefined" ? Runtime.BUN : Runtime.NODE;
20
+ const runtime = !!process.versions.bun ? Runtime.BUN : Runtime.NODE;
21
21
 
22
22
  switch (runtime) {
23
23
  case Runtime.BUN:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "easc",
3
- "version": "0.0.11",
3
+ "version": "0.0.12",
4
4
  "description": "Expo App Services for Cloudflare - Deploy tool for Expo OTA updates to Cloudflare Workers",
5
5
  "type": "module",
6
6
  "license": "MIT",
package/src/utils/runx.ts CHANGED
@@ -1,7 +1,5 @@
1
1
  import { execSync, ExecSyncOptions } from "child_process";
2
2
 
3
- declare const Bun: unknown;
4
-
5
3
  /**
6
4
  * Execute a command using the appropriate package runner (bunx or npx)
7
5
  * based on the current runtime environment.
@@ -10,8 +8,7 @@ export function runx(
10
8
  command: string,
11
9
  options?: ExecSyncOptions
12
10
  ): Buffer | string {
13
- const isBun = typeof Bun !== "undefined";
14
- const packageRunner = isBun ? "bunx" : "npx";
11
+ const packageRunner = !!process.versions.bun ? "bunx" : "npx";
15
12
 
16
13
  return execSync(`${packageRunner} ${command}`, options);
17
14
  }