@cedarjs/cli 8.0.0-canary.3589 → 8.0.0-canary.3592

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.
@@ -1,5 +1,15 @@
1
1
  import { terminalLink } from "termi-link";
2
- if (process.argv.slice(2).includes("api")) {
2
+ import { Parser } from "yargs/helpers";
3
+ function isRenderApiDeploy(args) {
4
+ const { _: positionals } = Parser(args, {
5
+ boolean: ["telemetry", "prisma", "data-migrate"],
6
+ array: ["load-env-files"],
7
+ alias: { "data-migrate": ["dm"] }
8
+ });
9
+ const [cliCommand, provider, side] = positionals.map(String);
10
+ return cliCommand === "deploy" && provider === "render" && side === "api";
11
+ }
12
+ if (isRenderApiDeploy(process.argv.slice(2))) {
3
13
  process.env.CEDAR_DISABLE_TELEMETRY = "1";
4
14
  }
5
15
  const command = "render <side>";
@@ -33,5 +43,6 @@ export {
33
43
  builder,
34
44
  command,
35
45
  description,
36
- handler
46
+ handler,
47
+ isRenderApiDeploy
37
48
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cedarjs/cli",
3
- "version": "8.0.0-canary.3589",
3
+ "version": "8.0.0-canary.3592",
4
4
  "description": "The CedarJS Command Line",
5
5
  "repository": {
6
6
  "type": "git",
@@ -36,17 +36,17 @@
36
36
  "@babel/preset-typescript": "7.29.7",
37
37
  "@babel/traverse": "7.29.12",
38
38
  "@babel/types": "7.29.11",
39
- "@cedarjs/api-server": "8.0.0-canary.3589",
40
- "@cedarjs/babel-config": "8.0.0-canary.3589",
41
- "@cedarjs/cli-helpers": "8.0.0-canary.3589",
42
- "@cedarjs/internal": "8.0.0-canary.3589",
43
- "@cedarjs/prerender": "8.0.0-canary.3589",
44
- "@cedarjs/project-config": "8.0.0-canary.3589",
45
- "@cedarjs/structure": "8.0.0-canary.3589",
46
- "@cedarjs/telemetry": "8.0.0-canary.3589",
47
- "@cedarjs/utils": "8.0.0-canary.3589",
48
- "@cedarjs/vite": "8.0.0-canary.3589",
49
- "@cedarjs/web-server": "8.0.0-canary.3589",
39
+ "@cedarjs/api-server": "8.0.0-canary.3592",
40
+ "@cedarjs/babel-config": "8.0.0-canary.3592",
41
+ "@cedarjs/cli-helpers": "8.0.0-canary.3592",
42
+ "@cedarjs/internal": "8.0.0-canary.3592",
43
+ "@cedarjs/prerender": "8.0.0-canary.3592",
44
+ "@cedarjs/project-config": "8.0.0-canary.3592",
45
+ "@cedarjs/structure": "8.0.0-canary.3592",
46
+ "@cedarjs/telemetry": "8.0.0-canary.3592",
47
+ "@cedarjs/utils": "8.0.0-canary.3592",
48
+ "@cedarjs/vite": "8.0.0-canary.3592",
49
+ "@cedarjs/web-server": "8.0.0-canary.3592",
50
50
  "@listr2/prompt-adapter-enquirer": "4.4.3",
51
51
  "@opentelemetry/api": "1.9.1",
52
52
  "@opentelemetry/core": "2.12.0",
@@ -93,7 +93,7 @@
93
93
  "yargs": "18.2.0"
94
94
  },
95
95
  "devDependencies": {
96
- "@cedarjs/framework-tools": "8.0.0-canary.3589",
96
+ "@cedarjs/framework-tools": "8.0.0-canary.3592",
97
97
  "@prisma/dmmf": "7.10.1",
98
98
  "@types/archiver": "^7.0.0",
99
99
  "memfs": "4.80.0",