@cedarjs/cli 1.0.0-canary.13062 → 1.0.0-canary.13063
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/dist/commands/upgrade.js +16 -13
- package/package.json +11 -11
package/dist/commands/upgrade.js
CHANGED
|
@@ -238,18 +238,16 @@ const handler = async ({ dryRun, tag, verbose, dedupe, yes, force }) => {
|
|
|
238
238
|
await tasks.run();
|
|
239
239
|
if (preUpgradeError) {
|
|
240
240
|
console.error("");
|
|
241
|
-
console.error(`
|
|
242
|
-
|
|
243
|
-
console.error(" " + preUpgradeError.replace(/\n/g, "\n "));
|
|
241
|
+
console.error(` \u{1F6A8} ${c.error("Pre-upgrade Error:")}`);
|
|
242
|
+
console.error(" " + preUpgradeError.replace(/\n/g, "\n "));
|
|
244
243
|
if (!force) {
|
|
245
244
|
process.exit(1);
|
|
246
245
|
}
|
|
247
246
|
}
|
|
248
247
|
if (preUpgradeMessage) {
|
|
249
248
|
console.log("");
|
|
250
|
-
console.log(` \u{1F4E3} ${c.info("Pre-upgrade Message:")}
|
|
251
|
-
|
|
252
|
-
console.log(" " + preUpgradeMessage.replace(/\n/g, "\n "));
|
|
249
|
+
console.log(` \u{1F4E3} ${c.info("Pre-upgrade Message:")}`);
|
|
250
|
+
console.log(" " + preUpgradeMessage.replace(/\n/g, "\n "));
|
|
253
251
|
}
|
|
254
252
|
};
|
|
255
253
|
async function yarnInstall({ verbose }) {
|
|
@@ -658,27 +656,32 @@ async function runPreUpgradeScripts(ctx, task, { verbose, force }) {
|
|
|
658
656
|
);
|
|
659
657
|
if (stdout) {
|
|
660
658
|
if (ctx.preUpgradeMessage) {
|
|
661
|
-
ctx.preUpgradeMessage += "\n
|
|
659
|
+
ctx.preUpgradeMessage += "\n";
|
|
662
660
|
}
|
|
663
661
|
ctx.preUpgradeMessage += `
|
|
664
662
|
${stdout}`;
|
|
665
663
|
}
|
|
666
664
|
} catch (e) {
|
|
667
665
|
const errorOutput = e.stdout || e.stderr || e.message || "";
|
|
668
|
-
const
|
|
669
|
-
${
|
|
666
|
+
const verboseErrorMessage = verbose ? `Pre-upgrade check ${scriptName} failed with exit code ${e.exitCode}:
|
|
667
|
+
${e.stderr ? e.stderr + "\n" : ""}` : "";
|
|
670
668
|
if (ctx.preUpgradeError) {
|
|
671
|
-
ctx.preUpgradeError += "\n
|
|
669
|
+
ctx.preUpgradeError += "\n";
|
|
670
|
+
}
|
|
671
|
+
if (verbose) {
|
|
672
|
+
ctx.preUpgradeError += `
|
|
673
|
+
${verboseErrorMessage}`;
|
|
672
674
|
}
|
|
673
|
-
ctx.preUpgradeError +=
|
|
675
|
+
ctx.preUpgradeError += `
|
|
676
|
+
${errorOutput}`;
|
|
674
677
|
if (!force) {
|
|
675
|
-
await fs.promises.
|
|
678
|
+
await fs.promises.rm(tempDir, { recursive: true });
|
|
676
679
|
shouldCleanup = false;
|
|
677
680
|
return;
|
|
678
681
|
}
|
|
679
682
|
} finally {
|
|
680
683
|
if (shouldCleanup) {
|
|
681
|
-
await fs.promises.
|
|
684
|
+
await fs.promises.rm(tempDir, { recursive: true });
|
|
682
685
|
}
|
|
683
686
|
}
|
|
684
687
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cedarjs/cli",
|
|
3
|
-
"version": "1.0.0-canary.
|
|
3
|
+
"version": "1.0.0-canary.13063+d4d2d0cd8",
|
|
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.
|
|
35
|
-
"@cedarjs/cli-helpers": "1.0.0-canary.
|
|
36
|
-
"@cedarjs/fastify-web": "1.0.0-canary.
|
|
37
|
-
"@cedarjs/internal": "1.0.0-canary.
|
|
38
|
-
"@cedarjs/prerender": "1.0.0-canary.
|
|
39
|
-
"@cedarjs/project-config": "1.0.0-canary.
|
|
40
|
-
"@cedarjs/structure": "1.0.0-canary.
|
|
41
|
-
"@cedarjs/telemetry": "1.0.0-canary.
|
|
42
|
-
"@cedarjs/web-server": "1.0.0-canary.
|
|
34
|
+
"@cedarjs/api-server": "1.0.0-canary.13063",
|
|
35
|
+
"@cedarjs/cli-helpers": "1.0.0-canary.13063",
|
|
36
|
+
"@cedarjs/fastify-web": "1.0.0-canary.13063",
|
|
37
|
+
"@cedarjs/internal": "1.0.0-canary.13063",
|
|
38
|
+
"@cedarjs/prerender": "1.0.0-canary.13063",
|
|
39
|
+
"@cedarjs/project-config": "1.0.0-canary.13063",
|
|
40
|
+
"@cedarjs/structure": "1.0.0-canary.13063",
|
|
41
|
+
"@cedarjs/telemetry": "1.0.0-canary.13063",
|
|
42
|
+
"@cedarjs/web-server": "1.0.0-canary.13063",
|
|
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": "
|
|
104
|
+
"gitHead": "d4d2d0cd8e92339f008a6d07dce5d98a2a3425ee"
|
|
105
105
|
}
|