@berachain/graphql 0.1.0-alpha.8 → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -8,14 +8,10 @@ Don't use this package unless you're from the Berachain team. API is unstable an
8
8
 
9
9
  ## Development
10
10
 
11
- The package is published as `@berachain/graphql`, however you'll find the package name locally as `@berachain/graphql-local`. This is because `pnpm` always prefers local packages if they match the version required by consumers, however we don't want this package to build on every dapp build. In order to publish the package with the public name, `prepublishOnly` and `postpublish` scripts take care of publishing the package without the `-local` suffix.
12
-
13
11
  If you want to test locally (and without publishing) how changes to this package affect dapps, you can:
14
- - rename the package without the `-local` suffix
15
- - run `pnpm i` and build the package
16
- - test your changes
17
- - publish the package and update the version in `pnpm-workspace.yaml`
18
- - add the `-local` suffix back to the package. A CI check will make sure we don't merge this otherwise.
19
12
 
20
- This needs to be consumed as npm package from dapps and CI because the codegen script might fail due to request
21
- errors on external APIs.
13
+ - go on the app you want to test and run `pn i @berachain/graphql@workspace:`
14
+ - build the package and test it out
15
+ - bump the version on this package and run `pnpm publish`
16
+ - update the version in the `internal` catalog on `pnpn-workspace.yml`
17
+ - run `pnpm i @berachain/graphql@catalog:internal` the package will be unlinked