launchbase 1.2.0 → 1.2.1

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/bin/launchbase.js CHANGED
@@ -7,7 +7,7 @@ const crypto = require('crypto');
7
7
  const fs = require('fs-extra');
8
8
  const { execSync, spawn } = require('child_process');
9
9
 
10
- const VERSION = '1.2.0';
10
+ const VERSION = '1.2.1';
11
11
  const program = new Command();
12
12
 
13
13
  function findAvailablePort(startPort = 5432, maxAttempts = 100) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "launchbase",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "description": "Generate production-ready NestJS backends with authentication, multi-tenancy, billing, and deployment in minutes",
5
5
  "author": "LaunchBase",
6
6
  "keywords": [
@@ -3,6 +3,9 @@
3
3
  "version": "0.1.1",
4
4
  "private": true,
5
5
  "license": "UNLICENSED",
6
+ "prisma": {
7
+ "seed": "ts-node prisma/seed.ts"
8
+ },
6
9
  "scripts": {
7
10
  "build": "prisma generate && tsc -p tsconfig.build.json",
8
11
  "start": "node dist/src/main.js",
@@ -18,15 +18,20 @@ async function main() {
18
18
  });
19
19
 
20
20
  const org = await prisma.organization.create({
21
- data: { name: 'Demo Org' }
21
+ data: { name: 'My Organization', slug: 'my-org' }
22
22
  });
23
23
 
24
- await prisma.membership.create({
25
- data: { userId: user.id, orgId: org.id, role: Role.OWNER }
24
+ await prisma.organizationMember.create({
25
+ data: { userId: user.id, organizationId: org.id, role: Role.OWNER }
26
26
  });
27
27
 
28
28
  await prisma.project.create({
29
- data: { orgId: org.id, name: 'First Project' }
29
+ data: {
30
+ organizationId: org.id,
31
+ name: 'Default Project',
32
+ slug: 'default-project',
33
+ description: 'Default project created during setup'
34
+ }
30
35
  });
31
36
  }
32
37