diff --git a/Makefile b/Makefile index 53b5c083c..ea6cc7bdf 100644 --- a/Makefile +++ b/Makefile @@ -74,7 +74,7 @@ $(BUILD)/protoplugin-test: $(BUILD)/protoplugin $(GEN)/protoplugin-test node_mod $(BUILD)/protoplugin-example: $(BUILD)/protoc-gen-es packages/protoplugin-example/buf.gen.yaml node_modules tsconfig.base.json packages/protoplugin-example/tsconfig.json $(shell find packages/protoplugin-example/src -name '*.ts') npm run -w packages/protoplugin-example clean - npx -w packages/protoplugin-example buf generate buf.build/connectrpc/eliza + npm run -w packages/protoplugin-example generate npm run -w packages/protoplugin-example build @mkdir -p $(@D) @touch $(@) diff --git a/packages/protoplugin-example/package.json b/packages/protoplugin-example/package.json index 9ee49d261..506d3ec95 100644 --- a/packages/protoplugin-example/package.json +++ b/packages/protoplugin-example/package.json @@ -7,7 +7,8 @@ "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" + "test": "node --loader tsx --test test/*.ts", + "generate": "buf generate buf.build/connectrpc/eliza" }, "license": "Apache-2.0", "dependencies": {