create-fullstack-scaffold 0.4.24 → 0.4.25
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/cli/index.js +7 -0
- package/dist/cli/index.js.map +1 -1
- package/package.json +1 -1
- package/template/drizzle/0000_rainy_boomer.sql +0 -101
- package/template/drizzle/0001_add_todo_attachments.sql +0 -12
- package/template/drizzle/0002_chilly_magneto.sql +0 -89
- package/template/drizzle/0003_ambiguous_magdalene.sql +0 -100
- package/template/drizzle/0004_add_merchants_products.sql +0 -30
- package/template/drizzle/meta/0000_snapshot.json +0 -652
- package/template/drizzle/meta/0001_snapshot.json +0 -735
- package/template/drizzle/meta/0002_snapshot.json +0 -1198
- package/template/drizzle/meta/0003_snapshot.json +0 -1837
- package/template/drizzle/meta/_journal.json +0 -41
- package/template/pnpm-lock.yaml +0 -7137
package/dist/cli/index.js
CHANGED
|
@@ -2855,6 +2855,7 @@ function generateViteConfig(resolved, templateDir) {
|
|
|
2855
2855
|
entriesToRemove.push("merchant");
|
|
2856
2856
|
aliasesToRemove.push("@merchant");
|
|
2857
2857
|
}
|
|
2858
|
+
const hasAntdConsumer = resolved.modules.has("admin") || resolved.modules.has("tenant") || resolved.modules.has("merchant");
|
|
2858
2859
|
for (const name of entriesToRemove) {
|
|
2859
2860
|
const re = new RegExp(
|
|
2860
2861
|
`^\\s*${name}:\\s*path\\.resolve\\(__dirname,\\s*['"]${name}\\.html['"]\\),\\s*$\\n?`,
|
|
@@ -2871,6 +2872,12 @@ function generateViteConfig(resolved, templateDir) {
|
|
|
2871
2872
|
);
|
|
2872
2873
|
content = content.replace(re, "");
|
|
2873
2874
|
}
|
|
2875
|
+
if (!hasAntdConsumer) {
|
|
2876
|
+
const antdChunkRe = /^(\s*'vendor-antd':\s*\['antd',\s*'@ant-design\/icons'\],\s*\n)/gm;
|
|
2877
|
+
content = content.replace(antdChunkRe, "");
|
|
2878
|
+
const onwarnRe = /^\s*\/\/ Suppress antd "use client" directive warnings[^\n]*\n\s*if \(warning\.code === 'MODULE_LEVEL_DIRECTIVE'\) return\n/gm;
|
|
2879
|
+
content = content.replace(onwarnRe, "");
|
|
2880
|
+
}
|
|
2874
2881
|
return content;
|
|
2875
2882
|
}
|
|
2876
2883
|
|