Skip to content

Commit

Permalink
chore: ensure tests are type-checked but not published
Browse files Browse the repository at this point in the history
  • Loading branch information
bmish committed Nov 18, 2022
1 parent b6af114 commit bcdb8ce
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"lint:package-json-sorting": "sort-package-json --check",
"lint:package-json-sorting:fix": "sort-package-json package.json",
"lint:types": "tsc",
"prepublishOnly": "tsc",
"prepublishOnly": "rm -rf dist && tsc --project tsconfig.build.json",
"release": "release-it",
"test": "node --max-old-space-size=4096 --experimental-vm-modules node_modules/jest/bin/jest.js --colors --coverage"
},
Expand Down
6 changes: 6 additions & 0 deletions tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"extends": "./tsconfig.json",
"exclude": [
"test/**/*.ts"
]
}
3 changes: 2 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
},
"include": [
"bin/**/*",
"lib/**/*"
"lib/**/*",
"test/**/*"
]
}

0 comments on commit bcdb8ce

Please sign in to comment.