@cedarjs/cli 0.6.0 → 0.6.1-next.51

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 (54) hide show
  1. package/README.md +4 -4
  2. package/dist/commands/build.js +2 -2
  3. package/dist/commands/deploy/baremetal.js +1 -1
  4. package/dist/commands/deploy/flightcontrol.js +2 -2
  5. package/dist/commands/deploy/flightcontrolHandler.js +1 -1
  6. package/dist/commands/deploy/helpers/deployBuilder.js +2 -2
  7. package/dist/commands/deploy/render.js +2 -2
  8. package/dist/commands/deploy/renderHandler.js +1 -1
  9. package/dist/commands/deploy/serverless.js +2 -2
  10. package/dist/commands/deploy.js +2 -2
  11. package/dist/commands/destroy.js +2 -2
  12. package/dist/commands/dev.js +2 -2
  13. package/dist/commands/devHandler.js +9 -3
  14. package/dist/commands/experimental.js +2 -2
  15. package/dist/commands/generate/dataMigration/dataMigration.js +2 -2
  16. package/dist/commands/generate/dbAuth/dbAuth.js +2 -2
  17. package/dist/commands/generate/function/function.js +2 -2
  18. package/dist/commands/generate/job/job.js +2 -2
  19. package/dist/commands/generate/ogImage/ogImage.js +2 -2
  20. package/dist/commands/generate/scaffold/scaffold.js +2 -2
  21. package/dist/commands/generate/scaffold/scaffoldHandler.js +3 -1
  22. package/dist/commands/generate/script/script.js +2 -2
  23. package/dist/commands/generate/sdl/sdl.js +2 -2
  24. package/dist/commands/generate/secret/secret.js +2 -2
  25. package/dist/commands/generate/service/service.js +2 -2
  26. package/dist/commands/generate/yargsCommandHelpers.js +2 -2
  27. package/dist/commands/generate.js +2 -2
  28. package/dist/commands/info.js +2 -2
  29. package/dist/commands/lint.js +2 -2
  30. package/dist/commands/prismaHandler.js +1 -1
  31. package/dist/commands/serve.js +4 -4
  32. package/dist/commands/serveBothHandler.js +2 -2
  33. package/dist/commands/setup/auth/auth.js +2 -2
  34. package/dist/commands/setup/cache/cache.js +2 -2
  35. package/dist/commands/setup/deploy/deploy.js +2 -2
  36. package/dist/commands/setup/docker/templates/Dockerfile +4 -4
  37. package/dist/commands/setup/generator/generator.js +2 -2
  38. package/dist/commands/setup/graphql/graphql.js +2 -2
  39. package/dist/commands/setup/jobs/jobs.js +2 -2
  40. package/dist/commands/setup/middleware/middleware.js +2 -2
  41. package/dist/commands/setup/monitoring/monitoring.js +2 -2
  42. package/dist/commands/setup/monitoring/sentry/sentryHandler.js +1 -1
  43. package/dist/commands/setup/package/package.js +2 -2
  44. package/dist/commands/setup/ui/libraries/mantineHandler.js +1 -1
  45. package/dist/commands/setup/ui/libraries/tailwindcssHandler.js +5 -5
  46. package/dist/commands/setup/ui/templates/{postcss.config.js.template → postcss.config.cjs.template} +1 -1
  47. package/dist/commands/setup/ui/ui.js +2 -2
  48. package/dist/commands/setup.js +2 -2
  49. package/dist/commands/test.js +2 -2
  50. package/dist/commands/type-check.js +2 -2
  51. package/dist/lib/index.js +1 -1
  52. package/dist/lib/test.js +1 -1
  53. package/package.json +12 -11
  54. /package/dist/commands/setup/ui/templates/{mantine-postcss.config.js.template → mantine-postcss.config.cjs.template} +0 -0
package/README.md CHANGED
@@ -309,8 +309,8 @@ export const builder = (yargs) =>
309
309
  .demandCommand()
310
310
  .epilogue(
311
311
  `Also see the ${terminalLink(
312
- 'Redwood CLI Reference',
313
- 'https://redwoodjs.com/docs/cli-commands#generate-alias-g',
312
+ 'CedarJS CLI Reference',
313
+ 'https://cedarjs.com/docs/cli-commands#generate-alias-g',
314
314
  )}`,
315
315
  )
316
316
  ```
@@ -493,8 +493,8 @@ export const builder = (yargs) => {
493
493
  })
494
494
  .epilogue(
495
495
  `Also see the ${terminalLink(
496
- 'Redwood CLI Reference',
497
- 'https://redwoodjs.com/docs/cli-commands#generate-sdl',
496
+ 'CedarJS CLI Reference',
497
+ 'https://cedarjs.com/docs/cli-commands#generate-sdl',
498
498
  )}`,
499
499
  )
500
500
  Object.entries(defaults).forEach(([option, config]) => {
@@ -37,8 +37,8 @@ const builder = (yargs) => {
37
37
  });
38
38
  }).epilogue(
39
39
  `Also see the ${terminalLink(
40
- "Redwood CLI Reference",
41
- "https://redwoodjs.com/docs/cli-commands#build"
40
+ "CedarJS CLI Reference",
41
+ "https://cedarjs.com/docs/cli-commands#build"
42
42
  )}`
43
43
  );
44
44
  };
@@ -72,7 +72,7 @@ const builder = (yargs) => {
72
72
  yargs.epilogue(
73
73
  `Also see the ${terminalLink(
74
74
  "Redwood Baremetal Deploy Reference",
75
- "https://redwoodjs.com/docs/cli-commands#deploy"
75
+ "https://cedarjs.com/docs/cli-commands#deploy"
76
76
  )}
