create-bw-app 0.23.0 → 0.23.1

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,7 +1,7 @@
1
1
  {
2
2
  "name": "create-bw-app",
3
3
  "private": false,
4
- "version": "0.23.0",
4
+ "version": "0.23.1",
5
5
  "type": "module",
6
6
  "bin": {
7
7
  "create-bw-app": "bin/create-bw-app.mjs",
package/src/constants.mjs CHANGED
@@ -180,7 +180,7 @@ export const APP_DEPENDENCY_DEFAULTS = {
180
180
  "@brightweblabs/module-crm": "^0.13.0",
181
181
  "@brightweblabs/module-marketing": "^0.3.0",
182
182
  "@brightweblabs/module-orgs": "^0.3.17",
183
- "@brightweblabs/module-projects": "^0.12.0",
183
+ "@brightweblabs/module-projects": "^0.12.1",
184
184
  "@brightweblabs/theme": "^0.7.1",
185
185
  "@brightweblabs/ui": "^1.4.1",
186
186
  "geist": "1.7.2",
package/src/upgrade.mjs CHANGED
@@ -37,7 +37,10 @@ export async function upgradeBrightwebApp(moduleKey, argvOptions = {}, runtimeOp
37
37
  const key = Object.keys(catalog).find((candidate) => catalog[candidate].packageName === update.packageName);
38
38
  if (key) catalog[key].version = cleanVersion(update.to) || catalog[key].version;
39
39
  }
40
- const moduleKeys = moduleKey ? [moduleKey] : Object.keys(appManifest.modules);
40
+ const installedMigrationKeys = Object.keys(appManifest.migrationCursor ?? {}).filter((key) => catalog[key]);
41
+ const moduleKeys = moduleKey
42
+ ? [moduleKey]
43
+ : Array.from(new Set([...installedMigrationKeys, ...Object.keys(appManifest.modules)]));
41
44
  const uncursored = [];
42
45
  for (const key of moduleKeys) {
43
46
  if (appManifest.migrationCursor?.[key] == null && (await getModuleMigrations(key, catalog[key])).length > 0) uncursored.push(key);