create-mikstack 0.1.18 → 0.1.19

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
@@ -174,6 +174,8 @@ function scaffold(config, onStatus) {
174
174
  recursive: true,
175
175
  force: true
176
176
  });
177
+ fs.rmSync(path.join(target, "agents.md"), { force: true });
178
+ fs.rmSync(path.join(target, ".npmrc"), { force: true });
177
179
  onStatus?.("Applying templates...");
178
180
  const overlay = (dir) => {
179
181
  copyDir(dir, target);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-mikstack",
3
- "version": "0.1.18",
3
+ "version": "0.1.19",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -17,8 +17,18 @@ FROM base AS build
17
17
  WORKDIR /app
18
18
  COPY --from=deps /app/node_modules ./node_modules
19
19
  COPY . .
20
+ # {{#if:pmIsNpm}}
20
21
  RUN npm run build
21
22
  RUN npm prune --omit=dev
23
+ # {{/if:pmIsNpm}}
24
+ # {{#if:pmIsPnpm}}
25
+ RUN corepack enable && pnpm run build
26
+ RUN pnpm prune --prod
27
+ # {{/if:pmIsPnpm}}
28
+ # {{#if:pmIsBun}}
29
+ RUN npm i -g bun && bun run build
30
+ RUN bun install --production
31
+ # {{/if:pmIsBun}}
22
32
 
23
33
  FROM base
24
34
  WORKDIR /app
@@ -5,7 +5,7 @@ services:
5
5
  environment:
6
6
  POSTGRES_USER: root
7
7
  POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
8
- POSTGRES_DB: { { projectName } }
8
+ POSTGRES_DB: "{{projectName}}"
9
9
  command: ["postgres", "-c", "wal_level=logical"]
10
10
  volumes:
11
11
  - pgdata:/var/lib/postgresql/data
@@ -1,28 +0,0 @@
1
- # Agent Guidelines for {{projectName}}
2
-
3
- ## Architecture Overview
4
-
5
- This is a SvelteKit application using:
6
-
7
- - **Drizzle ORM** for database schema and migrations
8
- - **Zero** (@rocicorp/zero) for real-time client-side data sync
9
- - **better-auth** for authentication (magic link flow)
10
-
11
- ## File Conventions
12
-
13
- - Server-only code: `src/lib/server/` (enforced by SvelteKit)
14
- - Zero schema/queries/mutators: `src/lib/zero/`
15
- - Auth client: `src/lib/auth-client.ts`
16
- - Zero client context: `src/lib/z.svelte.ts`
17
- - API routes for Zero: `src/routes/api/zero/`
18
-
19
- ## When Modifying the Schema
20
-
21
- 1. Update Drizzle schema in `src/lib/server/db/schema.ts`
22
- 2. Run `{{pmRun}} db:push` (dev) or `{{pmRun}} db:generate` + `{{pmRun}} db:migrate` (production)
23
- 3. Run `{{pmRun}} zero:generate` to regenerate Zero schema
24
- 4. Update queries/mutators in `src/lib/zero/` as needed
25
-
26
- ## Testing
27
-
28
- Run `{{pmRun}} check` for type checking and `{{pmRun}} lint` for linting before committing.