@cedarjs/cli 1.0.0-canary.12523 → 1.0.0-canary.12525

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.
@@ -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
  }
@@ -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
@@ -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
@@ -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
  }
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": "1.0.0-canary.12523+0bd5c7d58",
3
+ "version": "1.0.0-canary.12525+91e73cdbb",
4
4
  "description": "The Redwood Command Line",
5
5
  "repository": {
6
6
  "type": "git",
@@ -31,15 +31,15 @@
31
31
  },
32
32
  "dependencies": {
33
33
  "@babel/runtime-corejs3": "7.27.6",
34
- "@cedarjs/api-server": "1.0.0-canary.12523",
35
- "@cedarjs/cli-helpers": "1.0.0-canary.12523",
36
- "@cedarjs/fastify-web": "1.0.0-canary.12523",
37
- "@cedarjs/internal": "1.0.0-canary.12523",
38
- "@cedarjs/prerender": "1.0.0-canary.12523",
39
- "@cedarjs/project-config": "1.0.0-canary.12523",
40
- "@cedarjs/structure": "1.0.0-canary.12523",
41
- "@cedarjs/telemetry": "1.0.0-canary.12523",
42
- "@cedarjs/web-server": "1.0.0-canary.12523",
34
+ "@cedarjs/api-server": "1.0.0-canary.12525",
35
+ "@cedarjs/cli-helpers": "1.0.0-canary.12525",
36
+ "@cedarjs/fastify-web": "1.0.0-canary.12525",
37
+ "@cedarjs/internal": "1.0.0-canary.12525",
38
+ "@cedarjs/prerender": "1.0.0-canary.12525",
39
+ "@cedarjs/project-config": "1.0.0-canary.12525",
40
+ "@cedarjs/structure": "1.0.0-canary.12525",
41
+ "@cedarjs/telemetry": "1.0.0-canary.12525",
42
+ "@cedarjs/web-server": "1.0.0-canary.12525",
43
43
  "@listr2/prompt-adapter-enquirer": "2.0.16",
44
44
  "@opentelemetry/api": "1.8.0",
45
45
  "@opentelemetry/core": "1.22.0",
@@ -98,5 +98,5 @@
98
98
  "typescript": "5.6.2",
99
99
  "vitest": "3.2.4"
100
100
  },
101
- "gitHead": "0bd5c7d58f93a2c9db6cbca8743d39768aaffc22"
101
+ "gitHead": "91e73cdbbcbef0b733b2c7f89a894e65f75ee73b"
102
102
  }