create-newt-app 0.22.19 → 0.22.20
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 +10 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -7,7 +7,7 @@ import chalk from "chalk";
|
|
|
7
7
|
// package.json
|
|
8
8
|
var package_default = {
|
|
9
9
|
name: "create-newt-app",
|
|
10
|
-
version: "0.22.
|
|
10
|
+
version: "0.22.20",
|
|
11
11
|
license: "MIT",
|
|
12
12
|
private: false,
|
|
13
13
|
type: "module",
|
|
@@ -10198,6 +10198,7 @@ var api_package_json_default = {
|
|
|
10198
10198
|
"@nestjs/core": "^11.0.1",
|
|
10199
10199
|
"@nestjs/platform-express": "^11.0.1",
|
|
10200
10200
|
"@<%= projectName %>/auth": "workspace:*",
|
|
10201
|
+
"@<%= projectName %>/db": "workspace:*",
|
|
10201
10202
|
"@thallesp/nestjs-better-auth": "^2.5.1",
|
|
10202
10203
|
"dotenv": "^17.3.1",
|
|
10203
10204
|
"reflect-metadata": "^0.2.2",
|
|
@@ -10414,6 +10415,7 @@ var api_package_json_default2 = {
|
|
|
10414
10415
|
"@nestjs/platform-express": "^11.0.1",
|
|
10415
10416
|
"@nestjs/serve-static": "^5.0.0",
|
|
10416
10417
|
"@<%= projectName %>/auth": "workspace:*",
|
|
10418
|
+
"@<%= projectName %>/db": "workspace:*",
|
|
10417
10419
|
"@thallesp/nestjs-better-auth": "^2.5.1",
|
|
10418
10420
|
"dotenv": "^17.3.1",
|
|
10419
10421
|
"reflect-metadata": "^0.2.2",
|
|
@@ -11980,9 +11982,15 @@ async function doInit(options) {
|
|
|
11980
11982
|
const nestDiOnly2 = options.ci ? options.nestDiOnly : group2.nestDiOnly ?? false;
|
|
11981
11983
|
const todoExample = options.ci ? !options.bare : group2.todoExample ?? true;
|
|
11982
11984
|
const deploymentModule = deployment === "standalone" ? templates.deploymentStandalone : deployment === "custom-server" ? templates.deploymentCustomServer : deployment === "spa" ? templates.deploymentSpa : null;
|
|
11985
|
+
const webModule = deployment === "spa" ? {
|
|
11986
|
+
...templates.web,
|
|
11987
|
+
templates: templates.web.templates.filter(
|
|
11988
|
+
(t) => t.filename !== "apps/web/app/api/auth/[...all]/route.ts"
|
|
11989
|
+
)
|
|
11990
|
+
} : templates.web;
|
|
11983
11991
|
const allModules = [
|
|
11984
11992
|
templates.root,
|
|
11985
|
-
|
|
11993
|
+
webModule,
|
|
11986
11994
|
templates.api,
|
|
11987
11995
|
database === "postgres" ? templates.dbPostgres : templates.dbSqlite,
|
|
11988
11996
|
templates.auth,
|