olly-molly 0.2.20 → 0.2.21

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.
Files changed (2) hide show
  1. package/bin/cli.js +6 -1
  2. package/package.json +1 -1
package/bin/cli.js CHANGED
@@ -148,6 +148,7 @@ async function main() {
148
148
  const npmVersion = await getNpmVersion();
149
149
  const prebuiltUrl = getPrebuiltUrl(npmVersion);
150
150
  const standaloneServerPath = path.join(APP_DIR, '.next', 'standalone', 'server.js');
151
+ const prebuiltOnDisk = () => fs.existsSync(standaloneServerPath);
151
152
 
152
153
  async function downloadApp() {
153
154
  if (prebuiltUrl) {
@@ -183,13 +184,17 @@ async function main() {
183
184
  needsBuild = !usedPrebuilt;
184
185
  }
185
186
 
187
+ if (!usedPrebuilt && prebuiltOnDisk()) {
188
+ usedPrebuilt = true;
189
+ }
190
+
186
191
  // Install
187
192
  if (needsInstall || !fs.existsSync(path.join(APP_DIR, 'node_modules'))) {
188
193
  console.log('📦 Installing...\n');
189
194
  execSync('npm install --omit=dev', { cwd: APP_DIR, stdio: 'inherit' });
190
195
  }
191
196
 
192
- if (usedPrebuilt && !fs.existsSync(standaloneServerPath)) {
197
+ if (usedPrebuilt && !prebuiltOnDisk()) {
193
198
  usedPrebuilt = false;
194
199
  needsInstall = true;
195
200
  needsBuild = true;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "olly-molly",
3
- "version": "0.2.20",
3
+ "version": "0.2.21",
4
4
  "description": "Your AI Development Team, Running Locally - Manage AI agents (PM, Frontend, Backend, QA) from a beautiful kanban board",
5
5
  "keywords": [
6
6
  "ai",