Skip to content

Commit

Permalink
Add pregenerate scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
timostamm committed Oct 16, 2023
1 parent 6579594 commit 4f05f33
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@ $(GEN)/protobuf-conformance: $(BUILD)/upstream-protobuf $(BUILD)/protoc-gen-es
@touch $(@)

$(GEN)/protobuf-example: $(BUILD)/protoc-gen-es packages/protobuf-example/buf.gen.yaml $(shell find packages/protobuf-example -name '*.proto')
npm run -w packages/protobuf-example clean
npm run -w packages/protobuf-example generate
@mkdir -p $(@D)
@touch $(@)
Expand Down
1 change: 1 addition & 0 deletions packages/protobuf-example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"build": "../../node_modules/typescript/bin/tsc --project tsconfig.json --module ES2015 --verbatimModuleSyntax --outDir ./dist/esm --declaration --declarationDir ./dist/types",
"add-person": "node dist/esm/add-person.js addressbook.bin",
"list-people": "node dist/esm/list-people.js addressbook.bin",
"pregenerate": "rm -rf src/gen",
"generate": "buf generate"
},
"type": "module",
Expand Down
2 changes: 1 addition & 1 deletion packages/protoplugin-example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
"private": true,
"description": "",
"scripts": {
"clean": "rm -rf src/gen",
"build": "../../node_modules/typescript/bin/tsc --noEmit",
"start": "npx esbuild src/index.ts --serve=localhost:3000 --servedir=www --outdir=www --bundle --global-name=eliza",
"test": "node --loader tsx --test test/*.ts",
"pregenerate": "rm -rf src/gen",
"generate": "buf generate buf.build/connectrpc/eliza"
},
"license": "Apache-2.0",
Expand Down

0 comments on commit 4f05f33

Please sign in to comment.