easc 0.0.15 → 0.0.17

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "easc",
3
- "version": "0.0.15",
3
+ "version": "0.0.17",
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",
@@ -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
- // Always run clean prebuild before building
114
- logger.startSpinner(`Running prebuild for ${platformName}...`);
110
+ logger.info(`Running prebuild for ${platformName}...`);
111
+
115
112
  runx(`expo prebuild --platform ${platform} --clean`, {
116
113
  cwd: process.cwd(),
117
- stdio: "ignore",
114
+ stdio: "inherit",
118
115
  env: { ...process.env, CI: "1" },
119
116
  });
120
- logger.succeedSpinner("Prebuild completed");
121
117
 
122
- logger.startSpinner(`Building ${platformName} locally...`);
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.succeedSpinner(`${platformName} build completed`);
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
- // Run the artifact on simulator/emulator
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.succeedSpinner(`${platformName} app installed and running`);
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}`);
@@ -82,16 +82,16 @@ export const build: CommandModule = {
82
82
  logger.section(`${platformName} Build`);
83
83
 
84
84
  if (args.clearCache) {
85
- logger.startSpinner(`Running prebuild for ${platformName}...`);
85
+ logger.info(`Running prebuild for ${platformName}...`);
86
86
  runx(`expo prebuild --platform ${platform} --clean`, {
87
87
  cwd: process.cwd(),
88
- stdio: "ignore",
88
+ stdio: "inherit",
89
89
  env: { ...process.env, CI: "1" },
90
90
  });
91
- logger.succeedSpinner("Prebuild completed");
91
+ logger.success("Prebuild completed");
92
92
  }
93
93
 
94
- logger.startSpinner(`Building ${platformName} locally...`);
94
+ logger.info(`Building ${platformName} locally...`);
95
95
 
96
96
  const buildFlags = [
97
97
  `--platform ${platform}`,
@@ -109,10 +109,10 @@ export const build: CommandModule = {
109
109
  stdio: "inherit",
110
110
  });
111
111
 
112
- logger.succeedSpinner(`${platformName} build completed`);
112
+ logger.success(`${platformName} build completed`);
113
113
 
114
114
  if (args.autoSubmit) {
115
- logger.startSpinner(`Submitting ${platformName} build...`);
115
+ logger.info(`Submitting ${platformName} build...`);
116
116
 
117
117
  const artifactPath =
118
118
  platform === Platform.iOS
@@ -121,7 +121,7 @@ export const build: CommandModule = {
121
121
  findBuildArtifact("build-*.apk");
122
122
 
123
123
  if (!artifactPath) {
124
- logger.failSpinner(`No ${platformName} build artifact found`);
124
+ logger.error(`No ${platformName} build artifact found`);
125
125
  process.exit(1);
126
126
  }
127
127
 
@@ -132,7 +132,7 @@ export const build: CommandModule = {
132
132
  { cwd: process.cwd(), stdio: "inherit" }
133
133
  );
134
134
 
135
- logger.succeedSpinner(`${platformName} submitted`);
135
+ logger.success(`${platformName} submitted`);
136
136
 
137
137
  if (fs.existsSync(artifactPath)) {
138
138
  fs.unlinkSync(artifactPath);
@@ -104,16 +104,16 @@ export const update: CommandModule = {
104
104
  }
105
105
 
106
106
  if (!args.skipBuild) {
107
- logger.startSpinner("Building app bundles...");
107
+ logger.info("Building app bundles...");
108
108
 
109
109
  runx(
110
110
  args.exportDir !== "dist"
111
111
  ? `expo export --output-dir ${args.exportDir}`
112
112
  : `expo export`,
113
- { cwd: process.cwd(), stdio: "ignore" }
113
+ { cwd: process.cwd(), stdio: "inherit" }
114
114
  );
115
115
 
116
- logger.succeedSpinner("Build completed");
116
+ logger.success("Build completed");
117
117
  } else {
118
118
  logger.info(
119
119
  `Skipping build (using existing export from ${args.exportDir})`