@gadmin2n/cli 0.0.136 → 0.0.137

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.
@@ -998,6 +998,7 @@ class UpdateAction extends abstract_action_1.AbstractAction {
998
998
  let preflight = null;
999
999
  let baseHandle = null;
1000
1000
  let theirsHandle = null;
1001
+ let changesApplied = false;
1001
1002
  try {
1002
1003
  if (templateEnabled) {
1003
1004
  try {
@@ -1084,6 +1085,7 @@ class UpdateAction extends abstract_action_1.AbstractAction {
1084
1085
  // Pre-apply preview + confirm (skipped under --yes).
1085
1086
  const applyAndReport = () => {
1086
1087
  const conflicts = applyPlan(plan, baseRoot, instanceDir, theirsRoot, mergeOpts);
1088
+ changesApplied = true;
1087
1089
  // Always advance meta to new version, even when conflicts present (invariant #2).
1088
1090
  (0, base_store_1.writeMeta)(instanceDir, {
1089
1091
  schematicsVersion,
@@ -1152,6 +1154,19 @@ class UpdateAction extends abstract_action_1.AbstractAction {
1152
1154
  if (pkgSnapshots) {
1153
1155
  yield maybeInstallChangedDeps(pkgSnapshots, dryRun);
1154
1156
  }
1157
+ // Final: remind the user to commit the changes.
1158
+ if (changesApplied && !dryRun) {
1159
+ console.info(chalk.bold('\n═══════════════════════════════════════════════════'));
1160
+ console.info(chalk.bold(' Next step'));
1161
+ console.info(chalk.bold('═══════════════════════════════════════════════════\n'));
1162
+ console.info(chalk.cyan('📝 Template files have been updated. Commit the changes:'));
1163
+ console.info();
1164
+ console.info(chalk.white(' git add .'));
1165
+ console.info(chalk.white(' git commit -m "chore: upgrade gadmin2 template"'));
1166
+ console.info();
1167
+ console.info(chalk.gray(' Tip: review the diff first with `git diff --staged` before committing.'));
1168
+ console.info();
1169
+ }
1155
1170
  }
1156
1171
  finally {
1157
1172
  if (baseHandle)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gadmin2n/cli",
3
- "version": "0.0.136",
3
+ "version": "0.0.137",
4
4
  "description": "Gadmin - modern, fast, powerful node.js web framework (@cli)",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -47,7 +47,7 @@
47
47
  "@angular-devkit/core": "13.3.2",
48
48
  "@angular-devkit/schematics": "13.3.2",
49
49
  "@angular-devkit/schematics-cli": "13.3.2",
50
- "@gadmin2n/schematics": "^0.0.108",
50
+ "@gadmin2n/schematics": "^0.0.109",
51
51
  "abc": "^0.6.1",
52
52
  "chalk": "3.0.0",
53
53
  "chokidar": "3.5.3",