@cedarjs/cli 1.0.0-canary.13072 → 1.0.0-canary.13074

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.
@@ -246,7 +246,7 @@ const handler = async ({ dryRun, tag, verbose, dedupe, yes, force }) => {
246
246
  }
247
247
  if (preUpgradeMessage) {
248
248
  console.log("");
249
- console.log(` \u{1F4E3} ${c.info("Pre-upgrade Message:")}`);
249
+ console.log(` \u{1F4E3} ${c.info("Pre-upgrade Message:")}`);
250
250
  console.log(" " + preUpgradeMessage.replace(/\n/g, "\n "));
251
251
  }
252
252
  };
@@ -377,17 +377,18 @@ async function updatePackageVersionsFromTemplate(ctx, { dryRun, verbose }) {
377
377
  const pkgJsonPath = path.join(basePath, "package.json");
378
378
  return {
379
379
  title: `Updating ${pkgJsonPath}`,
380
- task: async () => {
380
+ task: async (_ctx, task) => {
381
381
  const res = await fetch(url);
382
382
  const text = await res.text();
383
383
  const templatePackageJson = JSON.parse(text);
384
384
  const localPackageJsonText = fs.readFileSync(pkgJsonPath, "utf-8");
385
385
  const localPackageJson = JSON.parse(localPackageJsonText);
386
+ const messages = [];
386
387
  Object.entries(templatePackageJson.dependencies || {}).forEach(
387
388
  ([depName, depVersion]) => {
388
389
  if (!depName.startsWith("@cedarjs/")) {
389
390
  if (verbose || dryRun) {
390
- console.log(
391
+ messages.push(
391
392
  ` - ${depName}: ${localPackageJson.dependencies[depName]} => ${depVersion}`
392
393
  );
393
394
  }
@@ -399,7 +400,7 @@ async function updatePackageVersionsFromTemplate(ctx, { dryRun, verbose }) {
399
400
  ([depName, depVersion]) => {
400
401
  if (!depName.startsWith("@cedarjs/")) {
401
402
  if (verbose || dryRun) {
402
- console.log(
403
+ messages.push(
403
404
  ` - ${depName}: ${localPackageJson.devDependencies[depName]} => ${depVersion}`
404
405
  );
405
406
  }
@@ -407,6 +408,9 @@ async function updatePackageVersionsFromTemplate(ctx, { dryRun, verbose }) {
407
408
  }
408
409
  }
409
410
  );
411
+ if (messages.length > 0) {
412
+ task.title = task.title + "\n" + messages.join("\n");
413
+ }
410
414
  if (!dryRun) {
411
415
  fs.writeFileSync(
412
416
  pkgJsonPath,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cedarjs/cli",
3
- "version": "1.0.0-canary.13072+b5e09a070",
3
+ "version": "1.0.0-canary.13074+860a0a8aa",
4
4
  "description": "The CedarJS Command Line",
5
5
  "repository": {
6
6
  "type": "git",
@@ -31,15 +31,15 @@
31
31
  "dependencies": {
32
32
  "@babel/preset-typescript": "7.28.5",
33
33
  "@babel/runtime-corejs3": "7.28.4",
34
- "@cedarjs/api-server": "1.0.0-canary.13072",
35
- "@cedarjs/cli-helpers": "1.0.0-canary.13072",
36
- "@cedarjs/fastify-web": "1.0.0-canary.13072",
37
- "@cedarjs/internal": "1.0.0-canary.13072",
38
- "@cedarjs/prerender": "1.0.0-canary.13072",
39
- "@cedarjs/project-config": "1.0.0-canary.13072",
40
- "@cedarjs/structure": "1.0.0-canary.13072",
41
- "@cedarjs/telemetry": "1.0.0-canary.13072",
42
- "@cedarjs/web-server": "1.0.0-canary.13072",
34
+ "@cedarjs/api-server": "1.0.0-canary.13074",
35
+ "@cedarjs/cli-helpers": "1.0.0-canary.13074",
36
+ "@cedarjs/fastify-web": "1.0.0-canary.13074",
37
+ "@cedarjs/internal": "1.0.0-canary.13074",
38
+ "@cedarjs/prerender": "1.0.0-canary.13074",
39
+ "@cedarjs/project-config": "1.0.0-canary.13074",
40
+ "@cedarjs/structure": "1.0.0-canary.13074",
41
+ "@cedarjs/telemetry": "1.0.0-canary.13074",
42
+ "@cedarjs/web-server": "1.0.0-canary.13074",
43
43
  "@listr2/prompt-adapter-enquirer": "2.0.16",
44
44
  "@opentelemetry/api": "1.8.0",
45
45
  "@opentelemetry/core": "1.22.0",
@@ -101,5 +101,5 @@
101
101
  "publishConfig": {
102
102
  "access": "public"
103
103
  },
104
- "gitHead": "b5e09a070f309f65c2cbcc609fa8fb81a2d79143"
104
+ "gitHead": "860a0a8aaa3e8f24da004818944b3424253ceb28"
105
105
  }