@cedarjs/cli 2.0.1-next.23 → 2.0.1-rc.2

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.
Files changed (32) hide show
  1. package/dist/commands/buildHandler.js +1 -1
  2. package/dist/commands/deploy/baremetal/baremetalHandler.js +2 -2
  3. package/dist/commands/deploy/helpers/deployHandler.js +3 -3
  4. package/dist/commands/experimental/setupOpentelemetryHandler.js +1 -1
  5. package/dist/commands/experimental/templates/opentelemetry.ts.template +1 -1
  6. package/dist/commands/generate/dataMigration/dataMigration.js +1 -1
  7. package/dist/commands/generate/dbAuth/dbAuthHandler.js +3 -3
  8. package/dist/commands/generate/script/scriptHandler.js +2 -2
  9. package/dist/commands/prerenderHandler.js +2 -4
  10. package/dist/commands/serve.js +5 -10
  11. package/dist/commands/setup/deploy/providers/flightcontrolHandler.js +2 -2
  12. package/dist/commands/setup/deploy/providers/renderHandler.js +3 -3
  13. package/dist/commands/setup/deploy/providers/serverlessHandler.js +2 -2
  14. package/dist/commands/setup/deploy/templates/baremetal.js +2 -2
  15. package/dist/commands/setup/deploy/templates/flightcontrol.js +3 -3
  16. package/dist/commands/setup/deploy/templates/netlify.js +1 -1
  17. package/dist/commands/setup/deploy/templates/render.js +3 -3
  18. package/dist/commands/setup/docker/dockerHandler.js +1 -1
  19. package/dist/commands/setup/docker/templates/Dockerfile +3 -3
  20. package/dist/commands/setup/docker/templates/docker-compose.dev.yml +2 -2
  21. package/dist/commands/setup/graphql/features/fragments/fragmentsHandler.js +1 -1
  22. package/dist/commands/setup/graphql/features/trustedDocuments/trustedDocumentsHandler.js +1 -1
  23. package/dist/commands/setup/jobs/jobsHandler.js +3 -3
  24. package/dist/commands/setup/jobs/templates/jobs.ts.template +1 -1
  25. package/dist/commands/setup/middleware/ogImage/ogImageHandler.js +1 -1
  26. package/dist/commands/setup/ui/libraries/tailwindcssHandler.js +1 -1
  27. package/dist/commands/setup/uploads/uploadsHandler.js +1 -1
  28. package/dist/commands/upgrade.js +1 -1
  29. package/dist/index.js +2 -2
  30. package/dist/lib/index.js +1 -1
  31. package/dist/lib/updateCheck.js +1 -1
  32. package/package.json +12 -12
@@ -113,7 +113,7 @@ const handler = async ({
113
113
  );
114
114
  return;
115
115
  }
