create-better-t-stack 3.3.0 → 3.4.1
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 +1 -1
- package/dist/index.js +1 -1
- package/dist/{src-82W1Q-C5.js → src-_EdtPnBT.js} +18 -5
- package/package.json +1 -1
- package/templates/api/orpc/server/tsconfig.json.hbs +1 -1
- package/templates/api/trpc/server/tsconfig.json.hbs +1 -1
- package/templates/auth/better-auth/server/base/tsconfig.json.hbs +1 -1
- package/templates/backend/server/base/tsconfig.json.hbs +1 -1
- package/templates/db/base/tsconfig.json.hbs +1 -1
- package/templates/packages/config/package.json.hbs +5 -0
- package/templates/base/tsconfig.json.hbs +0 -3
- /package/templates/{base → packages/config}/tsconfig.base.json.hbs +0 -0
package/dist/cli.js
CHANGED
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { a as router, i as init, n as createBtsCli, o as sponsors, r as docs, t as builder } from "./src-
|
|
2
|
+
import { a as router, i as init, n as createBtsCli, o as sponsors, r as docs, t as builder } from "./src-_EdtPnBT.js";
|
|
3
3
|
|
|
4
4
|
export { builder, createBtsCli, docs, init, router, sponsors };
|
|
@@ -977,7 +977,7 @@ async function getFrontendChoice(frontendOptions, backend, auth) {
|
|
|
977
977
|
{
|
|
978
978
|
value: "native-uniwind",
|
|
979
979
|
label: "Uniwind",
|
|
980
|
-
hint: "
|
|
980
|
+
hint: "Fastest Tailwind bindings for React Native with HeroUI Native"
|
|
981
981
|
},
|
|
982
982
|
{
|
|
983
983
|
value: "native-unistyles",
|
|
@@ -2847,6 +2847,12 @@ async function setupApiPackage(projectDir, context) {
|
|
|
2847
2847
|
const apiServerDir = path.join(PKG_ROOT, `templates/api/${context.api}/server`);
|
|
2848
2848
|
if (await fs.pathExists(apiServerDir)) await processAndCopyFiles("**/*", apiServerDir, apiPackageDir, context);
|
|
2849
2849
|
}
|
|
2850
|
+
async function setupConfigPackage(projectDir, context) {
|
|
2851
|
+
const configPackageDir = path.join(projectDir, "packages/config");
|
|
2852
|
+
await fs.ensureDir(configPackageDir);
|
|
2853
|
+
const configBaseDir = path.join(PKG_ROOT, "templates/packages/config");
|
|
2854
|
+
if (await fs.pathExists(configBaseDir)) await processAndCopyFiles("**/*", configBaseDir, configPackageDir, context);
|
|
2855
|
+
}
|
|
2850
2856
|
async function setupDbPackage(projectDir, context) {
|
|
2851
2857
|
if (context.database === "none" || context.orm === "none") return;
|
|
2852
2858
|
const dbPackageDir = path.join(projectDir, "packages/db");
|
|
@@ -2873,6 +2879,7 @@ async function setupServerApp(projectDir, context) {
|
|
|
2873
2879
|
if (await fs.pathExists(frameworkSrcDir)) await processAndCopyFiles("**/*", frameworkSrcDir, serverAppDir, context, true);
|
|
2874
2880
|
}
|
|
2875
2881
|
async function setupBackendFramework(projectDir, context) {
|
|
2882
|
+
await setupConfigPackage(projectDir, context);
|
|
2876
2883
|
if (context.backend === "none") return;
|
|
2877
2884
|
if (context.backend === "convex") {
|
|
2878
2885
|
await setupConvexBackend(projectDir, context);
|
|
@@ -4052,7 +4059,6 @@ async function setupCatalogs(projectDir, options) {
|
|
|
4052
4059
|
const packagePaths = [
|
|
4053
4060
|
"apps/server",
|
|
4054
4061
|
"apps/web",
|
|
4055
|
-
"apps/native",
|
|
4056
4062
|
"apps/fumadocs",
|
|
4057
4063
|
"apps/docs",
|
|
4058
4064
|
"packages/api",
|
|
@@ -6566,7 +6572,6 @@ async function displayPostInstallInstructions(config) {
|
|
|
6566
6572
|
const hasReactRouter = frontend?.includes("react-router");
|
|
6567
6573
|
const hasSvelte = frontend?.includes("svelte");
|
|
6568
6574
|
const webPort = hasReactRouter || hasSvelte ? "5173" : "3001";
|
|
6569
|
-
const tazeCommand = getPackageExecutionCommand(packageManager, "taze -r");
|
|
6570
6575
|
let output = `${pc.bold("Next steps")}\n${pc.cyan("1.")} ${cdCmd}\n`;
|
|
6571
6576
|
let stepCounter = 2;
|
|
6572
6577
|
if (!depsInstalled) output += `${pc.cyan(`${stepCounter++}.`)} ${packageManager} install\n`;
|
|
@@ -6606,8 +6611,7 @@ async function displayPostInstallInstructions(config) {
|
|
|
6606
6611
|
if (polarInstructions) output += `\n${polarInstructions.trim()}\n`;
|
|
6607
6612
|
if (noOrmWarning) output += `\n${noOrmWarning.trim()}\n`;
|
|
6608
6613
|
if (bunWebNativeWarning) output += `\n${bunWebNativeWarning.trim()}\n`;
|
|
6609
|
-
output += `\n${pc.bold("
|
|
6610
|
-
output += `${pc.bold("Like Better-T-Stack?")} Please consider giving us a star\n on GitHub:\n`;
|
|
6614
|
+
output += `\n${pc.bold("Like Better-T-Stack?")} Please consider giving us a star\n on GitHub:\n`;
|
|
6611
6615
|
output += pc.cyan("https://github.com/AmanVarshney01/create-better-t-stack");
|
|
6612
6616
|
consola$1.box(output);
|
|
6613
6617
|
}
|
|
@@ -6715,10 +6719,14 @@ async function setupWorkspaceDependencies(projectDir, options) {
|
|
|
6715
6719
|
const workspaceVersion = options.packageManager === "npm" ? "*" : "workspace:*";
|
|
6716
6720
|
const commonDeps = ["dotenv", "zod"];
|
|
6717
6721
|
const commonDevDeps = ["tsdown"];
|
|
6722
|
+
const configPackageDir = path.join(projectDir, "packages/config");
|
|
6723
|
+
const configDep = {};
|
|
6724
|
+
if (await fs.pathExists(configPackageDir)) configDep[`@${projectName}/config`] = workspaceVersion;
|
|
6718
6725
|
const dbPackageDir = path.join(projectDir, "packages/db");
|
|
6719
6726
|
if (await fs.pathExists(dbPackageDir)) await addPackageDependency({
|
|
6720
6727
|
dependencies: commonDeps,
|
|
6721
6728
|
devDependencies: commonDevDeps,
|
|
6729
|
+
customDevDependencies: configDep,
|
|
6722
6730
|
projectDir: dbPackageDir
|
|
6723
6731
|
});
|
|
6724
6732
|
const authPackageDir = path.join(projectDir, "packages/auth");
|
|
@@ -6729,6 +6737,7 @@ async function setupWorkspaceDependencies(projectDir, options) {
|
|
|
6729
6737
|
dependencies: commonDeps,
|
|
6730
6738
|
devDependencies: commonDevDeps,
|
|
6731
6739
|
customDependencies: authDeps,
|
|
6740
|
+
customDevDependencies: configDep,
|
|
6732
6741
|
projectDir: authPackageDir
|
|
6733
6742
|
});
|
|
6734
6743
|
}
|
|
@@ -6741,6 +6750,7 @@ async function setupWorkspaceDependencies(projectDir, options) {
|
|
|
6741
6750
|
dependencies: commonDeps,
|
|
6742
6751
|
devDependencies: commonDevDeps,
|
|
6743
6752
|
customDependencies: apiDeps,
|
|
6753
|
+
customDevDependencies: configDep,
|
|
6744
6754
|
projectDir: apiPackageDir
|
|
6745
6755
|
});
|
|
6746
6756
|
}
|
|
@@ -6754,6 +6764,7 @@ async function setupWorkspaceDependencies(projectDir, options) {
|
|
|
6754
6764
|
dependencies: commonDeps,
|
|
6755
6765
|
devDependencies: commonDevDeps,
|
|
6756
6766
|
customDependencies: serverDeps,
|
|
6767
|
+
customDevDependencies: configDep,
|
|
6757
6768
|
projectDir: serverPackageDir
|
|
6758
6769
|
});
|
|
6759
6770
|
}
|
|
@@ -6764,6 +6775,7 @@ async function setupWorkspaceDependencies(projectDir, options) {
|
|
|
6764
6775
|
if (options.auth !== "none" && await fs.pathExists(authPackageDir)) webDeps[`@${projectName}/auth`] = workspaceVersion;
|
|
6765
6776
|
if (Object.keys(webDeps).length > 0) await addPackageDependency({
|
|
6766
6777
|
customDependencies: webDeps,
|
|
6778
|
+
customDevDependencies: configDep,
|
|
6767
6779
|
projectDir: webPackageDir
|
|
6768
6780
|
});
|
|
6769
6781
|
}
|
|
@@ -6773,6 +6785,7 @@ async function setupWorkspaceDependencies(projectDir, options) {
|
|
|
6773
6785
|
if (options.api !== "none" && await fs.pathExists(apiPackageDir)) nativeDeps[`@${projectName}/api`] = workspaceVersion;
|
|
6774
6786
|
if (Object.keys(nativeDeps).length > 0) await addPackageDependency({
|
|
6775
6787
|
customDependencies: nativeDeps,
|
|
6788
|
+
customDevDependencies: configDep,
|
|
6776
6789
|
projectDir: nativePackageDir
|
|
6777
6790
|
});
|
|
6778
6791
|
}
|
package/package.json
CHANGED
|
File without changes
|