@cedarjs/cli 4.0.0-canary.13841 → 4.0.0-canary.13843

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.
@@ -177,14 +177,14 @@ Run ` + c.info(formatCedarCommand(["build"])) + " (without specifying a workspac
177
177
  process.env.VITE_CJS_IGNORE_WARNING = "true";
178
178
  const createdRequire = createRequire(import.meta.url);
179
179
  const buildBinPath = createdRequire.resolve(
180
- "@cedarjs/vite/bins/rw-vite-build.mjs"
180
+ "@cedarjs/vite/bins/cedar-vite-build.mjs"
181
181
  );
182
182
  await execa(
183
183
  `node ${buildBinPath} --webDir="${cedarPaths.web.base}" --verbose=${verbose}`,
184
184
  {
185
185
  stdio: verbose ? "inherit" : "pipe",
186
186
  shell: true,
187
- // `cwd` is needed for yarn to find the rw-vite-build binary
187
+ // `cwd` is needed for yarn to find the cedar-vite-build binary
188
188
  // It won't change process.cwd for anything else here, in this
189
189
  // process
190
190
  cwd: cedarPaths.web.base
@@ -123,16 +123,16 @@ const handler = async ({
123
123
  const cedarConfigPath = getConfigPath();
124
124
  const streamingSsrEnabled = getConfig().experimental?.streamingSsr?.enabled;
125
125
  process.env.VITE_CJS_IGNORE_WARNING = "true";
126
- let webCommand = `yarn cross-env NODE_ENV=development rw-vite-dev ${forward}`;
126
+ let webCommand = `yarn cross-env NODE_ENV=development cedar-vite-dev ${forward}`;
127
127
  if (streamingSsrEnabled) {
128
- webCommand = `yarn cross-env NODE_ENV=development rw-dev-fe ${forward}`;
128
+ webCommand = `yarn cross-env NODE_ENV=development cedar-dev-fe ${forward}`;
129
129
  }
130
130
  const rootPackageJsonPath = path.join(cedarPaths.base, "package.json");
131
131
  const rootPackageJson = JSON.parse(
132
132
  fs.readFileSync(rootPackageJsonPath, "utf8")
133
133
  );
134
134
  const isEsm = rootPackageJson.type === "module";
135
- const serverWatchCommand = isEsm ? `cedarjs-api-server-watch` : `rw-api-server-watch`;
135
+ const serverWatchCommand = isEsm ? `cedarjs-api-server-watch` : `cedar-api-server-watch`;
136
136
  const jobs = [];
137
137
  if (workspace.includes("api")) {
138
138
  jobs.push({
@@ -144,7 +144,7 @@ const handler = async ({
144
144
  ` --exec "yarn ${serverWatchCommand}`,
145
145
  ` --port ${apiAvailablePort}`,
146
146
  ` ${getApiDebugFlag(apiDebugPort, apiAvailablePort)}`,
147
- ' | rw-log-formatter"'
147
+ ` | cedar-log-formatter"`
148
148
  ].join(" ").replace(/\s+/g, " "),
