@cedarjs/cli 1.0.0-canary.12876 → 1.0.0-canary.12878
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 +8 -2
- package/package.json +11 -11
package/dist/commands/upgrade.js
CHANGED
|
@@ -15,7 +15,7 @@ const command = "upgrade";
|
|
|
15
15
|
const description = "Upgrade all @cedarjs packages via interactive CLI";
|
|
16
16
|
const builder = (yargs) => {
|
|
17
17
|
yargs.example(
|
|
18
|
-
"
|
|
18
|
+
"cedar upgrade -t 0.20.1-canary.5",
|
|
19
19
|
"Specify a version. URL for Version History:\nhttps://www.npmjs.com/package/@cedarjs/core"
|
|
20
20
|
).option("dry-run", {
|
|
21
21
|
alias: "d",
|
|
@@ -23,7 +23,7 @@ const builder = (yargs) => {
|
|
|
23
23
|
type: "boolean"
|
|
24
24
|
}).option("tag", {
|
|
25
25
|
alias: "t",
|
|
26
|
-
description: '[choices: "latest", "rc", "next", "canary", "experimental", or a specific-version (see example below)] WARNING: "canary", "rc" and "experimental" are unstable releases! And "canary" releases include breaking changes often requiring
|
|
26
|
+
description: '[choices: "latest", "rc", "next", "canary", "experimental", or a specific-version (see example below)] WARNING: "canary", "rc" and "experimental" are unstable releases! And "canary" releases include breaking changes often requiring changes to your codebase when upgrading a project.',
|
|
27
27
|
requiresArg: true,
|
|
28
28
|
type: "string",
|
|
29
29
|
coerce: validateTag
|
|
@@ -88,6 +88,12 @@ const handler = async ({ dryRun, tag, verbose, dedupe, yes }) => {
|
|
|
88
88
|
task.skip("Skipping confirmation prompt because of --yes flag.");
|
|
89
89
|
return;
|
|
90
90
|
}
|
|
91
|
+
if (tag) {
|
|
92
|
+
task.skip(
|
|
93
|
+
"Skipping confirmation prompt because a specific tag is specified."
|
|
94
|
+
);
|
|
95
|
+
return;
|
|
96
|
+
}
|
|
91
97
|
const prompt = task.prompt(ListrEnquirerPromptAdapter);
|
|
92
98
|
const proceed = await prompt.run({
|
|
93
99
|
type: "Confirm",
|
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.12878+f85adba57",
|
|
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.27.1",
|
|
33
33
|
"@babel/runtime-corejs3": "7.27.6",
|
|
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.12878",
|
|
35
|
+
"@cedarjs/cli-helpers": "1.0.0-canary.12878",
|
|
36
|
+
"@cedarjs/fastify-web": "1.0.0-canary.12878",
|
|
37
|
+
"@cedarjs/internal": "1.0.0-canary.12878",
|
|
38
|
+
"@cedarjs/prerender": "1.0.0-canary.12878",
|
|
39
|
+
"@cedarjs/project-config": "1.0.0-canary.12878",
|
|
40
|
+
"@cedarjs/structure": "1.0.0-canary.12878",
|
|
41
|
+
"@cedarjs/telemetry": "1.0.0-canary.12878",
|
|
42
|
+
"@cedarjs/web-server": "1.0.0-canary.12878",
|
|
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": "f85adba572df46d8560a1ef1620841c7257abd37"
|
|
105
105
|
}
|