bunkit-cli 0.5.1 → 0.5.2
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/index.js +44 -20
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -24433,12 +24433,12 @@ async function setupBiome(projectPath, context) {
|
|
|
24433
24433
|
function getCodeQualityDependencies(codeQuality) {
|
|
24434
24434
|
if (codeQuality === "ultracite") {
|
|
24435
24435
|
return {
|
|
24436
|
-
ultracite: "
|
|
24437
|
-
"@biomejs/biome": "
|
|
24436
|
+
ultracite: "^6.0.1",
|
|
24437
|
+
"@biomejs/biome": "^2.3.0"
|
|
24438
24438
|
};
|
|
24439
24439
|
}
|
|
24440
24440
|
return {
|
|
24441
|
-
"@biomejs/biome": "
|
|
24441
|
+
"@biomejs/biome": "^2.3.0"
|
|
24442
24442
|
};
|
|
24443
24443
|
}
|
|
24444
24444
|
|
|
@@ -25028,21 +25028,21 @@ function getDatabaseDependencies(databaseType) {
|
|
|
25028
25028
|
switch (databaseType) {
|
|
25029
25029
|
case "postgres-drizzle":
|
|
25030
25030
|
return {
|
|
25031
|
-
"drizzle-orm": "
|
|
25032
|
-
"drizzle-kit": "
|
|
25033
|
-
postgres: "
|
|
25031
|
+
"drizzle-orm": "^0.38.0",
|
|
25032
|
+
"drizzle-kit": "^0.30.1",
|
|
25033
|
+
postgres: "^3.4.5"
|
|
25034
25034
|
};
|
|
25035
25035
|
case "supabase":
|
|
25036
25036
|
return {
|
|
25037
|
-
"@supabase/supabase-js": "
|
|
25038
|
-
"drizzle-orm": "
|
|
25039
|
-
"drizzle-kit": "
|
|
25040
|
-
postgres: "
|
|
25037
|
+
"@supabase/supabase-js": "^2.48.1",
|
|
25038
|
+
"drizzle-orm": "^0.38.0",
|
|
25039
|
+
"drizzle-kit": "^0.30.1",
|
|
25040
|
+
postgres: "^3.4.5"
|
|
25041
25041
|
};
|
|
25042
25042
|
case "sqlite-drizzle":
|
|
25043
25043
|
return {
|
|
25044
|
-
"drizzle-orm": "
|
|
25045
|
-
"drizzle-kit": "
|
|
25044
|
+
"drizzle-orm": "^0.38.0",
|
|
25045
|
+
"drizzle-kit": "^0.30.1"
|
|
25046
25046
|
};
|
|
25047
25047
|
default:
|
|
25048
25048
|
return {};
|
|
@@ -25268,12 +25268,27 @@ async function buildFullPreset(projectPath, context) {
|
|
|
25268
25268
|
"react-dom": "^19.1.0",
|
|
25269
25269
|
next: "^16.0.0",
|
|
25270
25270
|
hono: "^4.7.12",
|
|
25271
|
+
"drizzle-orm": "^0.38.0",
|
|
25272
|
+
"drizzle-kit": "^0.30.1",
|
|
25273
|
+
postgres: "^3.4.5",
|
|
25274
|
+
"@supabase/supabase-js": "^2.48.1",
|
|
25275
|
+
tailwindcss: "^4.1.7",
|
|
25276
|
+
autoprefixer: "^10.4.20",
|
|
25277
|
+
postcss: "^8.5.1",
|
|
25278
|
+
"@tailwindcss/postcss": "^4.1.7",
|
|
25279
|
+
"@radix-ui/react-slot": "^1.2.3",
|
|
25280
|
+
"class-variance-authority": "^0.7.1",
|
|
25281
|
+
clsx: "^2.1.1",
|
|
25282
|
+
"tailwind-merge": "^3.3.1",
|
|
25283
|
+
"iconoir-react": "^7.11.0",
|
|
25271
25284
|
"@biomejs/biome": "^2.3.0",
|
|
25272
|
-
|
|
25285
|
+
ultracite: "^6.0.1",
|
|
25286
|
+
vitest: "^2.0.0",
|
|
25287
|
+
"@vitest/ui": "^2.0.0",
|
|
25273
25288
|
"@types/react": "^19.1.0",
|
|
25274
25289
|
"@types/react-dom": "^19.1.0",
|
|
25275
25290
|
"@types/node": "^22.10.6",
|
|
25276
|
-
|
|
25291
|
+
typescript: "^5.9.3"
|
|
25277
25292
|
}
|
|
25278
25293
|
};
|
|
25279
25294
|
await writeFile(join(projectPath, "package.json"), JSON.stringify(rootPackageJson, null, 2));
|
|
@@ -25877,6 +25892,13 @@ ${context.database && context.database !== "none" && context.database !== "supab
|
|
|
25877
25892
|
}
|
|
25878
25893
|
}
|
|
25879
25894
|
// src/commands/init.enhanced.ts
|
|
25895
|
+
var VERSIONS = {
|
|
25896
|
+
vitest: "^2.0.0",
|
|
25897
|
+
"@vitest/ui": "^2.0.0",
|
|
25898
|
+
"class-variance-authority": "^0.7.1",
|
|
25899
|
+
clsx: "^2.1.1",
|
|
25900
|
+
"tailwind-merge": "^3.3.1"
|
|
25901
|
+
};
|
|
25880
25902
|
function getOptionValue(envVar, option, defaultValue) {
|
|
25881
25903
|
const envValue = process.env[envVar];
|
|
25882
25904
|
if (envValue !== undefined) {
|
|
@@ -26271,7 +26293,7 @@ async function enhancedInitCommand(options = {}) {
|
|
|
26271
26293
|
s.message("\u2699\uFE0F Adding GitHub Actions...");
|
|
26272
26294
|
}
|
|
26273
26295
|
s.stop("\u2705 Project created!");
|
|
26274
|
-
if (shouldInstall) {
|
|
26296
|
+
if (shouldInstall && preset !== "full") {
|
|
26275
26297
|
const additionalDeps = {};
|
|
26276
26298
|
if (database && database !== "none") {
|
|
26277
26299
|
Object.assign(additionalDeps, getDatabaseDependencies(database));
|
|
@@ -26280,19 +26302,21 @@ async function enhancedInitCommand(options = {}) {
|
|
|
26280
26302
|
Object.assign(additionalDeps, getCodeQualityDependencies(codeQuality));
|
|
26281
26303
|
}
|
|
26282
26304
|
if (testing === "vitest") {
|
|
26283
|
-
additionalDeps["vitest"] =
|
|
26284
|
-
additionalDeps["@vitest/ui"] = "
|
|
26305
|
+
additionalDeps["vitest"] = VERSIONS.vitest;
|
|
26306
|
+
additionalDeps["@vitest/ui"] = VERSIONS["@vitest/ui"];
|
|
26285
26307
|
}
|
|
26286
26308
|
if (uiLibrary === "shadcn") {
|
|
26287
|
-
additionalDeps["class-variance-authority"] = "
|
|
26288
|
-
additionalDeps["clsx"] =
|
|
26289
|
-
additionalDeps["tailwind-merge"] = "
|
|
26309
|
+
additionalDeps["class-variance-authority"] = VERSIONS["class-variance-authority"];
|
|
26310
|
+
additionalDeps["clsx"] = VERSIONS.clsx;
|
|
26311
|
+
additionalDeps["tailwind-merge"] = VERSIONS["tailwind-merge"];
|
|
26290
26312
|
}
|
|
26291
26313
|
if (Object.keys(additionalDeps).length > 0) {
|
|
26292
26314
|
await installDependencies(projectPath, additionalDeps);
|
|
26293
26315
|
} else {
|
|
26294
26316
|
await installDependencies(projectPath);
|
|
26295
26317
|
}
|
|
26318
|
+
} else if (shouldInstall && preset === "full") {
|
|
26319
|
+
await installDependencies(projectPath);
|
|
26296
26320
|
}
|
|
26297
26321
|
const getDevCommand = () => {
|
|
26298
26322
|
if (preset === "full" || preset === "web")
|