Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,17 @@ pnpm dev

```sh
pnpm up --interactive --latest -r
```

## Publishing

```sh
# publish hypergraph
pnpm build
cd packages/hypergraph/publish
pnpm publish
# publish hypergraph-react
pnpm build
cd packages/hypergraph-react/publish
pnpm publish
```
4 changes: 4 additions & 0 deletions scripts/package.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ if (Fs.existsSync(`${pkg}/LICENSE`)) {

// TODO: Generate this a bit smarter.
const pkgJson = JSON.parse(Fs.readFileSync(`${pkg}/package.json`, 'utf-8'));
const peerDependencies = pkgJson.peerDependencies;
if (peerDependencies?.['@graphprotocol/hypergraph']) {
peerDependencies['@graphprotocol/hypergraph'] = '*';
}
const publishPkgJson = {
name: pkgJson.name,
version: pkgJson.version,
Expand Down
Loading