create-avalon 0.1.5 → 0.1.7
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.js +5 -8
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -1203,7 +1203,8 @@ function generatePackageJson(config) {
|
|
|
1203
1203
|
const devDependencies = {
|
|
1204
1204
|
vite: "latest",
|
|
1205
1205
|
typescript: "latest",
|
|
1206
|
-
nitro: "latest"
|
|
1206
|
+
nitro: "latest",
|
|
1207
|
+
"vite-imagetools": "latest"
|
|
1207
1208
|
};
|
|
1208
1209
|
switch (config.styling) {
|
|
1209
1210
|
case "tailwind":
|
|
@@ -1241,19 +1242,14 @@ function generateTsConfig() {
|
|
|
1241
1242
|
strict: true,
|
|
1242
1243
|
esModuleInterop: true,
|
|
1243
1244
|
skipLibCheck: true,
|
|
1245
|
+
allowArbitraryExtensions: true,
|
|
1244
1246
|
jsx: "react-jsx",
|
|
1245
1247
|
paths: {
|
|
1246
1248
|
"@shared/*": ["./app/shared/*"],
|
|
1247
1249
|
"@modules/*": ["./app/modules/*"]
|
|
1248
1250
|
}
|
|
1249
1251
|
},
|
|
1250
|
-
include: [
|
|
1251
|
-
"app/**/*.ts",
|
|
1252
|
-
"app/**/*.tsx",
|
|
1253
|
-
"server/**/*.ts",
|
|
1254
|
-
"routes/**/*.ts",
|
|
1255
|
-
"middleware/**/*.ts"
|
|
1256
|
-
]
|
|
1252
|
+
include: ["app/**/*.ts", "app/**/*.tsx", "server/**/*.ts", "routes/**/*.ts", "middleware/**/*.ts"]
|
|
1257
1253
|
};
|
|
1258
1254
|
return JSON.stringify(tsconfig, null, 2);
|
|
1259
1255
|
}
|
|
@@ -1301,6 +1297,7 @@ function generateViteConfig(config) {
|
|
|
1301
1297
|
` integrations: [${integrationsList}],`,
|
|
1302
1298
|
` modules: 'app/modules',`,
|
|
1303
1299
|
` layoutsDir: 'app/shared/layouts',`,
|
|
1300
|
+
` image: true,`,
|
|
1304
1301
|
` nitro: {`,
|
|
1305
1302
|
` preset: 'node_server',`,
|
|
1306
1303
|
` streaming: true,`,
|