Skip to content

Commit

Permalink
Fix CI and build command
Browse files Browse the repository at this point in the history
  • Loading branch information
cregourd committed Nov 12, 2024
1 parent 01f03b0 commit d4e4d6e
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/vercel-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
run: pnpm install

- name: Setup packages (Build)
run: pnpm setup:packages
run: pnpm build

- name: Install Vercel CLI
run: npm install --global [email protected]
Expand Down
3 changes: 3 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
link-workspace-packages=true
prefer-workspace-packages=true
prefer-symlinked-executables=true
1 change: 1 addition & 0 deletions apps/example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"start": "next start",
"lint": "next lint",
"database": "prisma migrate dev && prisma db seed",
"generate": "prisma generate",
"reset-database": "prisma migrate reset --force && prisma migrate dev && prisma db seed",
"prisma:migrate:dev": "prisma migrate dev",
"vercel-build": "prisma generate && prisma migrate deploy && next build",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"format": "prettier --write \"**/*.{ts,tsx,md}\"",
"publish-packages": "pnpm build:packages && changeset publish",
"changeset-version": "(changeset version) && cp packages/next-admin/CHANGELOG.md apps/docs/pages/changelog/index.md && pnpm install",
"clean": "turbo run clean"
"clean": "turbo run clean && pnpm recursive exec -- rm -rf node_modules && rm -rf node_modules && pnpm recursive exec -- rm -rf .turbo && rm -rf .turbo"
},
"devDependencies": {
"dotenv-cli": "7.2.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/generator-prisma/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
}
],
"scripts": {
"build": "tsc",
"build": "tsc && pnpm install",
"dev": "tsc -w",
"typecheck": "tsc --noEmit",
"clean": "rm -rf dist"
Expand Down
10 changes: 9 additions & 1 deletion turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,13 @@
],
"tasks": {
"start": {},
"@premieroctet/next-admin#build": {
"dependsOn": ["example#generate"]
},
"example#generate": {
"dependsOn": ["@premieroctet/next-admin-generator-prisma#build"],
"cache": false
},
"build": {
"dependsOn": ["^build"],
"outputs": ["dist/**", ".next/**", "!.next/cache/**"]
Expand All @@ -29,7 +36,8 @@
"reset-database": {
"cache": false
},
"clean": {}
"clean": {},
"generate": {}
},
"ui": "stream"
}

0 comments on commit d4e4d6e

Please sign in to comment.