@newt-app/templates 0.21.3 → 0.21.5

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.
Files changed (2) hide show
  1. package/dist/index.js +7 -11
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -151,14 +151,13 @@ var readme_default = {
151
151
  filename: "README.md",
152
152
  template: `# <%= projectName %>
153
153
 
154
- Full-stack monorepo: Next.js 16 + NestJS 11 + better-auth + PostgreSQL.
154
+ Full-stack monorepo: Next.js 16 + NestJS 11 + better-auth + <%= database === 'postgres' ? 'Postgres' : 'SQLite' %>.
155
155
 
156
156
  ## Quick start
157
157
 
158
158
  \`\`\`sh
159
- # optional: set DATABASE_URL in .env for Postgres (defaults to local SQLite)
160
- pnpm install
161
- pnpm db:migrate
159
+ <% if (database === 'postgres') { %># set DATABASE_URL in .env to your Postgres database
160
+ <% } %>pnpm install
162
161
  pnpm dev
163
162
  \`\`\`
164
163
 
@@ -9751,7 +9750,6 @@ ARG API_HOST=localhost
9751
9750
  ENV API_HOST=$API_HOST
9752
9751
  RUN pnpm build --filter=web --filter=api --filter=@<%= projectName %>/auth
9753
9752
  RUN pnpm deploy --filter=api --prod /deploy/api
9754
- RUN pnpm deploy --filter=@<%= projectName %>/auth --prod /deploy/auth
9755
9753
 
9756
9754
  # --- web ---
9757
9755
  FROM base AS web
@@ -9772,10 +9770,9 @@ EXPOSE 3001
9772
9770
  CMD ["node", "dist/main"]
9773
9771
 
9774
9772
  # --- migrate ---
9775
- FROM base AS migrate
9776
- COPY --from=build /deploy/auth /app
9773
+ FROM build AS migrate
9777
9774
  WORKDIR /app
9778
- CMD ["/app/node_modules/.bin/auth", "migrate", "--config", "src/index.ts", "-y"]`
9775
+ CMD ["pnpm", "db:migrate"]`
9779
9776
  };
9780
9777
 
9781
9778
  // src/deployment-standalone/templates/docker-compose.ts
@@ -9803,7 +9800,6 @@ services:
9803
9800
  build:
9804
9801
  context: .
9805
9802
  target: migrate
9806
- command: ["/app/node_modules/.bin/auth", "migrate", "--config", "src/index.ts", "-y"]
9807
9803
  environment:
9808
9804
  <<: *app-env
9809
9805
  depends_on:
@@ -9895,8 +9891,8 @@ var turbo_json_default2 = {
9895
9891
  "persistent": true
9896
9892
  },
9897
9893
  "migrate": {
9898
- "cache": false,
9899
- "interactive": true
9894
+ "dependsOn": ["^migrate"],
9895
+ "cache": false
9900
9896
  },
9901
9897
  "generate": {
9902
9898
  "cache": false
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@newt-app/templates",
3
- "version": "0.21.3",
3
+ "version": "0.21.5",
4
4
  "private": false,
5
5
  "description": "Templates for newt-app",
6
6
  "type": "module",