ts-proto 1.98.0 → 1.99.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/CHANGELOG.md +7 -0
- package/README.markdown +14 -0
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
# [1.99.0](https://github.com/stephenh/ts-proto/compare/v1.98.0...v1.99.0) (2022-01-07)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* yarn watch updates (specified) tests when source files change ([#465](https://github.com/stephenh/ts-proto/issues/465)) ([275d0e7](https://github.com/stephenh/ts-proto/commit/275d0e7c61f3acb2b1fd670b1974e64dd49d6ff4))
|
|
7
|
+
|
|
1
8
|
# [1.98.0](https://github.com/stephenh/ts-proto/compare/v1.97.2...v1.98.0) (2022-01-06)
|
|
2
9
|
|
|
3
10
|
|
package/README.markdown
CHANGED
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
- [Table of contents](#table-of-contents)
|
|
14
14
|
- [Overview](#overview)
|
|
15
15
|
- [QuickStart](#quickstart)
|
|
16
|
+
- [Buf](#buf)
|
|
16
17
|
- [Goals](#goals)
|
|
17
18
|
- [Example Types](#example-types)
|
|
18
19
|
- [Highlights](#highlights)
|
|
@@ -84,6 +85,19 @@ This will generate `*.ts` source files for the given `*.proto` types.
|
|
|
84
85
|
|
|
85
86
|
If you want to package these source files into an npm package to distribute to clients, just run `tsc` on them as usual to generate the `.js`/`.d.ts` files, and deploy the output as a regular npm package.
|
|
86
87
|
|
|
88
|
+
## Buf
|
|
89
|
+
|
|
90
|
+
If you're using Buf, pass `strategy: all` in your `buf.gen.yaml` file ([docs](https://docs.buf.build/configuration/v1/buf-gen-yaml#strategy)).
|
|
91
|
+
|
|
92
|
+
```yaml
|
|
93
|
+
version: v1
|
|
94
|
+
plugins:
|
|
95
|
+
- name: ts
|
|
96
|
+
out: ../gen/ts
|
|
97
|
+
strategy: all
|
|
98
|
+
path: ../node_modules/ts-proto/protoc-gen-ts_proto
|
|
99
|
+
```
|
|
100
|
+
|
|
87
101
|
# Goals
|
|
88
102
|
|
|
89
103
|
- Idiomatic TypeScript/ES6 types
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ts-proto",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.99.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "build/plugin.js",
|
|
6
6
|
"repository": "github:stephenh/ts-proto",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"proto2pbjs:local": "integration/pbjs.sh",
|
|
20
20
|
"bin2ts:local": "integration/codegen.sh",
|
|
21
21
|
"test": "yarn jest -c jest.config.js --maxWorkers=2",
|
|
22
|
-
"prettier": "prettier --write {src,tests}/**/*.ts",
|
|
22
|
+
"prettier": "prettier --write {src,tests}/**/*.ts integration/*.ts",
|
|
23
23
|
"prettier:check": "prettier --list-different {src,tests}/**/*.ts",
|
|
24
24
|
"setup:docker": "docker-compose build",
|
|
25
25
|
"watch": "ts-node integration/watch.ts"
|