@thanhdp1305/cowork-171305 0.2.0 → 0.3.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.
@@ -50,6 +50,13 @@ execSync(`npx prisma migrate deploy --schema="${path.join(ROOT, 'backend', 'pris
50
50
  env: { ...process.env, DATABASE_URL: `file:${DB_PATH}` },
51
51
  });
52
52
 
53
+ console.log('[workspace] Generating Prisma client...');
54
+ execSync(`npx prisma generate --schema="${path.join(ROOT, 'backend', 'prisma', 'schema.prisma')}"`, {
55
+ cwd: path.join(ROOT, 'backend'),
56
+ stdio: 'inherit',
57
+ env: { ...process.env, DATABASE_URL: `file:${DB_PATH}` },
58
+ });
59
+
53
60
  console.log('[workspace] Seeding database...');
54
61
  execSync('npx prisma db seed', {
55
62
  cwd: path.join(ROOT, 'backend'),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thanhdp1305/cowork-171305",
3
- "version": "0.2.0",
3
+ "version": "0.3.0",
4
4
  "private": false,
5
5
  "bin": {
6
6
  "workspace-hub": "./bin/workspace-cli.js"