create-better-t-stack 2.16.3 → 2.16.4
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 +2 -18
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1920,7 +1920,7 @@ function generateScriptsList(packageManagerRunCmd, database, orm, _auth, hasNati
|
|
|
1920
1920
|
|
|
1921
1921
|
//#endregion
|
|
1922
1922
|
//#region src/helpers/project-generation/install-dependencies.ts
|
|
1923
|
-
async function installDependencies({ projectDir, packageManager
|
|
1923
|
+
async function installDependencies({ projectDir, packageManager }) {
|
|
1924
1924
|
const s = spinner();
|
|
1925
1925
|
try {
|
|
1926
1926
|
s.start(`Running ${packageManager} install...`);
|
|
@@ -1929,26 +1929,11 @@ async function installDependencies({ projectDir, packageManager, addons = [] })
|
|
|
1929
1929
|
stderr: "inherit"
|
|
1930
1930
|
})`${packageManager} install`;
|
|
1931
1931
|
s.stop("Dependencies installed successfully");
|
|
1932
|
-
if (addons.includes("biome") || addons.includes("husky")) await runBiomeCheck(projectDir, packageManager);
|
|
1933
1932
|
} catch (error) {
|
|
1934
1933
|
s.stop(pc.red("Failed to install dependencies"));
|
|
1935
1934
|
if (error instanceof Error) consola.error(pc.red(`Installation error: ${error.message}`));
|
|
1936
1935
|
}
|
|
1937
1936
|
}
|
|
1938
|
-
async function runBiomeCheck(projectDir, packageManager) {
|
|
1939
|
-
const s = spinner();
|
|
1940
|
-
try {
|
|
1941
|
-
s.start("Running Biome format check...");
|
|
1942
|
-
await $({
|
|
1943
|
-
cwd: projectDir,
|
|
1944
|
-
stderr: "inherit"
|
|
1945
|
-
})`${packageManager} biome check --write .`;
|
|
1946
|
-
s.stop("Biome check completed successfully");
|
|
1947
|
-
} catch (_error) {
|
|
1948
|
-
s.stop(pc.yellow("Biome check encountered issues"));
|
|
1949
|
-
log.warn(pc.yellow("Some files may need manual formatting"));
|
|
1950
|
-
}
|
|
1951
|
-
}
|
|
1952
1937
|
|
|
1953
1938
|
//#endregion
|
|
1954
1939
|
//#region src/helpers/project-generation/post-installation.ts
|
|
@@ -2616,8 +2601,7 @@ async function createProject(options) {
|
|
|
2616
2601
|
log.success("Project template successfully scaffolded!");
|
|
2617
2602
|
if (options.install) await installDependencies({
|
|
2618
2603
|
projectDir,
|
|
2619
|
-
packageManager: options.packageManager
|
|
2620
|
-
addons: options.addons
|
|
2604
|
+
packageManager: options.packageManager
|
|
2621
2605
|
});
|
|
2622
2606
|
displayPostInstallInstructions({
|
|
2623
2607
|
...options,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-better-t-stack",
|
|
3
|
-
"version": "2.16.
|
|
3
|
+
"version": "2.16.4",
|
|
4
4
|
"description": "A modern CLI tool for scaffolding end-to-end type-safe TypeScript projects with best practices and customizable configurations",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|