@yunsoft/yuncms 0.1.6 → 0.1.8

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": "@yunsoft/yuncms",
3
- "version": "0.1.6",
3
+ "version": "0.1.8",
4
4
  "description": "Command-line setup and runtime launcher for YunCMS.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -30,7 +30,7 @@
30
30
  "test": "node --test"
31
31
  },
32
32
  "dependencies": {
33
- "@yunsoft/yuncms-api": "0.1.6",
34
- "@yunsoft/yuncms-core": "0.1.6"
33
+ "@yunsoft/yuncms-api": "0.1.8",
34
+ "@yunsoft/yuncms-core": "0.1.8"
35
35
  }
36
36
  }
@@ -60,7 +60,7 @@ export async function runRestoreCommand({
60
60
  await maintenanceLock.assertHeld();
61
61
  };
62
62
 
63
- return await restoreBackup({
63
+ const restored = await restoreBackup({
64
64
  backupPath: resolve(cwd, positionals[0]),
65
65
  cwd,
66
66
  env,
@@ -68,6 +68,12 @@ export async function runRestoreCommand({
68
68
  allowDifferentDatabaseTarget: values['--allow-different-database-target'] === true,
69
69
  beforeDestructive,
70
70
  });
71
+ if (restored?.manifest?.project?.packageLock) {
72
+ output.warn?.('Project package files were restored. Run npm ci before starting YunCMS so node_modules matches the restored lockfile.');
73
+ } else if (restored?.manifest?.project?.packageJson) {
74
+ output.warn?.('Project package.json was restored. Run npm install before starting YunCMS so node_modules matches the restored project.');
75
+ }
76
+ return restored;
71
77
  } finally {
72
78
  if (maintenanceLock) await maintenanceLock.release();
73
79
  await lock.release();