116
- await execa("yarn cedar prerender", {
116
+ await execa("yarn rw prerender", {
117
117
  stdio: "inherit",
118
118
  shell: true,
119
119
  cwd: rwjsPaths.web.base
@@ -31,7 +31,7 @@ const throwMissingConfig = (name) => {
31
31
  const verifyConfig = (config, yargs) => {
32
32
  if (!yargs.environment) {
33
33
  throw new Error(
34
- "Must specify an environment to deploy to, ex: `yarn cedar deploy baremetal production`"
34
+ "Must specify an environment to deploy to, ex: `yarn rw deploy baremetal production`"
35
35
  );
36
36
  }
37
37
  if (!config[yargs.environment]) {
@@ -511,7 +511,7 @@ const handler = async (yargs) => {
511
511
  const ecosystemPath = path.join(getPaths().base, "ecosystem.config.js");
512
512
  if (!fs.existsSync(tomlPath) || !fs.existsSync(ecosystemPath)) {
513
513
  console.error(
514
- c.error("\nError: Baremetal deploy has not been properly setup.\n") + "Please run `yarn cedar setup deploy baremetal` before deploying"
514
+ c.error("\nError: Baremetal deploy has not been properly setup.\n") + "Please run `yarn rw setup deploy baremetal` before deploying"
515
515
  );
516
516
  process.exit(1);
517
517
  }
@@ -5,13 +5,13 @@ const deployHandler = ({ build, prisma, dm: dataMigrate }) => {
5
5
  const paths = getPaths();
6
6
  let commandSet = [];
7
7
  if (build) {
8
- commandSet.push("yarn cedar build --verbose");
8
+ commandSet.push("yarn rw build --verbose");
9
9
  }
10
10
  if (prisma) {
11
- commandSet.push("yarn cedar prisma migrate deploy");
11
+ commandSet.push("yarn rw prisma migrate deploy");
12
12
  }
13
13
  if (dataMigrate) {
14
- commandSet.push("yarn cedar data-migrate up");
14
+ commandSet.push("yarn rw data-migrate up");
15
15
  }
16
16
  const joinedCommands = commandSet.join(" && ");
17
17
  console.log(c.note("\nRunning:\n") + `${joinedCommands}
@@ -170,7 +170,7 @@ const handler = async ({ force, verbose }) => {
170
170
  {
171
171
  title: "Regenerate the Prisma client...",
172
172
  task: (_ctx, _task) => {
173
- return execa(`yarn cedar prisma generate`, {
173
+ return execa(`yarn rw prisma generate`, {
174
174
  stdio: "inherit",
175
175
  shell: true,
176
176
  cwd: getPaths().web.base
@@ -26,7 +26,7 @@ const resource = Resource.default().merge(
26
26
  const studioPort = getConfig().studio.basePort
27
27
  const exporter = new OTLPTraceExporter({
28
28
  // Update this URL to point to where your OTLP compatible collector is listening
29
- // The redwood development studio (`yarn cedar exp studio`) can collect your
29
+ // The redwood development studio (`yarn rw exp studio`) can collect your
30
30
  // telemetry at `http://127.0.0.1:<PORT>/v1/traces` (default PORT is 4318)
31
31
  url: `http://127.0.0.1:${studioPort}/.redwood/functions/otel-trace`,
32
32
  concurrencyLimit: 64,
@@ -16,7 +16,7 @@ const POST_RUN_INSTRUCTIONS = `Next steps...
16
16
  "After writing your migration, you can run it with:"
17
17
  )}
18
18
 
19
- yarn cedar dataMigrate up
19
+ yarn rw dataMigrate up
20
20
  `;
21
21
  const TEMPLATE_PATHS = {
22
22
  js: path.resolve(
@@ -37,7 +37,7 @@ function getPostInstallMessage(isDbAuthSetup2) {
37
37
  " logged in. Also take a look in the onSubmit() functions in ForgotPasswordPage",
38
38
  " and ResetPasswordPage to change where the user redirects to after submitting",
39
39
  " those forms.\n",
40
- !isDbAuthSetup2 && " Oh, and if you haven't already, add the necessary dbAuth functions and\n app setup by running:\n\n yarn cedar setup auth dbAuth\n",
40
+ !isDbAuthSetup2 && " Oh, and if you haven't already, add the necessary dbAuth functions and\n app setup by running:\n\n yarn rw setup auth dbAuth\n",
41
41
  " Happy authenticating!"
42
42
  ].filter(Boolean).join("\n");
43
43
  }
@@ -56,7 +56,7 @@ function getPostInstallWebauthnMessage(isDbAuthSetup2) {
56
56
  " logged in. Also take a look in the onSubmit() functions in ForgotPasswordPage",
57
57
  " and ResetPasswordPage to change where the user redirects to after submitting",
58
58
  " those forms.\n",
59
- !isDbAuthSetup2 && " Oh, and if you haven't already, add the necessary dbAuth functions and\n app setup by running:\n\n yarn cedar setup auth dbAuth\n",
59
+ !isDbAuthSetup2 && " Oh, and if you haven't already, add the necessary dbAuth functions and\n app setup by running:\n\n yarn rw setup auth dbAuth\n",
60
60
  " Happy authenticating!"
61
61
  ].filter(Boolean).join("\n");
62
62
  }
@@ -304,7 +304,7 @@ const tasks = ({
304
304
  {
305
305
  title: "Generate types...",
306
306
  task: () => {
307
- execa.commandSync("yarn cedar g types");
307
+ execa.commandSync("yarn rw g types");
308
308
  }
309
309
  },
310
310
  {
@@ -46,9 +46,9 @@ const handler = async ({ force, ...args }) => {
46
46
  "After modifying your script, you can invoke it like:"
47
47
  )}
48
48
 
49
- yarn cedar exec ${args.name}
49
+ yarn rw exec ${args.name}
50
50
 
51
- yarn cedar exec ${args.name} --param1 true
51
+ yarn rw exec ${args.name} --param1 true
52
52
  `;
53
53
  validateName(args.name);
54
54
  const tasks = new Listr(
@@ -82,7 +82,7 @@ const getTasks = async (dryrun, routerPathFilter = null) => {
82
82
  }
83
83
  if (!fs.existsSync(indexHtmlPath)) {
84
84
  console.error(
85
- "You must run `yarn cedar build web` before trying to prerender."
85
+ "You must run `yarn rw build web` before trying to prerender."
86
86
  );
87
87
  process.exit(1);
88
88
  }
@@ -212,9 +212,7 @@ const prerenderRoute = async (prerenderer, queryCache, routeToPrerender, dryrun,
212
212
  }
213
213
  } catch (e) {
214
214
  console.log();
215
- console.log(
216
- c.warning("You can use `yarn cedar prerender --dry-run` to debug")
217
- );
215
+ console.log(c.warning("You can use `yarn rw prerender --dry-run` to debug"));
218
216
  console.log();
219
217
  console.log(
220
218
  `${c.info("-".repeat(10))} Error rendering path "${routeToPrerender.path}" ${c.info("-".repeat(10))}`
@@ -33,12 +33,7 @@ const builder = async (yargs) => {
33
33
  const { bothSsrRscServerHandler } = await import("./serveBothHandler.js");
34
34
  await bothSsrRscServerHandler(argv, rscEnabled);
35
35
  } else {
36
- if (!projectIsEsm()) {
37
- const { handler } = await import("@cedarjs/api-server/cjs/bothCliConfigHandler");
38
- await handler(argv);
39
- } else {
40
- await bothServerCLIConfig.handler(argv);
41
- }
36
+ await bothServerCLIConfig.handler(argv);
42
37
  }
43
38
  }
44
39
  }).command({
@@ -91,7 +86,7 @@ const builder = async (yargs) => {
91
86
  if (positionalArgs.includes("web") && !fs.existsSync(path.join(getPaths().web.dist), "index.html")) {
92
87
  console.error(
93
88
  c.error(
94
- "\n Please run `yarn cedar build web` before trying to serve web. \n"
89
+ "\n Please run `yarn rw build web` before trying to serve web. \n"
95
90
  )
96
91
  );
97
92
  process.exit(1);
@@ -109,7 +104,7 @@ const builder = async (yargs) => {
109
104
  if (!fs.existsSync(path.join(getPaths().api.dist))) {
110
105
  console.error(
111
106
  c.error(
112
- "\n Please run `yarn cedar build api` before trying to serve api. \n"
107
+ "\n Please run `yarn rw build api` before trying to serve api. \n"
113
108
  )
114
109
  );
115
110
  process.exit(1);
@@ -119,7 +114,7 @@ const builder = async (yargs) => {
119
114
  if (!apiSideExists && !rscEnabled) {
120
115
  console.error(
121
116
  c.error(
122
- "\n Unable to serve the both sides as no `api` folder exists. Please use `yarn cedar serve web` instead. \n"
117
+ "\n Unable to serve the both sides as no `api` folder exists. Please use `yarn rw serve web` instead. \n"
123
118
  )
124
119
  );
125
120
  process.exit(1);
@@ -127,7 +122,7 @@ const builder = async (yargs) => {
127
122
  if (fs.existsSync(path.join(getPaths().api.base)) && !fs.existsSync(path.join(getPaths().api.dist)) || !fs.existsSync(path.join(getPaths().web.dist), "index.html")) {
128
123
  console.error(
129
124
  c.error(
130
- "\n Please run `yarn cedar build` before trying to serve your redwood app. \n"
125
+ "\n Please run `yarn rw build` before trying to serve your redwood app. \n"
131
126
  )
132
127
  );
133
128
  process.exit(1);
@@ -78,8 +78,8 @@ const getFlightcontrolJson = async (database) => {
78
78
  Prisma datasource provider is detected to be ${detectedDatabase}.
79
79
 
80
80
  Update your schema.prisma provider to be postgresql or mysql, then run
81
- yarn cedar prisma migrate dev
82
- yarn cedar setup deploy flightcontrol
81
+ yarn rw prisma migrate dev
82
+ yarn rw setup deploy flightcontrol
83
83
  `);
84
84
  }
85
85
  };
@@ -52,11 +52,11 @@ const getRenderYamlContent = async (database) => {
52
52
  Prisma datasource provider is detected to be ${detectedDatabase}.
53
53
 
54
54
  Option 1: Update your schema.prisma provider to be ${database}, then run
55
- yarn cedar prisma migrate dev
56
- yarn cedar setup deploy render --database ${database}
55
+ yarn rw prisma migrate dev
56
+ yarn rw setup deploy render --database ${database}
57
57
 
58
58
  Option 2: Rerun setup deploy command with current schema.prisma provider:
59
- yarn cedar setup deploy render --database ${detectedDatabase}`);
59
+ yarn rw setup deploy render --database ${detectedDatabase}`);
60
60
  }
61
61
  };
62
62
  const notes = [
@@ -30,9 +30,9 @@ const notes = [
30
30
  " want to give it a shot, open your `.env` file and add your AWS credentials,",
31
31
  " then run: ",
32
32
  "",
33
- " yarn cedar deploy serverless --first-run",
33
+ " yarn rw deploy serverless --first-run",
34
34
  "",
35
- " For subsequent deploys you can just run `yarn cedar deploy serverless`.",
35
+ " For subsequent deploys you can just run `yarn rw deploy serverless`.",
36
36
  "",
37
37
  "\u2022 If you want to use the Serverless Dashboard to manage your app, plug in",
38
38
  " the values for `org` and `app` in `web/serverless.yml` and `api/serverless.yml`",
@@ -67,11 +67,11 @@ freeSpaceRequired = 2048
67
67
  const MAINTENANCE = `<!--
68
68
  Put up this maintenance page on your deployed service with:
69
69
 
70
- yarn cedar baremetal deploy --maintenance up
70
+ yarn rw baremetal deploy --maintenance up
71
71
 
72
72
  And take it back down with:
73
73
 
74
- yarn cedar baremetal deploy --maintenance down
74
+ yarn rw baremetal deploy --maintenance down
75
75
  -->
76
76
 
77
77
  <!DOCTYPE html>
@@ -16,8 +16,8 @@ const flightcontrolConfig = {
16
16
  buildType: "nixpacks",
17
17
  cpu: 0.5,
18
18
  memory: 1,
19
- buildCommand: "yarn cedar deploy flightcontrol api",
20
- startCommand: "yarn cedar deploy flightcontrol api --serve",
19
+ buildCommand: "yarn rw deploy flightcontrol api",
20
+ startCommand: "yarn rw deploy flightcontrol api --serve",
21
21
  port: 8911,
22
22
  healthCheckPath: "/graphql/health",
23
23
  ci: {
@@ -35,7 +35,7 @@ const flightcontrolConfig = {
35
35
  type: "static",
36
36
  buildType: "nixpacks",
37
37
  singlePageApp: true,
38
- buildCommand: "yarn cedar deploy flightcontrol web",
38
+ buildCommand: "yarn rw deploy flightcontrol web",
39
39
  outputDirectory: "web/dist",
40
40
  ci: {
41
41
  type: "ec2"
@@ -1,7 +1,7 @@
1
1
  import { getConfig } from "../../../../lib/index.js";
2
2
  const config = getConfig();
3
3
  const NETLIFY_TOML = `[build]
4
- command = "yarn cedar deploy netlify"
4
+ command = "yarn rw deploy netlify"
5
5
  publish = "web/dist"
6
6
  functions = "api/dist/functions"
7
7
 
@@ -10,7 +10,7 @@ services:
10
10
  - name: ${PROJECT_NAME}-web
11
11
  type: web
12
12
  env: static
13
- buildCommand: npm install --global corepack && yarn install && yarn cedar deploy render web
13
+ buildCommand: npm install --global corepack && yarn install && yarn rw deploy render web
14
14
  staticPublishPath: ./web/dist
15
15
 
16
16
  envVars:
@@ -35,8 +35,8 @@ services:
35
35
  plan: free
36
36
  env: node
37
37
  region: oregon
38
- buildCommand: npm install --global corepack && yarn install && yarn cedar build api
39
- startCommand: yarn cedar deploy render api
38
+ buildCommand: npm install --global corepack && yarn install && yarn rw build api
39
+ startCommand: yarn rw deploy render api
40
40
 
41
41
  envVars:
42
42
  ${database}
@@ -227,7 +227,7 @@ async function handler({ force }) {
227
227
  "Then, connect to the container and migrate your database:",
228
228
  "",
229
229
  " docker compose -f ./docker-compose.dev.yml run --rm -it console /bin/bash",
230
- " root@...:/home/node/app# yarn cedar prisma migrate dev",
230
+ " root@...:/home/node/app# yarn rw prisma migrate dev",
231
231
  "",
232
232
  "We assume you're using Postgres. If you're not, you'll need to make other changes to switch over.",
233
233
  "Lastly, ensure you have Docker. If you don't, see https://docs.docker.com/desktop/",
@@ -41,21 +41,21 @@ FROM base as api_build
41
41
  # ARG MY_BUILD_TIME_ENV_VAR
42
42
 
43
43
  COPY --chown=node:node api api
44
- RUN yarn cedar build api
44
+ RUN yarn rw build api
45
45
 
46
46
  # web prerender build
47
47
  # -------------------
48
48
  FROM api_build as web_build_with_prerender
49
49
 
50
50
  COPY --chown=node:node web web
51
- RUN yarn cedar build web
51
+ RUN yarn rw build web
52
52
 
53
53
  # web build
54
54
  # ---------
55
55
  FROM base as web_build
56
56
 
57
57
  COPY --chown=node:node web web
58
- RUN yarn cedar build web --no-prerender
58
+ RUN yarn rw build web --no-prerender
59
59
 
60
60
  # api serve
61
61
  # ---------
@@ -4,7 +4,7 @@ services:
4
4
  context: .
5
5
  dockerfile: ./Dockerfile
6
6
  target: base
7
- command: yarn cedar dev
7
+ command: yarn rw dev
8
8
  volumes:
9
9
  - .:/home/node/app
10
10
  - node_modules:/home/node/app/node_modules
@@ -36,7 +36,7 @@ services:
36
36
  #
37
37
  # ```
38
38
  # docker compose -f ./docker-compose.dev.yml run --rm -it console /bin/bash
39
- # root@...:/home/node/app# yarn cedar prisma migrate dev
39
+ # root@...:/home/node/app# yarn rw prisma migrate dev
40
40
  # ```
41
41
  console:
42
42
  user: root
@@ -34,7 +34,7 @@ async function handler({ force }) {
34
34
  {
35
35
  title: "Generate possibleTypes.ts",
36
36
  task: () => {
37
- execa.commandSync("yarn cedar generate types", { stdio: "ignore" });
37
+ execa.commandSync("yarn redwood generate types", { stdio: "ignore" });
38
38
  }
39
39
  },
40
40
  {
@@ -28,7 +28,7 @@ async function handler({ force }) {
28
28
  {
29
29
  title: "Generating Trusted Documents store ...",
30
30
  task: () => {
31
- execa.commandSync("yarn cedar generate types", { stdio: "ignore" });
31
+ execa.commandSync("yarn redwood generate types", { stdio: "ignore" });
32
32
  }
33
33
  },
34
34
  {
@@ -98,10 +98,10 @@ const tasks = async ({ force }) => {
98
98
  ${c.success("\nBackground jobs configured!\n")}
99
99
 
100
100
  ${!modelExists ? "Migrate your database to finish setting up jobs:\n" : ""}
101
- ${!modelExists ? c.highlight("\n\xA0\xA0yarn cedar prisma migrate dev\n") : ""}
101
+ ${!modelExists ? c.highlight("\n\xA0\xA0yarn rw prisma migrate dev\n") : ""}
102
102
 
103
- Generate jobs with: ${c.highlight("yarn cedar g job <name>")}
104
- Execute jobs with: ${c.highlight("yarn cedar jobs work\n")}
103
+ Generate jobs with: ${c.highlight("yarn rw g job <name>")}
104
+ Execute jobs with: ${c.highlight("yarn rw jobs work\n")}
105
105
 
106
106
  Check out the docs for more info:
107
107
  ${c.link("https://cedarjs.com/docs/background-jobs")}
@@ -1,5 +1,5 @@
1
1
  // Setup for background jobs. Jobs themselves live in api/src/jobs
2
- // Execute jobs in dev with `yarn cedar jobs work`
2
+ // Execute jobs in dev with `yarn rw jobs work`
3
3
  // See https://cedarjs.com/docs/background-jobs
4
4
 
5
5
  import { PrismaAdapter, JobManager } from '@cedarjs/jobs'
@@ -18,7 +18,7 @@ async function handler({ force }) {
18
18
  task: () => {
19
19
  if (!getConfig().experimental?.streamingSsr?.enabled) {
20
20
  throw new Error(
21
- "The Streaming SSR experimental feature must be enabled before you can setup middleware.\n\nRun this command to setup streaming ssr: \n yarn cedar exp setup-streaming-ssr\n"
21
+ "The Streaming SSR experimental feature must be enabled before you can setup middleware.\n\nRun this command to setup streaming ssr: \n yarn rw exp setup-streaming-ssr\n"
22
22
  );
23
23
  }
24
24
  }
@@ -20,7 +20,7 @@ const tailwindImportsAndNotes = [
20
20
  "/**",
21
21
  " * START --- SETUP TAILWINDCSS EDIT",
22
22
  " *",
23
- " * `yarn cedar setup ui tailwindcss` placed these directives here",
23
+ " * `yarn rw setup ui tailwindcss` placed these directives here",
24
24
  " * to inject Tailwind's styles into your CSS.",
25
25
  " * For more information, see: https://tailwindcss.com/docs/installation",
26
26
  " */",
@@ -120,7 +120,7 @@ const handler = async ({ force }) => {
120
120
 
121
121
  ${c.success("\nUploads and storage configured!\n")}
122
122
 
123
- Remember to add UPLOADS_SECRET to your .env file. You can generate one with ${c.highlight("yarn cedar generate secret")}
123
+ Remember to add UPLOADS_SECRET to your .env file. You can generate one with ${c.highlight("yarn rw generate secret")}
124
124
 
125
125
 
126
126
  Check out the docs for more info:
@@ -422,7 +422,7 @@ async function refreshPrismaClient(task, { verbose }) {
422
422
  } catch (e) {
423
423
  task.skip("Refreshing the Prisma client caused an Error.");
424
424
  console.log(
425
- "You may need to update your prisma client manually: $ yarn cedar prisma generate"
425
+ "You may need to update your prisma client manually: $ yarn rw prisma generate"
426
426
  );
427
427
  console.log(c.error(e.message));
428
428
  }
package/dist/index.js CHANGED
@@ -119,14 +119,14 @@ async function runYargs() {
119
119
  describe: "Load additional .env files. Values defined in files specified later override earlier ones.",
120
120
  array: true
121
121
  }).example(
122
- "yarn cedar exec migrateUsers --load-env-files stripe nakama",
122
+ "yarn rw exec migrateUsers --load-env-files stripe nakama",
123
123
  "Run a script, also loading env vars from '.env.stripe' and '.env.nakama'"
124
124
  ).option("telemetry", {
125
125
  describe: "Whether to send anonymous usage telemetry to RedwoodJS",
126
126
  boolean: true
127
127
  // hidden: true,
128
128
  }).example(
129
- "yarn cedar g page home /",
129
+ "yarn rw g page home /",
130
130
  "Create a page component named 'Home' at path '/'"
131
131
  ).demandCommand().strict().exitProcess(false).alias("h", "help").command(buildCommand).command(checkCommand).command(consoleCommand).command(deployCommand).command(destroyCommand).command(devCommand).command(execCommand).command(experimentalCommand).command(generateCommand).command(infoCommand).command(jobsCommand).command(lintCommand).command(prerenderCommand).command(prismaCommand).command(recordCommand).command(serveCommand).command(setupCommand).command(studioCommand).command(projectIsEsm() ? testCommandEsm : testCommand).command(tstojsCommand).command(typeCheckCommand).command(upgradeCommand);
132
132
  await loadPlugins(yarg);
package/dist/lib/index.js CHANGED
@@ -184,7 +184,7 @@ const getPrettierOptions = async () => {
184
184
  const transformTSToJS = async (filename, content) => {
185
185
  const { code } = babel.transform(content, {
186
186
  filename,
187
- // If you ran `yarn cedar generate` in `./web` transformSync would import the `.babelrc.js` file,
187
+ // If you ran `yarn rw generate` in `./web` transformSync would import the `.babelrc.js` file,
188
188
  // in `./web`? despite us setting `configFile: false`.
189
189
  cwd: process.env.NODE_ENV === "test" ? void 0 : getPaths().base,
190
190
  configFile: false,
@@ -88,7 +88,7 @@ function getUpdateMessage() {
88
88
  const data = readUpdateDataFile();
89
89
  const localTag = extractTagFromVersion(data.localVersion) || "latest";
90
90
  let updateCount = 0;
91
- let message = " New updates to Cedar are available via `yarn cedar upgrade#REPLACEME#` ";
91
+ let message = " New updates to Cedar are available via `yarn rw upgrade#REPLACEME#` ";
92
92
  data.remoteVersions.forEach((version, tag) => {
93
93
  if (semver.gt(version, data.localVersion)) {
94
94
  updateCount += 1;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cedarjs/cli",
3
- "version": "2.0.1-next.23+ee9637a66",
3
+ "version": "2.0.1-rc.2",
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": "2.0.1-next.23+ee9637a66",
35
- "@cedarjs/cli-helpers": "2.0.1-next.23+ee9637a66",
36
- "@cedarjs/fastify-web": "2.0.1-next.23+ee9637a66",
37
- "@cedarjs/internal": "2.0.1-next.23+ee9637a66",
38
- "@cedarjs/prerender": "2.0.1-next.23+ee9637a66",
39
- "@cedarjs/project-config": "2.0.1-next.23+ee9637a66",
40
- "@cedarjs/structure": "2.0.1-next.23+ee9637a66",
41
- "@cedarjs/telemetry": "2.0.1-next.23+ee9637a66",
42
- "@cedarjs/web-server": "2.0.1-next.23+ee9637a66",
34
+ "@cedarjs/api-server": "2.0.1-rc.2",
35
+ "@cedarjs/cli-helpers": "2.0.1-rc.2",
36
+ "@cedarjs/fastify-web": "2.0.1-rc.2",
37
+ "@cedarjs/internal": "2.0.1-rc.2",
38
+ "@cedarjs/prerender": "2.0.1-rc.2",
39
+ "@cedarjs/project-config": "2.0.1-rc.2",
40
+ "@cedarjs/structure": "2.0.1-rc.2",
41
+ "@cedarjs/telemetry": "2.0.1-rc.2",
42
+ "@cedarjs/web-server": "2.0.1-rc.2",
43
43
  "@listr2/prompt-adapter-enquirer": "2.0.16",
44
44
  "@opentelemetry/api": "1.8.0",
45
45
  "@opentelemetry/core": "1.22.0",
@@ -95,11 +95,11 @@
95
95
  "memfs": "4.17.2",
96
96
  "node-ssh": "13.2.1",
97
97
  "tsx": "4.20.5",
98
- "typescript": "5.9.3",
98
+ "typescript": "5.9.2",
99
99
  "vitest": "3.2.4"
100
100
  },
101
101
  "publishConfig": {
102
102
  "access": "public"
103
103
  },
104
- "gitHead": "ee9637a6646277cf451b4bc1f84718a97f336889"
104
+ "gitHead": "730b259c974f822005234ac851d6b9c7f9256a0e"
105
105
  }