easc 0.0.12 → 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 +1 -1
- package/package.json +1 -1
- package/src/commands/build.ts +2 -1
- package/src/utils/runx.ts +1 -1
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 = !!process.versions
|
|
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
package/src/commands/build.ts
CHANGED
|
@@ -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(`
|
|
107
|
+
runx(`eas build ${buildFlags}`, {
|
|
107
108
|
cwd: process.cwd(),
|
|
108
109
|
stdio: "inherit",
|
|
109
110
|
});
|
package/src/utils/runx.ts
CHANGED
|
@@ -8,7 +8,7 @@ export function runx(
|
|
|
8
8
|
command: string,
|
|
9
9
|
options?: ExecSyncOptions
|
|
10
10
|
): Buffer | string {
|
|
11
|
-
const packageRunner = !!process.versions
|
|
11
|
+
const packageRunner = !!process.versions["bun"] ? "bunx" : "npx";
|
|
12
12
|
|
|
13
13
|
return execSync(`${packageRunner} ${command}`, options);
|
|
14
14
|
}
|