77
77
  `
78
78
  );
@@ -22,8 +22,8 @@ const builder = (yargs) => {
22
22
  alias: "dm"
23
23
  }).epilogue(
24
24
  `For more commands, options, and examples, see ${terminalLink(
25
- "Redwood CLI Reference",
26
- "https://redwoodjs.com/docs/cli-commands#deploy"
25
+ "CedarJS CLI Reference",
26
+ "https://cedarjs.com/docs/cli-commands#deploy"
27
27
  )}`
28
28
  );
29
29
  };
@@ -39,7 +39,7 @@ const handler = async ({ side, serve, prisma, dm: dataMigrate }) => {
39
39
  if (hasServerFile) {
40
40
  execa(`yarn node ${serverFilePath}`, execaConfig);
41
41
  } else {
42
- const { handler: handler2 } = await import("@cedarjs/api-server/dist/apiCLIConfigHandler.js");
42
+ const { handler: handler2 } = await import("@cedarjs/api-server/apiCliConfigHandler");
43
43
  handler2();
44
44
  }
45
45
  }
@@ -15,8 +15,8 @@ const deployBuilder = (yargs) => {
15
15
  alias: "dm"
16
16
  }).epilogue(
17
17
  `For more commands, options, and examples, see ${terminalLink(
18
- "Redwood CLI Reference",
19
- "https://redwoodjs.com/docs/cli-commands#deploy"
18
+ "CedarJS CLI Reference",
19
+ "https://cedarjs.com/docs/cli-commands#deploy"
20
20
  )}`
21
21
  );
22
22
  };
@@ -20,8 +20,8 @@ const builder = (yargs) => {
20
20
  alias: "dm"
21
21
  }).epilogue(
22
22
  `For more commands, options, and examples, see ${terminalLink(
23
- "Redwood CLI Reference",
24
- "https://redwoodjs.com/docs/cli-commands#deploy"
23
+ "CedarJS CLI Reference",
24
+ "https://cedarjs.com/docs/cli-commands#deploy"
25
25
  )}`
26
26
  );
27
27
  };
@@ -51,7 +51,7 @@ const handler = async ({ side, prisma, dataMigrate }) => {
51
51
  if (hasServerFile) {
52
52
  execa(`yarn node ${serverFilePath}`, execaConfig);
53
53
  } else {
54
- const { handler: handler2 } = await import("@cedarjs/api-server/dist/apiCLIConfigHandler.js");
54
+ const { handler: handler2 } = await import("@cedarjs/api-server/apiCliConfigHandler");
55
55
  handler2();
56
56
  }
57
57
  }
@@ -32,8 +32,8 @@ const builder = (yargs) => {
32
32
  });
33
33
  yargs.epilogue(
34
34
  `Also see the ${terminalLink(
35
- "Redwood CLI Reference",
36
- "https://redwoodjs.com/docs/cli-commands#deploy"
35
+ "CedarJS CLI Reference",
36
+ "https://cedarjs.com/docs/cli-commands#deploy"
37
37
  )}
38
38
  `
39
39
  );
@@ -9,8 +9,8 @@ const command = "deploy <target>";
9
9
  const description = "Deploy your Redwood project";
10
10
  const builder = (yargs) => yargs.command(deployBaremetal).command(deployFlightcontrol).command(deployNetlify).command(deployRender).command(deployServerless).command(deployVercel).demandCommand().epilogue(
11
11
  `Also see the ${terminalLink(
12
- "Redwood CLI Reference",
13
- "https://redwoodjs.com/docs/cli-commands#deploy"
12
+ "CedarJS CLI Reference",
13
+ "https://cedarjs.com/docs/cli-commands#deploy"
14
14
  )}
15
15
  `
16
16
  );
@@ -13,8 +13,8 @@ const aliases = ["d"];
13
13
  const description = "Rollback changes made by the generate command";
14
14
  const builder = (yargs) => yargs.command(destroyCell).command(destroyComponent).command(destroyDirective).command(destroyFunction).command(destroyLayout).command(destroyPage).command(destroyScaffold).command(destroySdl).command(destroyService).demandCommand().epilogue(
15
15
  `Also see the ${terminalLink(
16
- "Redwood CLI Reference",
17
- "https://redwoodjs.com/docs/cli-commands#destroy-alias-d"
16
+ "CedarJS CLI Reference",
17
+ "https://cedarjs.com/docs/cli-commands#destroy-alias-d"
18
18
  )}`
19
19
  );
20
20
  export {
@@ -30,8 +30,8 @@ const builder = (yargs) => {
30
30
  `);
