@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.
- package/dist/commands/generate/scaffold/scaffoldHandler.js +3 -1
- package/dist/commands/setup/ui/libraries/mantineHandler.js +1 -1
- package/dist/commands/setup/ui/libraries/tailwindcssHandler.js +3 -3
- package/dist/commands/setup/ui/templates/{postcss.config.js.template → postcss.config.cjs.template} +1 -1
- package/package.json +11 -11
- /package/dist/commands/setup/ui/templates/{mantine-postcss.config.js.template → mantine-postcss.config.cjs.template} +0 -0
|
@@ -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(
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
320
|
+
path.posix.join(rwPaths.web.config, "tailwind.config.cjs")
|
|
321
321
|
).replaceAll("\\", "/");
|
|
322
322
|
let newPrettierConfig = prettierConfig;
|
|
323
323
|
if (newPrettierConfig.includes("tailwindConfig: ")) {
|
package/dist/commands/setup/ui/templates/{postcss.config.js.template → postcss.config.cjs.template}
RENAMED
|
@@ -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.
|
|
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.
|
|
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.
|
|
35
|
-
"@cedarjs/cli-helpers": "1.0.0-canary.
|
|
36
|
-
"@cedarjs/fastify-web": "1.0.0-canary.
|
|
37
|
-
"@cedarjs/internal": "1.0.0-canary.
|
|
38
|
-
"@cedarjs/prerender": "1.0.0-canary.
|
|
39
|
-
"@cedarjs/project-config": "1.0.0-canary.
|
|
40
|
-
"@cedarjs/structure": "1.0.0-canary.
|
|
41
|
-
"@cedarjs/telemetry": "1.0.0-canary.
|
|
42
|
-
"@cedarjs/web-server": "1.0.0-canary.
|
|
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": "
|
|
101
|
+
"gitHead": "26bb1706ee6fee05b3832e4e9126055f0f29f3fc"
|
|
102
102
|
}
|
|
File without changes
|