Skip to content

Commit 1b98d7a

Browse files
committed
feat: add prebuild scripts and improve build command for consistency across packages
1 parent 79f62ca commit 1b98d7a

File tree

5 files changed

+10
-3
lines changed

5 files changed

+10
-3
lines changed

apps/next-example/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
"dev": "next dev --turbopack",
77
"build": "next build",
88
"start": "next start",
9-
"lint": "next lint"
9+
"lint": "next lint",
10+
"prebuild": "pnpm --workspace-concurrency 1 --filter @graphprotocol/hypergraph run build && pnpm --workspace-concurrency 1 --filter @graphprotocol/hypergraph-react run build"
1011
},
1112
"type": "module",
1213
"dependencies": {

apps/server/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"scripts": {
77
"dev": "bun run --watch ./src/index.ts",
88
"prisma": "prisma",
9+
"prebuild": "prisma generate",
910
"build": "tsup"
1011
},
1112
"dependencies": {

packages/hypergraph-react/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"types": "./dist/index.d.ts",
2121
"sideEffects": [],
2222
"scripts": {
23-
"build": "tsc -b tsconfig.build.json && babel dist --plugins annotate-pure-calls --out-dir dist --source-maps && node ../../scripts/package.mjs",
23+
"build": "tsc -b --force tsconfig.build.json && babel dist --plugins annotate-pure-calls --out-dir dist --source-maps && node ../../scripts/package.mjs",
2424
"test": "vitest"
2525
},
2626
"peerDependencies": {

packages/hypergraph/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
},
3636
"sideEffects": [],
3737
"scripts": {
38-
"build": "tsc -b tsconfig.build.json && babel dist --plugins annotate-pure-calls --out-dir dist --source-maps && node ../../scripts/package.mjs",
38+
"build": "tsc -b --force tsconfig.build.json && babel dist --plugins annotate-pure-calls --out-dir dist --source-maps && node ../../scripts/package.mjs",
3939
"test": "vitest"
4040
},
4141
"devDependencies": {

pnpm-workspace.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ packages:
22
- apps/*
33
- packages/*
44
- docs
5+
56
onlyBuiltDependencies:
67
- "@prisma/client"
78
- "@prisma/engines"
@@ -11,3 +12,7 @@ onlyBuiltDependencies:
1112
- core-js
1213
- core-js-pure
1314
- prisma
15+
- ./test3
16+
- ./test4
17+
- ./test5
18+
- ./test6

0 commit comments

Comments
 (0)