Skip to content

Commit a475cd8

Browse files
authored
Merge pull request #6 from Q42Philips/fix/include-generated-files
build: 👷 Include generated files in build
2 parents 9f7379f + 3c833d4 commit a475cd8

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"typescript": "^5.1.6"
2323
},
2424
"scripts": {
25-
"build": "tsc",
25+
"build": "tsc && mkdir -p build/generated && cp src/generated/* build/generated/",
2626
"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",
2727
"test": "jest",
2828
"lint": "prettier --check ."

tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
],
2626
"exclude": [
2727
"node_modules",
28-
"**/*.test.ts"
28+
"**/*.test.ts",
29+
"**/*.test.ts.snap"
2930
]
3031
}

0 commit comments

Comments
 (0)