Skip to content

Commit df9e7eb

Browse files
authored
publish(create-hypergraph): add typesync script to templates. bump templates to latest hypergraph versions (#476)
1 parent 9ec297b commit df9e7eb

3 files changed

Lines changed: 15 additions & 2 deletions

File tree

.changeset/solid-shirts-mate.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
"create-hypergraph": minor
3+
---
4+
5+
Add typesync script to templates. Bump both template @graphprotocol/hypergraph and @graphprotocol/hypergraph-react packages to 0.6.0 with typesync
6+
7+
Running typesync:
8+
9+
1. scaffold a hypergraph app: `pnpm create hypergraph@latest --template vite-react --package-manager pnpm my-hypergraph-app`
10+
2. approve builds: `pnpm approve-builds`
11+
3. run typesync: `pnpm run typesync`

apps/create-hypergraph/template-nextjs/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111
"lint:fix": "next lint --fix",
1212
"format": "prettier . --check",
1313
"format:fix": "prettier . --write --list-different",
14-
"prebuild": "pnpm --workspace-concurrency 1 --filter @graphprotocol/hypergraph run build && pnpm --workspace-concurrency 1 --filter @graphprotocol/hypergraph-react run build"
14+
"prebuild": "pnpm --workspace-concurrency 1 --filter @graphprotocol/hypergraph run build && pnpm --workspace-concurrency 1 --filter @graphprotocol/hypergraph-react run build",
15+
"typesync": "hg typesync --open"
1516
},
1617
"type": "module",
1718
"dependencies": {

apps/create-hypergraph/template-vite-react/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
"build": "tsc -b && vite build",
99
"dev": "vite --force",
1010
"preview": "vite preview",
11-
"typecheck": "tsc --noEmit"
11+
"typecheck": "tsc --noEmit",
12+
"typesync": "hg typesync --open"
1213
},
1314
"dependencies": {
1415
"@graphprotocol/hypergraph": "workspace:*",

0 commit comments

Comments
 (0)