create-newt-app 0.30.0 → 0.31.0

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
@@ -10,7 +10,7 @@ import ejs from "ejs";
10
10
  import { existsSync, promises } from "fs";
11
11
  import path from "path";
12
12
  //#region package.json
13
- var version = "0.30.0";
13
+ var version = "0.31.0";
14
14
  var engines = { "node": ">=24.0.0" };
15
15
  //#endregion
16
16
  //#region src/templates/root/index.ts
@@ -25,6 +25,7 @@ const root$2 = { templates: [
25
25
  "dev": "turbo run dev",
26
26
  "lint": "turbo run lint",
27
27
  "test": "turbo run test",
28
+ "typecheck": "turbo run typecheck",
28
29
  "db:make": "pnpm --filter @<%= projectName %>/db run make",
29
30
  "db:migrate": "turbo run migrate",
30
31
  "db:generate": "turbo run generate"
@@ -113,9 +114,10 @@ dist
113
114
  "inputs": ["$TURBO_DEFAULT$", ".env*"],
114
115
  "outputs": [".next/**", "!.next/cache/**"]
115
116
  },
116
- <% if (linter === "oxc") { %> "typecheck": {
117
+ "typecheck": {
117
118
  "dependsOn": ["^build"]
118
- },<% } else { %> "lint": {
119
+ },<% if (linter !== "oxc") { %>
120
+ "lint": {
119
121
  "dependsOn": ["^lint"],
120
122
  "env": ["NODE_ENV"]
121
123
  },
@@ -202,7 +204,7 @@ This version has breaking changes — APIs, conventions, and file structure may
202
204
  ] };
203
205
  //#endregion
204
206
  //#region src/templates/web/index.ts
205
- const web$2 = {
207
+ const web$1 = {
206
208
  templates: [
207
209
  {
208
210
  when: (s) => !s.nestDiOnly && s.deployment !== "custom-server",
@@ -216,6 +218,7 @@ const web$2 = {
216
218
  "dev": "next dev --port 3000",
217
219
  "build": "next build",
218
220
  "start": "next start",
221
+ "typecheck": "next typegen && tsc --noEmit",
219
222
  "db:migrate": "better-auth migrate"
220
223
  },
221
224
  "dependencies": {
@@ -759,6 +762,7 @@ const api$1 = { templates: [
759
762
  "license": "UNLICENSED",
760
763
  "scripts": {
761
764
  "build": "nest build",
765
+ "typecheck": "tsc -p tsconfig.build.json --noEmit",
762
766
  "start": "nest start",
763
767
  "dev": "nest start --watch",
764
768
  "start:dev": "nest start --watch",
@@ -910,6 +914,7 @@ const auth = { templates: [
910
914
  ".": "./src/index.ts"
911
915
  },
912
916
  "scripts": {
917
+ "typecheck": "tsc --noEmit",
913
918
  "migrate": "dotenv -e ../../.env -- auth migrate -y --config src/index.ts",
914
919
  "generate": "dotenv -e ../../.env -- auth generate --config src/index.ts"
915
920
  },
@@ -1144,6 +1149,7 @@ var package_json_sqlite_default = {
1144
1149
  ".": "./src/index.ts"
1145
1150
  },
1146
1151
  "scripts": {
1152
+ "typecheck": "tsc --noEmit",
1147
1153
  "migrate": "dotenv -e ../../.env -- tsx src/migrate.ts",
1148
1154
  "make": "tsx scripts/new-migration.ts"
1149
1155
  },
@@ -1172,6 +1178,7 @@ var package_json_postgres_default = {
1172
1178
  ".": "./src/index.ts"
1173
1179
  },
1174
1180
  "scripts": {
1181
+ "typecheck": "tsc --noEmit",
1175
1182
  "migrate": "dotenv -e ../../.env -- tsx src/migrate.ts",
1176
1183
  "make": "tsx scripts/new-migration.ts"
1177
1184
  },
@@ -1269,7 +1276,7 @@ const ui$1 = { templates: [
1269
1276
  "./*": "./src/*.tsx"
1270
1277
  },
1271
1278
  "scripts": {
1272
- "check-types": "tsc --noEmit"
1279
+ "typecheck": "tsc --noEmit"
1273
1280
  },
1274
1281
  "devDependencies": {
1275
1282
  "@<%= projectName %>/typescript-config": "workspace:*",
@@ -1595,7 +1602,9 @@ const shadcnUi = {
1595
1602
  "./hooks/*": "./src/hooks/*.ts",
1596
1603
  "./*": "./src/components/*.tsx"
1597
1604
  },
1598
- "scripts": {},
1605
+ "scripts": {
1606
+ "typecheck": "tsc --noEmit"
1607
+ },
1599
1608
  "dependencies": {
1600
1609
  "@base-ui/react": "<%= versions["@base-ui/react"] %>",
1601
1610
  "@shadcn/react": "<%= versions["@shadcn/react"] %>",
@@ -10105,7 +10114,7 @@ var prettierrc_default = {
10105
10114
  };
10106
10115
  //#endregion
10107
10116
  //#region src/templates/eslint-config/index.ts
10108
- const web$1 = "apps/web";
10117
+ const web = "apps/web";
10109
10118
  const api = "apps/api";
10110
10119
  const ui = "packages/ui";
10111
10120
  const root$1 = "";
@@ -10123,13 +10132,13 @@ const eslintConfig = {
10123
10132
  packages: [
10124
10133
  {
10125
10134
  package: "eslint",
10126
- module: web$1,
10135
+ module: web,
10127
10136
  version: versions.eslint,
10128
10137
  dev: true
10129
10138
  },
10130
10139
  {
10131
10140
  package: "@<%= projectName %>/eslint-config",
10132
- module: web$1,
10141
+ module: web,
10133
10142
  version: "workspace:*",
10134
10143
  dev: true
10135
10144
  },
@@ -10190,12 +10199,12 @@ const eslintConfig = {
10190
10199
  ],
10191
10200
  scripts: [
10192
10201
  {
10193
- module: web$1,
10202
+ module: web,
10194
10203
  name: "lint",
10195
10204
  script: "eslint --fix && next typegen && tsc --noEmit"
10196
10205
  },
10197
10206
  {
10198
- module: web$1,
10207
+ module: web,
10199
10208
  name: "lint:check",
10200
10209
  script: "eslint --max-warnings 0 && next typegen && tsc --noEmit"
10201
10210
  },
@@ -10299,7 +10308,6 @@ var oxfmtrc_default = {
10299
10308
  };
10300
10309
  //#endregion
10301
10310
  //#region src/templates/oxc/index.ts
10302
- const web = "apps/web";
10303
10311
  const root = "";
10304
10312
  const oxc = {
10305
10313
  templates: [oxlintrc_default, oxfmtrc_default],
@@ -10315,21 +10323,11 @@ const oxc = {
10315
10323
  dev: true
10316
10324
  }],
10317
10325
  scripts: [
10318
- {
10319
- module: web,
10320
- name: "typecheck",
10321
- script: "next typegen && tsc --noEmit"
10322
- },
10323
10326
  {
10324
10327
  module: root,
10325
10328
  name: "lint",
10326
10329
  script: "oxlint --fix"
10327
10330
  },
10328
- {
10329
- module: root,
10330
- name: "typecheck",
10331
- script: "turbo run typecheck"
10332
- },
10333
10331
  {
10334
10332
  module: root,
10335
10333
  name: "lint:check",
@@ -10534,7 +10532,9 @@ const typescriptConfig = { templates: [
10534
10532
  "$schema": "https://json.schemastore.org/tsconfig",
10535
10533
  "extends": "./base.json",
10536
10534
  "compilerOptions": {
10537
- "jsx": "react-jsx"
10535
+ "jsx": "react-jsx",
10536
+ "module": "ESNext",
10537
+ "moduleResolution": "Bundler"
10538
10538
  }
10539
10539
  }`
10540
10540
  }
@@ -10944,9 +10944,10 @@ export default nextConfig;`
10944
10944
  "env": ["API_HOST", "DATABASE_URL"],
10945
10945
  "outputs": [".next/**", "!.next/cache/**"]
10946
10946
  },
10947
- <% if (linter === "oxc") { %> "typecheck": {
10947
+ "typecheck": {
10948
10948
  "dependsOn": ["^build"]
10949
- },<% } else { %> "lint": {
10949
+ },<% if (linter !== "oxc") { %>
10950
+ "lint": {
10950
10951
  "dependsOn": ["^lint"],
10951
10952
  "env": ["NODE_ENV"]
10952
10953
  },
@@ -11188,9 +11189,10 @@ export default nextConfig;`
11188
11189
  "inputs": ["$TURBO_DEFAULT$", ".env*"],
11189
11190
  "outputs": [".next/**", "!.next/cache/**", "dist/**"]
11190
11191
  },
11191
- <% if (linter === "oxc") { %> "typecheck": {
11192
+ "typecheck": {
11192
11193
  "dependsOn": ["^build"]
11193
- },<% } else { %> "lint": {
11194
+ },<% if (linter !== "oxc") { %>
11195
+ "lint": {
11194
11196
  "dependsOn": ["^lint"],
11195
11197
  "env": ["NODE_ENV"]
11196
11198
  },
@@ -12614,9 +12616,9 @@ function selectModules(selection) {
12614
12616
  const { deployment, nestDiOnly: nestDiOnly$1, todoExample, shadcn, database, linter, testing, extras } = selection;
12615
12617
  const deploymentModule = deployment === "standalone" ? deploymentStandalone : deployment === "custom-server" ? singleProcessCustomServer : deployment === "spa" ? singleProcessStaticExport : null;
12616
12618
  const webModule = deployment === "spa" ? {
12617
- ...web$2,
12618
- templates: web$2.templates.filter((t) => t.filename !== "apps/web/app/api/auth/[...all]/route.ts")
12619
- } : web$2;
12619
+ ...web$1,
12620
+ templates: web$1.templates.filter((t) => t.filename !== "apps/web/app/api/auth/[...all]/route.ts")
12621
+ } : web$1;
12620
12622
  return [
12621
12623
  root$2,
12622
12624
  webModule,