@biffo/cli 0.279.0 → 0.279.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.
Files changed (2) hide show
  1. package/dist/index.js +9 -3
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -9277,7 +9277,7 @@ async function runPluginUpgrade(target, options, deps) {
9277
9277
  }
9278
9278
  if (manifest.tables.length > 0) {
9279
9279
  log.info(
9280
- `Generating migration for services/${entry.name}/'s ${manifest.tables.length} table(s)...`
9280
+ `Checking for a migration for services/${entry.name}/'s ${manifest.tables.length} table(s)...`
9281
9281
  );
9282
9282
  const generatedPaths = await deps.migrations.generate(options.cwd, [entry.name]);
9283
9283
  for (const absPath of generatedPaths) {
@@ -9285,6 +9285,10 @@ async function runPluginUpgrade(target, options, deps) {
9285
9285
  }
9286
9286
  if (generatedPaths.length > 0) {
9287
9287
  log.success(`Generated migration: ${relative5(options.cwd, generatedPaths[0])}`);
9288
+ } else {
9289
+ log.info(
9290
+ `${entry.name}'s tables and columns already match the manifest \u2014 no migration needed.`
9291
+ );
9288
9292
  }
9289
9293
  }
9290
9294
  const label = currentVersion ? `${entry.name} ${currentVersion} -> ${entry.version}` : `${entry.name} to ${entry.version}`;
@@ -9370,7 +9374,9 @@ async function runLocalPluginRefresh(localPath, options, deps) {
9370
9374
  if (generatedPaths.length > 0) {
9371
9375
  log.success(`Generated migration: ${relative5(options.cwd, generatedPaths[0])}`);
9372
9376
  } else {
9373
- log.info(`${source.name}'s table set is unchanged \u2014 no migration needed.`);
9377
+ log.info(
9378
+ `${source.name}'s tables and columns already match the manifest \u2014 no migration needed.`
9379
+ );
9374
9380
  }
9375
9381
  } else {
9376
9382
  log.info(`${source.name} declares no tables \u2014 nothing to migrate.`);
@@ -9448,7 +9454,7 @@ function printLocalDryRun(source, currentVersion, inTreeSource) {
9448
9454
  );
9449
9455
  if (source.manifest.tables.length > 0) {
9450
9456
  console.log(
9451
- ` Would check for a migration for ${source.manifest.tables.length} table(s) (only generated if the table set changed)`
9457
+ ` Would check for a migration for ${source.manifest.tables.length} table(s) (generated for a new table or an added column on an already-migrated table; a removed/retyped/nullability-changed column stops the refresh instead \u2014 #1539)`
9452
9458
  );
9453
9459
  }
9454
9460
  console.log(` Would commit: chore(plugins): refresh ${source.name} from local checkout
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@biffo/cli",
3
- "version": "0.279.0",
3
+ "version": "0.279.1",
4
4
  "description": "Biffo project scaffolding CLI",
5
5
  "license": "MIT",
6
6
  "type": "module",