create-tnt-stack 0.3.5 → 0.3.6

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 CHANGED
@@ -3,7 +3,7 @@ import Se from"path";import{execa as rt}from"execa";import Ce from"fs-extra";imp
3
3
  / __| _ \\ __| /_\\_ _| __| |_ _| \\| |_ _| / __|_ _/_\\ / __| |/ /
4
4
  | (__| / _| / _ \\| | | _| | | | .\` | | | \\__ \\ | |/ _ \\ (__| ' <
5
5
  \\___|_|_\\___/_/ \\_\\_| |___| |_| |_|\\_| |_| |___/ |_/_/ \\_\\___|_|\\_\\
6
- `,P="my-tnt-stack",D="create-tnt-stack";import C from"path";import R from"fs-extra";import Y from"path";import Q from"fs-extra";import Re from"sort-package-json";var K={"next-auth":"^4.24.11","@auth/prisma-adapter":"^2.8.0",prisma:"^6.5.0","@prisma/client":"^6.5.0","@t3-oss/env-nextjs":"^0.12.0",zod:"^3.24.2",prettier:"^3.5.3","prettier-plugin-tailwindcss":"^0.6.11","@ianvs/prettier-plugin-sort-imports":"^4.4.1",eslint:"^9","eslint-config-next":"^15.2.3","@eslint/eslintrc":"^3"};var u=e=>{let{dependencies:t,devMode:a,projectDir:n}=e,i=Q.readJsonSync(Y.join(n,"package.json"));t.forEach(s=>{let l=K[s];a&&i.devDependencies?i.devDependencies[s]=l:i.dependencies&&(i.dependencies[s]=l)});let o=Re(i);Q.writeJsonSync(Y.join(n,"package.json"),o,{spaces:2})};var X=({projectDir:e,scopedAppName:t,packages:a,databaseProvider:n})=>{let i=a?.envVariables.inUse,o=a?.nextAuth.inUse,s=a?.prisma.inUse,l=[];i&&(l.push("@t3-oss/env-nextjs"),l.push("zod")),u({projectDir:e,dependencies:l,devMode:!1});let m=s,d=Ge(!!o,!!s,t,n),p="";if(m?o?p="with-next-auth-db.js":p="with-db.js":o&&(p="with-next-auth.js"),p!==""){let Oe=C.join(c,"template/packages/src/env",p),Ne=C.join(e,"src/env.js");R.copyFileSync(Oe,Ne)}let g=C.join(e,".env"),w=C.join(e,".env.example"),M=$e+d,Te=Buffer.from(crypto.getRandomValues(new Uint8Array(32))).toString("base64"),Ee=d.replace('AUTH_SECRET=""',`AUTH_SECRET="${Te}" # Generated by create-tnt-stack`);R.writeFileSync(g,Ee,"utf-8"),R.writeFileSync(w,M,"utf-8")};function Ge(e,t,a,n){let i=`
6
+ `,P="my-tnt-stack",D="create-tnt-stack";import C from"path";import R from"fs-extra";import Y from"path";import Q from"fs-extra";import Re from"sort-package-json";var K={"next-auth":"^4.24.11","@auth/prisma-adapter":"^2.8.0",prisma:"^6.5.0","@prisma/client":"^6.5.0","@t3-oss/env-nextjs":"^0.12.0",zod:"^3.24.2",prettier:"^3.5.3","prettier-plugin-tailwindcss":"^0.6.11","@ianvs/prettier-plugin-sort-imports":"^4.4.1",eslint:"^9","eslint-config-next":"^15.2.4","@eslint/eslintrc":"^3.3.1"};var u=e=>{let{dependencies:t,devMode:a,projectDir:n}=e,i=Q.readJsonSync(Y.join(n,"package.json"));t.forEach(s=>{let l=K[s];a&&i.devDependencies?i.devDependencies[s]=l:i.dependencies&&(i.dependencies[s]=l)});let o=Re(i);Q.writeJsonSync(Y.join(n,"package.json"),o,{spaces:2})};var X=({projectDir:e,scopedAppName:t,packages:a,databaseProvider:n})=>{let i=a?.envVariables.inUse,o=a?.nextAuth.inUse,s=a?.prisma.inUse,l=[];i&&(l.push("@t3-oss/env-nextjs"),l.push("zod")),u({projectDir:e,dependencies:l,devMode:!1});let m=s,d=Ge(!!o,!!s,t,n),p="";if(m?o?p="with-next-auth-db.js":p="with-db.js":o&&(p="with-next-auth.js"),p!==""){let Oe=C.join(c,"template/packages/src/env",p),Ne=C.join(e,"src/env.js");R.copyFileSync(Oe,Ne)}let g=C.join(e,".env"),w=C.join(e,".env.example"),M=$e+d,Te=Buffer.from(crypto.getRandomValues(new Uint8Array(32))).toString("base64"),Ee=d.replace('AUTH_SECRET=""',`AUTH_SECRET="${Te}" # Generated by create-tnt-stack`);R.writeFileSync(g,Ee,"utf-8"),R.writeFileSync(w,M,"utf-8")};function Ge(e,t,a,n){let i=`
7
7
  # When adding additional environment variables, the schema in "/src/env.js"
8
8
  # should be updated accordingly.
9
9
  `.trim().concat(`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-tnt-stack",
3
- "version": "0.3.5",
3
+ "version": "0.3.6",
4
4
  "description": "Create web application with the TNT-Powered stack",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -54,21 +54,21 @@
54
54
  },
55
55
  "devDependencies": {
56
56
  "@auth/prisma-adapter": "^2.8.0",
57
- "@eslint/eslintrc": "^3.3.0",
57
+ "@eslint/eslintrc": "^3.3.1",
58
58
  "@ianvs/prettier-plugin-sort-imports": "^4.4.1",
59
59
  "@prisma/client": "^6.5.0",
60
60
  "@t3-oss/env-nextjs": "^0.12.0",
61
61
  "@types/fs-extra": "^11.0.4",
62
62
  "eslint": "^9.22.0",
63
- "eslint-config-next": "^15.2.3",
64
- "next": "^15.2.3",
63
+ "eslint-config-next": "^15.2.4",
64
+ "next": "^15.2.4",
65
65
  "next-auth": "^4.24.11",
66
66
  "prettier": "^3.5.3",
67
67
  "prettier-plugin-tailwindcss": "^0.6.11",
68
68
  "prisma": "^6.5.0",
69
69
  "react": "^19.0.0",
70
70
  "react-dom": "^19.0.0",
71
- "tailwindcss": "^4.0.14",
71
+ "tailwindcss": "^4.0.17",
72
72
  "tsup": "^8.4.0",
73
73
  "type-fest": "^4.37.0",
74
74
  "typescript": "^5.8.2",
@@ -11,7 +11,7 @@
11
11
  "dependencies": {
12
12
  "react": "^19.0.0",
13
13
  "react-dom": "^19.0.0",
14
- "next": "^15.2.3"
14
+ "next": "^15.2.4"
15
15
  },
16
16
  "devDependencies": {
17
17
  "typescript": "^5.8.2",
@@ -19,6 +19,6 @@
19
19
  "@types/react": "^19",
20
20
  "@types/react-dom": "^19",
21
21
  "@tailwindcss/postcss": "^4",
22
- "tailwindcss": "^4.0.14"
22
+ "tailwindcss": "^4.0.17"
23
23
  }
24
24
  }