Skip to content

Commit 45cefef

Browse files
authored
improve-publishing (#223)
1 parent 4f5967b commit 45cefef

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,17 @@ pnpm dev
4444

4545
```sh
4646
pnpm up --interactive --latest -r
47+
```
48+
49+
## Publishing
50+
51+
```sh
52+
# publish hypergraph
53+
pnpm build
54+
cd packages/hypergraph/publish
55+
pnpm publish
56+
# publish hypergraph-react
57+
pnpm build
58+
cd packages/hypergraph-react/publish
59+
pnpm publish
4760
```

scripts/package.mjs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ if (Fs.existsSync(`${pkg}/LICENSE`)) {
1919

2020
// TODO: Generate this a bit smarter.
2121
const pkgJson = JSON.parse(Fs.readFileSync(`${pkg}/package.json`, 'utf-8'));
22+
const peerDependencies = pkgJson.peerDependencies;
23+
if (peerDependencies?.['@graphprotocol/hypergraph']) {
24+
peerDependencies['@graphprotocol/hypergraph'] = '*';
25+
}
2226
const publishPkgJson = {
2327
name: pkgJson.name,
2428
version: pkgJson.version,

0 commit comments

Comments
 (0)