Files
hub-monorepo/package.json
Sanjay 920f6c0251 fix: Fix grpcWeb import in hub-web (#2006)
## Motivation

We accidentally lost the code that was fixing up bad protoc js file
generation for hub-web. Bring it back and fix compilation.

## Change Summary

Describe the changes being made in 1-2 concise sentences.

## Merge Checklist

_Choose all relevant options below by adding an `x` now or at any time
before submitting for review_

- [x] PR title adheres to the [conventional
commits](https://www.conventionalcommits.org/en/v1.0.0/) standard
- [x] PR has a
[changeset](https://github.com/farcasterxyz/hub-monorepo/blob/main/CONTRIBUTING.md#35-adding-changesets)
- [x] PR has been tagged with a change label(s) (i.e. documentation,
feature, bugfix, or chore)
- [ ] PR includes
[documentation](https://github.com/farcasterxyz/hub-monorepo/blob/main/CONTRIBUTING.md#32-writing-docs)
if necessary.
- [x] All [commits have been
signed](https://github.com/farcasterxyz/hub-monorepo/blob/main/CONTRIBUTING.md#22-signing-commits)

## Additional Context

If this is a relatively large or complex change, provide more details
here that will help reviewers


<!-- start pr-codex -->

---

## PR-Codex overview
This PR updates the `hub-web` package to fix the `grpcWeb` import and
replaces `grpc` with `grpcWeb` in the codebase.

### Detailed summary
- Updated `hub-web` package to fix `grpcWeb` import
- Replaced `grpc` with `grpcWeb` in the codebase for consistency

> The following files were skipped due to too many changes:
`packages/hub-web/src/generated/rpc.ts`

>  Ask PR-Codex anything about this PR by commenting with `/codex {your
question}`

<!-- end pr-codex -->
2024-05-16 15:25:44 -07:00

51 lines
1.7 KiB
JSON

{
"name": "hubble",
"description": "A monorepo for the Farcaster Hub",
"version": "0.0.0",
"private": true,
"packageManager": "yarn@1.22.19",
"workspaces": ["apps/*", "packages/*"],
"scripts": {
"build": "./node_modules/.bin/turbo run build",
"clean": "./node_modules/.bin/turbo run clean",
"dev": "./node_modules/.bin/turbo run dev --parallel",
"protoc": "cd packages/core && yarn protoc && cd ../hub-nodejs && yarn protoc && cd ../hub-web && yarn protoc && sed -i '' 's/{ grpc }/grpcWeb/g; s/grpc\\./grpcWeb.grpc./g' src/generated/rpc.ts",
"test": "./node_modules/.bin/turbo run test",
"test:ci": "./node_modules/.bin/turbo run test:ci -- --passWithNoTests",
"lint": "./node_modules/.bin/turbo run lint --parallel",
"lint:ci": "./node_modules/.bin/turbo run lint:ci --parallel",
"prepare": "husky install",
"version-packages": "changeset version --ignore @farcaster/hubble",
"release-packages": "yarn build && changeset publish",
"release-all": "yarn build && changeset publish && changeset tag"
},
"engines": {
"npm": ">=8.0.0",
"node": ">=18.7"
},
"devDependencies": {
"@changesets/changelog-git": "^0.1.14",
"@changesets/cli": "^2.26.0",
"@swc/cli": "^0.1.57",
"@swc/core": "^1.3.64",
"@swc/jest": "^0.2.26",
"@types/jest": "^29.0.2",
"@types/node": "^18.7.14",
"husky": "^8.0.3",
"jest": "^29.6.1",
"lint-staged": "^13.2.2",
"rimraf": "^5.0.1",
"ts-node": "^10.9.1",
"tsup": "^6.5.0",
"turbo": "1.10.3",
"typescript": "^5.0.2"
},
"lint-staged": {
"*.ts": ["biome check"],
"*.rs": ["rustfmt --check"]
},
"dependencies": {
"semver": "^7.5.4"
}
}