Skip to content

Commit

Permalink
build: 👷 Include generated files in build
Browse files Browse the repository at this point in the history
Make sure the generated files are included in the build & ignore the test snap files in the build
  • Loading branch information
TheMerski committed Jul 28, 2023
1 parent 9f7379f commit 3c833d4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"typescript": "^5.1.6"
},
"scripts": {
"build": "tsc",
"build": "tsc && mkdir -p build/generated && cp src/generated/* build/generated/",
"genProto": "protoc --plugin=protoc-gen-grpc=./node_modules/.bin/grpc_tools_node_protoc_plugin -I src/proto --js_out=import_style=commonjs,binary:./src/generated ./src/proto/*.proto && protoc --plugin=protoc-gen-ts=./node_modules/.bin/protoc-gen-ts -I src/proto --ts_out=./src/generated ./src/proto/*.proto",
"test": "jest",
"lint": "prettier --check ."
Expand Down
3 changes: 2 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
],
"exclude": [
"node_modules",
"**/*.test.ts"
"**/*.test.ts",
"**/*.test.ts.snap"
]
}

0 comments on commit 3c833d4

Please sign in to comment.