Skip to content

Commit

Permalink
[hot fix] add generated type declarations to build step (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
sporkspatula authored Feb 25, 2021
1 parent 10ac24a commit d29d1c4
Show file tree
Hide file tree
Showing 2 changed files with 216 additions and 9 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"license": "UNLICENSED",
"scripts": {
"clean": "trash dist",
"build": "yarn clean && tsc && cp -R schemas dist",
"build": "yarn clean && tsc && cp -R schemas dist && cpy types/**/*.d.ts dist --no-overwrite --parents",
"test": "jest",
"codegen": "json2ts -i schemas/ -o types/",
"prepublish": "yarn codegen && yarn build"
Expand All @@ -28,6 +28,7 @@
},
"devDependencies": {
"@types/jest": "^26.0.20",
"cpy-cli": "^3.1.1",
"jest": "^26.6.3",
"json-schema-to-typescript": "^10.1.1",
"trash-cli": "^4.0.0",
Expand Down
Loading

0 comments on commit d29d1c4

Please sign in to comment.