31
31
  }).epilogue(
32
32
  `Also see the ${terminalLink(
33
- "Redwood CLI Reference",
34
- "https://redwoodjs.com/docs/cli-commands#dev"
33
+ "CedarJS CLI Reference",
34
+ "https://cedarjs.com/docs/cli-commands#dev"
35
35
  )}`
36
36
  );
37
37
  };
@@ -1,4 +1,5 @@
1
- import { argv } from "process";
1
+ import path from "node:path";
2
+ import { argv } from "node:process";
2
3
  import concurrently from "concurrently";
3
4
  import fs from "fs-extra";
4
5
  import { recordTelemetryAttributes } from "@cedarjs/cli-helpers";
@@ -124,12 +125,17 @@ const handler = async ({
124
125
  return "";
125
126
  };
126
127
  const redwoodConfigPath = getConfigPath();
127
- const streamingSsrEnabled = getConfig().experimental.streamingSsr?.enabled;
128
+ const streamingSsrEnabled = getConfig().experimental?.streamingSsr?.enabled;
128
129
  process.env.VITE_CJS_IGNORE_WARNING = "true";
129
130
  let webCommand = `yarn cross-env NODE_ENV=development rw-vite-dev ${forward}`;
130
131
  if (streamingSsrEnabled) {
131
132
  webCommand = `yarn cross-env NODE_ENV=development rw-dev-fe ${forward}`;
132
133
  }
134
+ const rootPackageJson = JSON.parse(
135
+ fs.readFileSync(path.join(rwjsPaths.base, "package.json"), "utf8")
136
+ );
137
+ const isEsm = rootPackageJson.type === "module";
138
+ const serverWatchCommand = isEsm ? `cedarjs-api-server-watch` : `rw-api-server-watch`;
133
139
  const jobs = {
134
140
  api: {
135
141
  name: "api",
@@ -137,7 +143,7 @@ const handler = async ({
137
143
  "yarn nodemon",
138
144
  " --quiet",
139
145
  ` --watch "${redwoodConfigPath}"`,
140
- ' --exec "yarn rw-api-server-watch',
146
+ ` --exec "yarn ${serverWatchCommand}`,
141
147
  ` --port ${apiAvailablePort}`,
142
148
  ` ${getApiDebugFlag()}`,
143
149
  ' | rw-log-formatter"'
@@ -10,8 +10,8 @@ const aliases = ["exp"];
10
10
  const description = "Run or setup experimental features";
11
11
  const builder = (yargs) => yargs.command(experimentalInngest).command(experimentalOpenTelemetry).command(experimentalReactCompiler).command(experimentalRsc).command(experimentalStreamingSsr).demandCommand().middleware(detectRxVersion).epilogue(
12
12
  `Also see the ${terminalLink(
13
- "Redwood CLI Reference",
14
- "https://redwoodjs.com/docs/cli-commands#experimental"
13
+ "CedarJS CLI Reference",
14
+ "https://cedarjs.com/docs/cli-commands#experimental"
15
15
  )}`
16
16
  );
17
17
  export {
@@ -53,8 +53,8 @@ const builder = (yargs) => {
53
53
  default: true
54
54
  }).epilogue(
55
55
  `Also see the ${terminalLink(
56
- "Redwood CLI Reference",
57
- "https://redwoodjs.com/docs/cli-commands#generate-datamigration"
56
+ "CedarJS CLI Reference",
57
+ "https://cedarjs.com/docs/cli-commands#generate-datamigration"
58
58
  )}`
59
59
  );
60
60
  Object.entries(getYargsDefaults()).forEach(([option, config]) => {
@@ -38,8 +38,8 @@ const builder = (yargs) => {
38
38
  default: true
39
39
  }).epilogue(
40
40
  `Also see the ${terminalLink(
41
- "Redwood CLI Reference",
42
- "https://redwoodjs.com/docs/authentication#self-hosted-auth-installation-and-setup"
41
+ "CedarJS dbAuth Reference",
42
+ "https://redwoodjs.com/docs/auth/dbauth"
43
43
  )}`
44
44
  );
45
45
  Object.entries(getYargsDefaults()).forEach(([option, config]) => {
@@ -12,8 +12,8 @@ const builder = (yargs) => {
12
12
  default: true
13
13
  }).epilogue(
14
14
  `Also see the ${terminalLink(
15
- "Redwood CLI Reference",
16
- "https://redwoodjs.com/docs/cli-commands#generate-function"
15
+ "CedarJS CLI Reference",
16
+ "https://cedarjs.com/docs/cli-commands#generate-function"
17
17
  )}`
18
18
  );
19
19
  Object.entries(getYargsDefaults()).forEach(([option, config]) => {
@@ -22,8 +22,8 @@ const builder = (yargs) => {
22
22
  default: true
23
23
  }).epilogue(
24
24
  `Also see the ${terminalLink(
25
- "Redwood CLI Reference",
26
- "https://redwoodjs.com/docs/cli-commands#generate-job"
25
+ "CedarJS CLI Reference",
26
+ "https://cedarjs.com/docs/cli-commands#generate-job"
27
27
  )}`
28
28
  );
29
29
  Object.entries(getYargsDefaults()).forEach(([option, config]) => {
@@ -10,8 +10,8 @@ const builder = (yargs) => {
10
10
  type: "string"
11
11
  }).epilogue(
12
12
  `Also see the ${terminalLink(
13
- "Redwood CLI Reference",
14
- `https://redwoodjs.com/docs/cli-commands#generate-og-image`
13
+ "CedarJS CLI Reference",
14
+ `https://cedarjs.com/docs/cli-commands#generate-og-image`
15
15
  )}`
16
16
  ).option("typescript", {
17
17
  alias: "ts",
@@ -21,8 +21,8 @@ const builder = (yargs) => {
21
21
  default: true
22
22
  }).epilogue(
23
23
  `Also see the ${terminalLink(
24
- "Redwood CLI Reference",
25
- "https://redwoodjs.com/docs/cli-commands#generate-scaffold"
24
+ "CedarJS CLI Reference",
25
+ "https://cedarjs.com/docs/cli-commands#generate-scaffold"
26
26
  )}`
27
27
  );
28
28
  Object.entries(getYargsDefaults()).forEach(([option, config]) => {
@@ -85,7 +85,9 @@ const getTemplateStrings = (name, scaffoldPath, nestScaffoldByModel = true) => {
85
85
  };
86
86
  const shouldUseTailwindCSS = (flag) => {
87
87
  if (flag === void 0) {
88
- return fs.existsSync(path.join(getPaths().web.config, "tailwind.config.js"));
88
+ return fs.existsSync(
89
+ path.join(getPaths().web.config, "tailwind.config.cjs")
90
+ );
89
91
  } else {
90
92
  return flag;
91
93
  }
@@ -12,8 +12,8 @@ const builder = (yargs) => {
12
12
  default: true
13
13
  }).epilogue(
14
14
  `Also see the ${terminalLink(
15
- "Redwood CLI Reference",
16
- "https://redwoodjs.com/docs/cli-commands#generate-script"
15
+ "CedarJS CLI Reference",
16
+ "https://cedarjs.com/docs/cli-commands#generate-script"
17
17
  )}`
18
18
  );
19
19
  Object.entries(getYargsDefaults()).forEach(([option, config]) => {
@@ -30,8 +30,8 @@ const builder = (yargs) => {
30
30
  default: true
31
31
  }).epilogue(
32
32
  `Also see the ${terminalLink(
33
- "Redwood CLI Reference",
34
- "https://redwoodjs.com/docs/cli-commands#generate-sdl"
33
+ "CedarJS CLI Reference",
34
+ "https://cedarjs.com/docs/cli-commands#generate-sdl"
35
35
  )}`
36
36
  );
37
37
  Object.entries(getDefaults()).forEach(([option, config]) => {
@@ -19,8 +19,8 @@ const builder = (yargs) => yargs.option("length", {
19
19
  default: false
20
20
  }).epilogue(
21
21
  `Also see the ${terminalLink(
22
- "Redwood CLI Reference",
23
- "https://redwoodjs.com/docs/cli-commands#generate-secret"
22
+ "CedarJS CLI Reference",
23
+ "https://cedarjs.com/docs/cli-commands#generate-secret"
24
24
  )}`
25
25
  );
26
26
  const handler = ({ length, raw }) => {
@@ -32,8 +32,8 @@ const builder = (yargs) => {
32
32
  default: true
33
33
  }).epilogue(
34
34
  `Also see the ${terminalLink(
35
- "Redwood CLI Reference",
36
- "https://redwoodjs.com/docs/cli-commands#generate-service"
35
+ "CedarJS CLI Reference",
36
+ "https://cedarjs.com/docs/cli-commands#generate-service"
37
37
  )}`
38
38
  );
39
39
  Object.entries(defaults()).forEach(([option, config]) => {
@@ -35,8 +35,8 @@ function createBuilder({ componentName, optionsObj, positionalsObj }) {
35
35
  type: "string"
36
36
  }).epilogue(
37
37
  `Also see the ${terminalLink(
38
- "Redwood CLI Reference",
39
- `https://redwoodjs.com/docs/cli-commands#generate-${componentName}`
38
+ "CedarJS CLI Reference",
39
+ `https://cedarjs.com/docs/cli-commands#generate-${componentName}`
40
40
  )}`
41
41
  ).option("tests", {
42
42
  description: "Generate test files",
@@ -32,8 +32,8 @@ const builder = (yargs) => yargs.command("types", "Generate supplementary code",
32
32
  }
33
33
  }).command(generateCell).command(generateComponent).command(generateDataMigration).command(generateDbAuth).command(generateDirective).command(generateFunction).command(generateJob).command(generateLayout).command(generateModel).command(generateOgImage).command(generatePage).command(generateRealtime).command(generateScaffold).command(generateScript).command(generateSdl).command(generateSecret).command(generateService).demandCommand().epilogue(
34
34
  `Also see the ${terminalLink(
35
- "Redwood CLI Reference",
36
- "https://redwoodjs.com/docs/cli-commands#generate-alias-g"
35
+ "CedarJS CLI Reference",
36
+ "https://cedarjs.com/docs/cli-commands#generate-alias-g"
37
37
  )}`
38
38
  );
39
39
  export {
@@ -8,8 +8,8 @@ const description = "Print your system environment information";
8
8
  const builder = (yargs) => {
9
9
  yargs.epilogue(
10
10
  `Also see the ${terminalLink(
11
- "Redwood CLI Reference",
12
- "https://redwoodjs.com/docs/cli-commands#info"
11
+ "CedarJS CLI Reference",
12
+ "https://cedarjs.com/docs/cli-commands#info"
13
13
  )}`
14
14
  );
15
15
  };
@@ -15,8 +15,8 @@ const builder = (yargs) => {
15
15
  type: "boolean"
16
16
  }).epilogue(
17
17
  `Also see the ${terminalLink(
18
- "Redwood CLI Reference",
19
- "https://redwoodjs.com/docs/cli-commands#lint"
18
+ "CedarJS CLI Reference",
19
+ "https://cedarjs.com/docs/cli-commands#lint"
20
20
  )}`
21
21
  );
22
22
  };
@@ -75,7 +75,7 @@ const printWrapInfo = () => {
75
75
  "Use `yarn prisma` to skip Redwood CLI automatic options.",
76
76
  "",
77
77
  "Find more information in our docs:",
78
- c.underline("https://redwoodjs.com/docs/cli-commands#prisma")
78
+ c.underline("https://cedarjs.com/docs/cli-commands#prisma")
79
79
  ];
80
80
  console.log(
81
81
  boxen(message.join("\n"), {
@@ -1,8 +1,8 @@
1
1
  import path from "path";
2
2
  import fs from "fs-extra";
3
3
  import { terminalLink } from "termi-link";
4
- import * as apiServerCLIConfig from "@cedarjs/api-server/dist/apiCLIConfig.js";
5
- import * as bothServerCLIConfig from "@cedarjs/api-server/dist/bothCLIConfig.js";
4
+ import * as apiServerCLIConfig from "@cedarjs/api-server/apiCliConfig";
5
+ import * as bothServerCLIConfig from "@cedarjs/api-server/bothCliConfig";
6
6
  import { recordTelemetryAttributes } from "@cedarjs/cli-helpers";
7
7
  import * as webServerCLIConfig from "@cedarjs/web-server";
8
8
  import c from "../lib/colors.js";
@@ -127,8 +127,8 @@ const builder = async (yargs) => {
127
127
  }
128
128
  }).epilogue(
129
129
  `Also see the ${terminalLink(
130
- "Redwood CLI Reference",
131
- "https://redwoodjs.com/docs/cli-commands#serve"
130
+ "CedarJS CLI Reference",
131
+ "https://cedarjs.com/docs/cli-commands#serve"
132
132
  )}`
133
133
  );
134
134
  };
@@ -1,13 +1,13 @@
1
1
  import path from "path";
2
2
  import concurrently from "concurrently";
3
3
  import execa from "execa";
4
- import { handler as apiServerHandler } from "@cedarjs/api-server/dist/apiCLIConfigHandler.js";
4
+ import { handler as apiServerHandler } from "@cedarjs/api-server/cjs/apiCliConfigHandler";
5
5
  import {
6
6
  getAPIHost,
7
7
  getAPIPort,
8
8
  getWebHost,
9
9
  getWebPort
10
- } from "@cedarjs/api-server/dist/cliHelpers.js";
10
+ } from "@cedarjs/api-server/cjs/cliHelpers";
11
11
  import { getConfig, getPaths } from "@cedarjs/project-config";
12
12
  import { errorTelemetry } from "@cedarjs/telemetry";
13
13
  import { exitWithError } from "../lib/exit.js";
@@ -12,8 +12,8 @@ const description = "Set up an auth configuration";
12
12
  async function builder(yargs) {
13
13
  yargs.demandCommand().epilogue(
14
14
  `Also see the ${terminalLink(
15
- "Redwood CLI Reference",
16
- "https://redwoodjs.com/docs/cli-commands#setup-auth"
15
+ "CedarJS CLI Reference",
16
+ "https://cedarjs.com/docs/cli-commands#setup-auth"
17
17
  )}`
18
18
  ).command(...directToCustomAuthCommand("ethereum")).command(...directToCustomAuthCommand("goTrue")).command(...directToCustomAuthCommand("magicLink")).command(...directToCustomAuthCommand("nhost")).command(...directToCustomAuthCommand("okta")).command(
19
19
  "auth0",
@@ -15,8 +15,8 @@ const builder = (yargs) => {
15
15
  type: "boolean"
16
16
  }).epilogue(
17
17
  `Also see the ${terminalLink(
18
- "Redwood CLI Reference",
19
- "https://redwoodjs.com/docs/cli-commands#setup-cache"
18
+ "CedarJS CLI Reference",
19
+ "https://cedarjs.com/docs/cli-commands#setup-cache"
20
20
  )}`
21
21
  );
22
22
  };
@@ -15,8 +15,8 @@ const builder = (yargs) => yargs.command(setupDeployBaremetal).command(setupDepl
15
15
  type: "boolean"
16
16
  }).epilogue(
17
17
  `Also see the ${terminalLink(
18
- "Redwood CLI Reference",
19
- "https://redwoodjs.com/docs/cli-commands#setup-deploy-config"
18
+ "CedarJS CLI Reference",
19
+ "https://cedarjs.com/docs/cli-commands#setup-deploy-config"
20
20
  )}`
21
21
  );
22
22
  export {
@@ -28,7 +28,7 @@ RUN --mount=type=cache,target=/home/node/.yarn/berry/cache,uid=1000 \
28
28
  CI=1 yarn install
29
29
 
30
30
  COPY --chown=node:node redwood.toml .
31
- COPY --chown=node:node graphql.config.js .
31
+ COPY --chown=node:node graphql.config.cjs .
32
32
  COPY --chown=node:node .env.defaults .env.defaults
33
33
 
34
34
  # api build
@@ -83,7 +83,7 @@ RUN --mount=type=cache,target=/home/node/.yarn/berry/cache,uid=1000 \
83
83
  CI=1 yarn workspaces focus api --production
84
84
 
85
85
  COPY --chown=node:node redwood.toml .
86
- COPY --chown=node:node graphql.config.js .
86
+ COPY --chown=node:node graphql.config.cjs .
87
87
  COPY --chown=node:node .env.defaults .env.defaults
88
88
 
89
89
  COPY --chown=node:node --from=api_build /home/node/app/api/dist /home/node/app/api/dist
@@ -99,7 +99,7 @@ ENV NODE_ENV=production
99
99
  # This is important if you intend to configure GraphQL to use Realtime.
100
100
  #
101
101
  # CMD [ "./api/dist/server.js" ]
102
- CMD [ "node_modules/.bin/rw-server", "api" ]
102
+ CMD [ "node_modules/.bin/cedarjs-server", "api" ]
103
103
 
104
104
  # web serve
105
105
  # ---------
@@ -123,7 +123,7 @@ RUN --mount=type=cache,target=/home/node/.yarn/berry/cache,uid=1000 \
123
123
  CI=1 yarn workspaces focus web --production
124
124
 
125
125
  COPY --chown=node:node redwood.toml .
126
- COPY --chown=node:node graphql.config.js .
126
+ COPY --chown=node:node graphql.config.cjs .
127
127
  COPY --chown=node:node .env.defaults .env.defaults
128
128
 
129
129
  COPY --chown=node:node --from=web_build /home/node/app/web/dist /home/node/app/web/dist
@@ -27,8 +27,8 @@ const builder = (yargs) => {
27
27
  type: "boolean"
28
28
  }).epilogue(
29
29
  `Also see the ${terminalLink(
30
- "Redwood CLI Reference",
31
- "https://redwoodjs.com/docs/cli-commands#setup-generator"
30
+ "CedarJS CLI Reference",
31
+ "https://cedarjs.com/docs/cli-commands#setup-generator"
32
32
  )}`
33
33
  );
34
34
  };
@@ -6,8 +6,8 @@ const description = "Set up GraphQL feature support";
6
6
  function builder(yargs) {
7
7
  return yargs.command(fragmentsCommand).command(trustedDocumentsCommand).epilogue(
8
8
  `Also see the ${terminalLink(
9
- "Redwood CLI Reference",
10
- "https://redwoodjs.com/docs/cli-commands#setup-graphql"
9
+ "CedarJS CLI Reference",
10
+ "https://cedarjs.com/docs/cli-commands#setup-graphql"
11
11
  )}`
12
12
  );
13
13
  }
@@ -10,8 +10,8 @@ const builder = (yargs) => {
10
10
  type: "boolean"
11
11
  }).epilogue(
12
12
  `Also see the ${terminalLink(
13
- "Redwood CLI Reference",
14
- "https://redwoodjs.com/docs/cli-commands#setup-jobs"
13
+ "CedarJS CLI Reference",
14
+ "https://cedarjs.com/docs/cli-commands#setup-jobs"
15
15
  )}`
16
16
  );
17
17
  };
@@ -5,8 +5,8 @@ const description = "Set up a middleware";
5
5
  function builder(yargs) {
6
6
  return yargs.command(ogImageCommand).epilogue(
7
7
  `Also see the ${terminalLink(
8
- "Redwood CLI Reference",
9
- "https://redwoodjs.com/docs/cli-commands"
8
+ "CedarJS CLI Reference",
9
+ "https://cedarjs.com/docs/cli-commands"
10
10
  )}`
11
11
  );
12
12
  }
@@ -5,8 +5,8 @@ const description = "Set up monitoring in your Redwood app";
5
5
  function builder(yargs) {
6
6
  return yargs.command(sentryCommand).epilogue(
7
7
  `Also see the ${terminalLink(
8
- "Redwood CLI Reference",
9
- "https://redwoodjs.com/docs/cli-commands#setup-graphql"
8
+ "CedarJS CLI Reference",
9
+ "https://cedarjs.com/docs/cli-commands#setup-graphql"
10
10
  )}`
11
11
  );
12
12
  }
@@ -128,7 +128,7 @@ const handler = async ({ force }) => {
128
128
  notes.push(
129
129
  `${colors.underline(
130
130
  "Make sure you implement the Sentry Envelop plugin:"
131
- )} https://redwoodjs.com/docs/cli-commands#sentry-envelop-plugin`
131
+ )} https://cedarjs.com/docs/cli-commands#sentry-envelop-plugin`
132
132
  );
133
133
  } else {
134
134
  notes.push(
@@ -13,8 +13,8 @@ const builder = (yargs) => {
13
13
  alias: "f"
14
14
  }).epilogue(
15
15
  `Also see the ${terminalLink(
16
- "Redwood CLI Reference",
17
- "https://redwoodjs.com/docs/cli-commands#lint"
16
+ "CedarJS CLI Reference",
17
+ "https://cedarjs.com/docs/cli-commands#lint"
18
18
  )}`
19
19
  );
20
20
  };
@@ -95,7 +95,7 @@ async function handler({ force, install, packages }) {
95
95
  const postCSSConfig = fse.readFileSync(
96
96
  path.join(
97
97
  import.meta.dirname,
98
- "../templates/mantine-postcss.config.js.template"
98
+ "../templates/mantine-postcss.config.cjs.template"
99
99
  ),
100
100
  "utf-8"
101
101
  );
@@ -156,7 +156,7 @@ const handler = async ({ force, install }) => {
156
156
  const postCSSConfig = fs.readFileSync(
157
157
  path.join(
158
158
  import.meta.dirname,
159
- "../templates/postcss.config.js.template"
159
+ "../templates/postcss.config.cjs.template"
160
160
  ),
161
161
  "utf-8"
162
162
  );
@@ -170,7 +170,7 @@ const handler = async ({ force, install }) => {
170
170
  task: async () => {
171
171
  const tailwindConfigPath = path.join(
172
172
  rwPaths.web.config,
173
- "tailwind.config.js"
173
+ "tailwind.config.cjs"
174
174
  );
175
175
  if (fs.existsSync(tailwindConfigPath)) {
176
176
  if (force) {
@@ -312,12 +312,12 @@ const handler = async ({ force, install }) => {
312
312
  task: async (_ctx) => {
313
313
  const prettierConfigPath = path.join(
314
314
  rwPaths.base,
315
- "prettier.config.js"
315
+ "prettier.config.cjs"
316
316
  );
317
317
  const prettierConfig = fs.readFileSync(prettierConfigPath, "utf-8");
318
318
  const tailwindConfigPath = path.relative(
319
319
  rwPaths.base,
320
- path.posix.join(rwPaths.web.config, "tailwind.config.js")
320
+ path.posix.join(rwPaths.web.config, "tailwind.config.cjs")
321
321
  ).replaceAll("\\", "/");
322
322
  let newPrettierConfig = prettierConfig;
323
323
  if (newPrettierConfig.includes("tailwindConfig: ")) {
@@ -346,7 +346,7 @@ const handler = async ({ force, install }) => {
346
346
  task: async (_ctx, task) => {
347
347
  const prettierConfigPath = path.join(
348
348
  rwPaths.base,
349
- "prettier.config.js"
349
+ "prettier.config.cjs"
350
350
  );
351
351
  const prettierConfig = fs.readFileSync(prettierConfigPath, "utf-8");
352
352
  let newPrettierConfig = prettierConfig;
@@ -3,7 +3,7 @@ const path = require('path')
3
3
  module.exports = {
4
4
  plugins: [
5
5
  require('tailwindcss/nesting'),
6
- require('tailwindcss')(path.resolve(__dirname, 'tailwind.config.js')),
6
+ require('tailwindcss')(path.resolve(__dirname, 'tailwind.config.cjs')),
7
7
  require('autoprefixer'),
8
8
  ],
9
9
  }
@@ -6,8 +6,8 @@ const command = "ui <library>";
6
6
  const description = "Set up a UI design or style library";
7
7
  const builder = (yargs) => yargs.command(libraryChakraUi).command(libraryMantine).command(libraryTailwindCss).demandCommand().epilogue(
8
8
  `Also see the ${terminalLink(
9
- "Redwood CLI Reference",
10
- "https://redwoodjs.com/docs/cli-commands#setup-ui"
9
+ "CedarJS CLI Reference",
10
+ "https://cedarjs.com/docs/cli-commands#setup-ui"
11
11
  )}`
12
12
  );
13
13
  export {
@@ -22,8 +22,8 @@ const command = "setup <command>";
22
22
  const description = "Initialize project config and install packages";
23
23
  const builder = (yargs) => yargs.command(setupAuth).command(setupCache).command(setupDeploy).command(setupDocker).command(setupGenerator).command(setupGraphql).command(setupI18n).command(setupJobs).command(setupMailer).command(setupMiddleware).command(setupMonitoring).command(setupPackage).command(setupRealtime).command(setupServerFile).command(setupTsconfig).command(setupUi).command(setupUploads).command(setupVite).demandCommand().middleware(detectRxVersion).epilogue(
24
24
  `Also see the ${terminalLink(
25
- "Redwood CLI Reference",
26
- "https://redwoodjs.com/docs/cli-commands#setup"
25
+ "CedarJS CLI Reference",
26
+ "https://cedarjs.com/docs/cli-commands#setup"
27
27
  )}`
28
28
  );
29
29
  export {
@@ -26,8 +26,8 @@ const builder = (yargs) => {
26
26
  )}
27
27
 
28
28
  Also see the ${terminalLink(
29
- "Redwood CLI Reference",
30
- "https://redwoodjs.com/docs/cli-commands#test"
29
+ "CedarJS CLI Reference",
30
+ "https://cedarjs.com/docs/cli-commands#test"
31
31
  )}
32
32
  `
33
33
  );
@@ -23,8 +23,8 @@ const builder = (yargs) => {
23
23
  type: "boolean"
24
24
  }).epilogue(
25
25
  `Also see the ${terminalLink(
26
- "Redwood CLI Reference",
27
- "https://redwoodjs.com/docs/cli-commands#type-check"
26
+ "CedarJS CLI Reference",
27
+ "https://cedarjs.com/docs/cli-commands#type-check"
28
28
  )}`
29
29
  );
30
30
  };
package/dist/lib/index.js CHANGED
@@ -158,7 +158,7 @@ const getConfig = () => {
158
158
  };
159
159
  const getPrettierOptions = async () => {
160
160
  try {
161
- const { default: prettierOptions } = await import(`file://${path.join(getPaths().base, "prettier.config.js")}`);
161
+ const { default: prettierOptions } = await import(`file://${path.join(getPaths().base, "prettier.config.cjs")}`);
162
162
  return prettierOptions;
163
163
  } catch (e) {
164
164
  if (process.env.VITEST_POOL_ID !== void 0) {
package/dist/lib/test.js CHANGED
@@ -73,7 +73,7 @@ vi.mock("./project", () => ({
73
73
  }));
74
74
  globalThis.__prettierPath = path.resolve(
75
75
  import.meta.dirname,
76
- "./__tests__/fixtures/prettier.config.js"
76
+ "./__tests__/fixtures/prettier.config.cjs"
77
77
  );
78
78
  vi.spyOn(Math, "random").mockReturnValue(0.123456789);
79
79
  const generatorsRootPath = path.join(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cedarjs/cli",
3
- "version": "0.6.0",
3
+ "version": "0.6.1-next.51+7c9a976df",
4
4
  "description": "The Redwood Command Line",
5
5
  "repository": {
6
6
  "type": "git",
@@ -30,16 +30,17 @@
30
30
  "test:watch": "vitest watch"
31
31
  },
32
32
  "dependencies": {
33
+ "@babel/preset-typescript": "7.27.1",
33
34
  "@babel/runtime-corejs3": "7.27.6",
34
- "@cedarjs/api-server": "0.6.0",
35
- "@cedarjs/cli-helpers": "0.6.0",
36
- "@cedarjs/fastify-web": "0.6.0",
37
- "@cedarjs/internal": "0.6.0",
38
- "@cedarjs/prerender": "0.6.0",
39
- "@cedarjs/project-config": "0.6.0",
40
- "@cedarjs/structure": "0.6.0",
41
- "@cedarjs/telemetry": "0.6.0",
42
- "@cedarjs/web-server": "0.6.0",
35
+ "@cedarjs/api-server": "0.6.1-next.51+7c9a976df",
36
+ "@cedarjs/cli-helpers": "0.6.1-next.51+7c9a976df",
37
+ "@cedarjs/fastify-web": "0.6.1-next.51+7c9a976df",
38
+ "@cedarjs/internal": "0.6.1-next.51+7c9a976df",
39
+ "@cedarjs/prerender": "0.6.1-next.51+7c9a976df",
40
+ "@cedarjs/project-config": "0.6.1-next.51+7c9a976df",
41
+ "@cedarjs/structure": "0.6.1-next.51+7c9a976df",
42
+ "@cedarjs/telemetry": "0.6.1-next.51+7c9a976df",
43
+ "@cedarjs/web-server": "0.6.1-next.51+7c9a976df",
43
44
  "@listr2/prompt-adapter-enquirer": "2.0.16",
44
45
  "@opentelemetry/api": "1.8.0",
45
46
  "@opentelemetry/core": "1.22.0",
@@ -101,5 +102,5 @@
101
102
  "publishConfig": {
102
103
  "access": "public"
103
104
  },
104
- "gitHead": "dbb79eb24110276fc52803bb3874acd62b76f7c8"
105
+ "gitHead": "7c9a976df61eea55cbabae015395da84f807222f"
105
106
  }