@meith/cli 0.33.1 → 0.33.2

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/package.json +13 -13
  2. package/src/upgrade.ts +10 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meith/cli",
3
- "version": "0.33.1",
3
+ "version": "0.33.2",
4
4
  "description": "The operator CLI: migrations, backup and restore, imports, users and settings — and the meith bin that runs it against an external board workspace.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -24,18 +24,18 @@
24
24
  "dependencies": {
25
25
  "@aws-sdk/client-s3": "3.1111.0",
26
26
  "tsx": "^4.23.12",
27
- "@meith/accounts": "0.33.1",
28
- "@meith/core": "0.33.1",
29
- "@meith/db": "0.33.1",
30
- "@meith/demo": "0.33.1",
31
- "@meith/drivers": "0.33.1",
32
- "@meith/forums": "0.33.1",
33
- "@meith/plugin-kit": "0.33.1",
34
- "@meith/profile-fields": "0.33.1",
35
- "@meith/runtime": "0.33.1",
36
- "@meith/settings": "0.33.1",
37
- "@meith/tasks": "0.33.1",
38
- "create-meith": "0.33.1"
27
+ "@meith/accounts": "0.33.2",
28
+ "@meith/core": "0.33.2",
29
+ "@meith/db": "0.33.2",
30
+ "@meith/demo": "0.33.2",
31
+ "@meith/drivers": "0.33.2",
32
+ "@meith/forums": "0.33.2",
33
+ "@meith/plugin-kit": "0.33.2",
34
+ "@meith/profile-fields": "0.33.2",
35
+ "@meith/runtime": "0.33.2",
36
+ "@meith/settings": "0.33.2",
37
+ "@meith/tasks": "0.33.2",
38
+ "create-meith": "0.33.2"
39
39
  },
40
40
  "devDependencies": {
41
41
  "esbuild": "^0.28.2"
package/src/upgrade.ts CHANGED
@@ -3,6 +3,7 @@ import {
3
3
  applyPluginMigration,
4
4
  getDb,
5
5
  PostgresNavigationRepository,
6
+ pendingCoreMigrations,
6
7
  readVersion,
7
8
  recordVersion,
8
9
  runMigrations,
@@ -11,7 +12,7 @@ import { type PluginDefinition, pluginNavigationPlacements } from '@meith/plugin
11
12
  import { runPluginLifecycle } from '@meith/runtime'
12
13
  import { type PluginUpgrade, planUpgrade, upgradeNotice } from '@meith/upgrade'
13
14
 
14
- export const CODE_VERSION = '0.33.1'
15
+ export const CODE_VERSION = '0.33.2'
15
16
 
16
17
  export function pluginUpgrades(plugins: readonly PluginDefinition[]): readonly PluginUpgrade[] {
17
18
  return plugins.map((plugin) => ({
@@ -44,10 +45,12 @@ export async function upgrade(options: UpgradeOptions): Promise<number> {
44
45
  applied[plugin.key] = await appliedPluginMigrations(db, plugin.key)
45
46
  }
46
47
 
48
+ const pendingCore = await pendingCoreMigrations(db)
49
+
47
50
  const state = {
48
51
  recordedVersion,
49
52
  codeVersion: CODE_VERSION,
50
- pendingCoreMigrations: [] as readonly string[],
53
+ pendingCoreMigrations: pendingCore,
51
54
  plugins,
52
55
  appliedPluginMigrations: applied,
53
56
  }
@@ -60,7 +63,11 @@ export async function upgrade(options: UpgradeOptions): Promise<number> {
60
63
  }
61
64
 
62
65
  options.log(options.dryRun ? 'Plan:' : 'Upgrading…')
63
- options.log(' 1. apply pending core migrations')
66
+ options.log(
67
+ pendingCore.length === 0
68
+ ? ' 1. core: nothing to apply'
69
+ : ` 1. core: apply ${pendingCore.length} migration(s) — ${pendingCore.join(', ')}`,
70
+ )
64
71
 
65
72
  let stepNumber = 2
66
73
  for (const plugin of plugins) {