diff --git a/javascript/README.md b/javascript/README.md index 7860e96..d322bad 100644 --- a/javascript/README.md +++ b/javascript/README.md @@ -19,7 +19,6 @@ To install - Install the protobuf compiler (protoc) from [here](https://grpc.io/docs/protoc-installation/#install-pre-compiled-binaries-any-os) (Use the pre-compiled binaries, the `protoc` package in the package manager is outdated) - Install go -- Run `npm i` - - This will install the Node.js dependencies which are used to generate the Go and JavaScript bindings - - The "postinstall" script will also install the Go dependencies required +- Run `npm i` to install the JS dependencies needed for building +- Run `npm run go:install` to install the Go dependencies - Run `npm run build` diff --git a/javascript/package.json b/javascript/package.json index 5e0f13c..77bf75d 100644 --- a/javascript/package.json +++ b/javascript/package.json @@ -1,6 +1,6 @@ { "name": "@pretendonetwork/grpc", - "version": "2.1.0", + "version": "2.1.1", "license": "AGPL-3.0-only", "scripts": { "breaking:gh_actions": "buf breaking --against=.git#ref=master --error-format=github-actions=main", @@ -12,11 +12,11 @@ "format": "buf format -w", "generate:debug": "buf generate --debug && tsc", "generate": "buf generate && tsc", - "go:install:protoc-gen-go-grpc": "go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest", - "go:install:protoc-gen-go": "go install google.golang.org/protobuf/cmd/protoc-gen-go@latest", + "install:go": "npm-run-all install:go:*", + "install:go:protoc-gen-go-grpc": "go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest", + "install:go:protoc-gen-go": "go install google.golang.org/protobuf/cmd/protoc-gen-go@latest", "lint:gh_actions": "buf lint --error-format=github-actions", - "lint": "buf lint", - "postinstall": "npm-run-all go:install:*" + "lint": "buf lint" }, "devDependencies": { "@bufbuild/buf": "^1.46.0",