easc 0.0.11 → 0.0.13

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.13",
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",
@@ -86,6 +86,7 @@ export const build: CommandModule = {
86
86
  runx(`expo prebuild --platform ${platform} --clean`, {
87
87
  cwd: process.cwd(),
88
88
  stdio: "ignore",
89
+ env: { ...process.env, CI: "1" },
89
90
  });
90
91
  logger.succeedSpinner("Prebuild completed");
91
92
  }
@@ -103,7 +104,7 @@ export const build: CommandModule = {
103
104
  .filter(Boolean)
104
105
  .join(" ");
105
106
 
106
- runx(`expo eas ${buildFlags}`, {
107
+ runx(`eas build ${buildFlags}`, {
107
108
  cwd: process.cwd(),
108
109
  stdio: "inherit",
109
110
  });
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
  }