easc 0.0.15 → 0.0.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/package.json +1 -1
- package/src/commands/build-run.ts +8 -16
package/package.json
CHANGED
|
@@ -95,9 +95,7 @@ export const buildRun: CommandModule = {
|
|
|
95
95
|
let artifactPath: string | null = null;
|
|
96
96
|
let didBuild = false;
|
|
97
97
|
|
|
98
|
-
// Determine artifact path
|
|
99
98
|
if (args.path) {
|
|
100
|
-
// Use explicitly provided path
|
|
101
99
|
artifactPath = args.path;
|
|
102
100
|
if (!fs.existsSync(artifactPath)) {
|
|
103
101
|
logger.error(`Artifact not found: ${artifactPath}`);
|
|
@@ -106,20 +104,19 @@ export const buildRun: CommandModule = {
|
|
|
106
104
|
logger.info(`Using provided artifact: ${artifactPath}`);
|
|
107
105
|
}
|
|
108
106
|
|
|
109
|
-
// Build if no artifact specified
|
|
110
107
|
if (!artifactPath) {
|
|
111
108
|
didBuild = true;
|
|
112
109
|
|
|
113
|
-
|
|
114
|
-
|
|
110
|
+
logger.info(`Running prebuild for ${platformName}...`);
|
|
111
|
+
|
|
115
112
|
runx(`expo prebuild --platform ${platform} --clean`, {
|
|
116
113
|
cwd: process.cwd(),
|
|
117
|
-
stdio: "
|
|
114
|
+
stdio: "inherit",
|
|
118
115
|
env: { ...process.env, CI: "1" },
|
|
119
116
|
});
|
|
120
|
-
logger.succeedSpinner("Prebuild completed");
|
|
121
117
|
|
|
122
|
-
logger.
|
|
118
|
+
logger.success("Prebuild completed");
|
|
119
|
+
logger.info(`Building ${platformName} locally...`);
|
|
123
120
|
|
|
124
121
|
const buildFlags = [
|
|
125
122
|
`--platform ${platform}`,
|
|
@@ -135,9 +132,8 @@ export const buildRun: CommandModule = {
|
|
|
135
132
|
stdio: "inherit",
|
|
136
133
|
});
|
|
137
134
|
|
|
138
|
-
logger.
|
|
135
|
+
logger.success(`${platformName} build completed`);
|
|
139
136
|
|
|
140
|
-
// Find the newly created artifact
|
|
141
137
|
artifactPath = findLatestArtifact(artifactPattern);
|
|
142
138
|
|
|
143
139
|
if (!artifactPath) {
|
|
@@ -148,19 +144,15 @@ export const buildRun: CommandModule = {
|
|
|
148
144
|
logger.info(`Build artifact: ${artifactPath}`);
|
|
149
145
|
}
|
|
150
146
|
|
|
151
|
-
|
|
152
|
-
logger.startSpinner(
|
|
153
|
-
`Installing on ${platformName} simulator/emulator...`,
|
|
154
|
-
);
|
|
147
|
+
logger.info(`Installing on ${platformName} simulator/emulator...`);
|
|
155
148
|
|
|
156
149
|
runx(`eas build:run --path "${artifactPath}" --platform ${platform}`, {
|
|
157
150
|
cwd: process.cwd(),
|
|
158
151
|
stdio: "inherit",
|
|
159
152
|
});
|
|
160
153
|
|
|
161
|
-
logger.
|
|
154
|
+
logger.success(`${platformName} app installed and running`);
|
|
162
155
|
|
|
163
|
-
// Clean up artifact only if we built it (not if user provided --path)
|
|
164
156
|
if (didBuild && artifactPath && fs.existsSync(artifactPath)) {
|
|
165
157
|
fs.unlinkSync(artifactPath);
|
|
166
158
|
logger.info(`Cleaned up: ${artifactPath}`);
|