@cedarjs/cli 1.0.0-canary.12522 → 1.0.0-canary.12524

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
  }
@@ -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) {
@@ -317,7 +317,7 @@ const handler = async ({ force, install }) => {
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: ")) {
@@ -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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cedarjs/cli",
3
- "version": "1.0.0-canary.12522+eb879d5b6",
3
+ "version": "1.0.0-canary.12524+26bb1706e",
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.12522",
35
- "@cedarjs/cli-helpers": "1.0.0-canary.12522",
36
- "@cedarjs/fastify-web": "1.0.0-canary.12522",
37
- "@cedarjs/internal": "1.0.0-canary.12522",
38
- "@cedarjs/prerender": "1.0.0-canary.12522",
39
- "@cedarjs/project-config": "1.0.0-canary.12522",
40
- "@cedarjs/structure": "1.0.0-canary.12522",
41
- "@cedarjs/telemetry": "1.0.0-canary.12522",
42
- "@cedarjs/web-server": "1.0.0-canary.12522",
34
+ "@cedarjs/api-server": "1.0.0-canary.12524",
35
+ "@cedarjs/cli-helpers": "1.0.0-canary.12524",
36
+ "@cedarjs/fastify-web": "1.0.0-canary.12524",
37
+ "@cedarjs/internal": "1.0.0-canary.12524",
38
+ "@cedarjs/prerender": "1.0.0-canary.12524",
39
+ "@cedarjs/project-config": "1.0.0-canary.12524",
40
+ "@cedarjs/structure": "1.0.0-canary.12524",
41
+ "@cedarjs/telemetry": "1.0.0-canary.12524",
42
+ "@cedarjs/web-server": "1.0.0-canary.12524",
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": "eb879d5b6c5ca9091c7832795088dfc48bd7cf19"
101
+ "gitHead": "26bb1706ee6fee05b3832e4e9126055f0f29f3fc"
102
102
  }