Skip to content

Commit 20436d6

Browse files
authored
Send initial yarn install stderr to /dev/null to avoid false warnings. (#87)
1 parent 4d3f7e9 commit 20436d6

File tree

5 files changed

+9
-4
lines changed

5 files changed

+9
-4
lines changed

.circleci/config.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
- v1-dependencies-{{ checksum "package.json" }}
1212
- v1-dependencies-
1313

14-
- run: yarn install || echo "ignore failure"
14+
- run: yarn install
1515
- run: ./pbjs.sh
1616
- run: ./integration/pbjs.sh
1717

.github/workflows/build.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
with:
2121
node-version: ${{ matrix.node-version }}
2222
- name: install dependencies
23-
run: yarn install || echo "ignore failure"
23+
run: yarn install
2424
- name: pbjs
2525
run: ./pbjs.sh
2626
- name: Prepare Integration

README.markdown

+1-1
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ Building
258258

259259
`ts-proto` does not use `pbjs` at runtime, but we do use it in the `ts-proto` build process (to bootstrap the types used to parse the incoming protobuf metadata types, as well as for the test suite to ensure the `ts-proto` implementations match the `ts-proto`).
260260

261-
After running `yarn install` (which will fail in `yarn test` on the first time), run `./pbjs.sh` to create the bootstrap types, and `./integration/pbjs.sh` to create the integration test types. These pbjs-generated files are not currently checked in.
261+
After running `yarn install`, run `./pbjs.sh` to create the bootstrap types, and `./integration/pbjs.sh` to create the integration test types. These pbjs-generated files are not currently checked in.
262262

263263
After this the tests should pass.
264264

package.json

-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
"protoc-gen-ts_proto": "./protoc-gen-ts_proto"
99
},
1010
"scripts": {
11-
"prepare": "yarn build && yarn test",
1211
"build": "yarn tsc",
1312
"setup": "./pbjs.sh && ./integration/pbjs.sh && ./integration/update-bins.sh && ./integration/codegen.sh",
1413
"test": "yarn jest -c jest.config.js",

publish.sh

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/usr/bin/env bash
2+
3+
yarn build
4+
(cd ./integration || exit; ./codegen.sh)
5+
yarn test
6+
yarn publish

0 commit comments

Comments
 (0)