149
149
  env: {
150
150
  NODE_ENV: "development",
@@ -13,11 +13,11 @@ const handler = async ({
13
13
  args.push(name.length > 1 ? `--${name}` : `-${name}`);
14
14
  args.push(String(value));
15
15
  }
16
- let command = `yarn rw-jobs ${args.join(" ")}`;
16
+ let command = `yarn cedar-jobs ${args.join(" ")}`;
17
17
  const originalLogLevel = process.env.LOG_LEVEL;
18
18
  process.env.LOG_LEVEL = originalLogLevel || "warn";
19
19
  if (process.env.NODE_ENV !== "production") {
20
- command += " | yarn rw-log-formatter";
20
+ command += " | yarn cedar-log-formatter";
21
21
  process.env.LOG_LEVEL = originalLogLevel || "debug";
22
22
  }
23
23
  execa.commandSync(command, {
@@ -18,7 +18,7 @@ const hasStringMessage = (error) => {
18
18
  const bothServerFileHandler = async (argv) => {
19
19
  if (getConfig().experimental?.rsc?.enabled || getConfig().experimental?.streamingSsr?.enabled) {
20
20
  logSkippingFastifyWebServer();
21
- await execa("yarn", ["rw-serve-fe"], {
21
+ await execa("yarn", ["cedar-serve-fe"], {
22
22
  cwd: getPaths().web.base,
23
23
  stdio: "inherit"
24
24
  });
@@ -44,7 +44,7 @@ const bothServerFileHandler = async (argv) => {
44
44
  },
45
45
  {
46
46
  name: "web",
47
- command: `yarn rw-web-server --port ${argv.webPort} --host ${argv.webHost} --api-proxy-target ${apiProxyTarget}`,
47
+ command: `yarn cedar-web-server --port ${argv.webPort} --host ${argv.webHost} --api-proxy-target ${apiProxyTarget}`,
48
48
  cwd: getPaths().base,
49
49
  prefixColor: "blue"
50
50
  }
@@ -75,7 +75,7 @@ const bothSsrRscServerHandler = async (argv, rscEnabled) => {
75
75
  host: argv.apiHost,
76
76
  port: argv.apiPort
77
77
  });
78
- const fePromise = execa("yarn", ["rw-serve-fe"], {
78
+ const fePromise = execa("yarn", ["cedar-serve-fe"], {
79
79
  cwd: getPaths().web.base,
80
80
  stdio: "inherit",
81
81
  env: rscEnabled ? {
@@ -1,7 +1,7 @@
1
1
  import execa from "execa";
2
2
  import { getPaths } from "@cedarjs/project-config";
3
3
  const webSsrServerHandler = async (rscEnabled) => {
4
- await execa("yarn", ["rw-serve-fe"], {
4
+ await execa("yarn", ["cedar-serve-fe"], {
5
5
  cwd: getPaths().web.base,
6
6
  stdio: "inherit",
7
7
  env: rscEnabled ? {
package/dist/index.js CHANGED
@@ -51,7 +51,6 @@ cwd ??= process.env.CEDAR_CWD;
51
51
  cwd ??= process.env.RWJS_CWD;
52
52
  cwd = getTomlDir(cwd);
53
53
  process.env.CEDAR_CWD = cwd;
54
- process.env.RWJS_CWD = cwd;
55
54
  if (process.argv[1]?.endsWith("redwood.js")) {
56
55
  const tomlPath = getConfigPath(cwd);
57
56
  const toml = fs.readFileSync(tomlPath, "utf8");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cedarjs/cli",
3
- "version": "4.0.0-canary.13841+2e889e1b8c",
3
+ "version": "4.0.0-canary.13843+afbae49f91",
4
4
  "description": "The CedarJS Command Line",
5
5
  "repository": {
6
6
  "type": "git",
@@ -33,16 +33,16 @@
33
33
  "dependencies": {
34
34
  "@babel/parser": "7.29.2",
35
35
  "@babel/preset-typescript": "7.28.5",
36
- "@cedarjs/api-server": "4.0.0-canary.13841",
37
- "@cedarjs/cli-helpers": "4.0.0-canary.13841",
38
- "@cedarjs/fastify-web": "4.0.0-canary.13841",
39
- "@cedarjs/internal": "4.0.0-canary.13841",
40
- "@cedarjs/prerender": "4.0.0-canary.13841",
41
- "@cedarjs/project-config": "4.0.0-canary.13841",
42
- "@cedarjs/structure": "4.0.0-canary.13841",
43
- "@cedarjs/telemetry": "4.0.0-canary.13841",
44
- "@cedarjs/utils": "4.0.0-canary.13841",
45
- "@cedarjs/web-server": "4.0.0-canary.13841",
36
+ "@cedarjs/api-server": "4.0.0-canary.13843",
37
+ "@cedarjs/cli-helpers": "4.0.0-canary.13843",
38
+ "@cedarjs/fastify-web": "4.0.0-canary.13843",
39
+ "@cedarjs/internal": "4.0.0-canary.13843",
40
+ "@cedarjs/prerender": "4.0.0-canary.13843",
41
+ "@cedarjs/project-config": "4.0.0-canary.13843",
42
+ "@cedarjs/structure": "4.0.0-canary.13843",
43
+ "@cedarjs/telemetry": "4.0.0-canary.13843",
44
+ "@cedarjs/utils": "4.0.0-canary.13843",
45
+ "@cedarjs/web-server": "4.0.0-canary.13843",
46
46
  "@listr2/prompt-adapter-enquirer": "4.2.1",
47
47
  "@opentelemetry/api": "1.9.0",
48
48
  "@opentelemetry/core": "1.30.1",
@@ -75,7 +75,7 @@
75
75
  "pascalcase": "1.0.0",
76
76
  "pluralize": "8.0.0",
77
77
  "portfinder": "1.0.38",
78
- "prettier": "3.8.2",
78
+ "prettier": "3.8.3",
79
79
  "prisma": "7.7.0",
80
80
  "prompts": "2.4.2",
81
81
  "recast": "0.23.11",
@@ -108,5 +108,5 @@
108
108
  "publishConfig": {
109
109
  "access": "public"
110
110
  },
111
- "gitHead": "2e889e1b8c5d07c84027ff4176fa6c8cf59c2a27"
111
+ "gitHead": "afbae49f91d6bc328a80ca4361509370e02bc50b"
112
112
  }