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 19, 2022
1 parent dc9ba5f commit 49568c7
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
6 changes: 3 additions & 3 deletions package.json
Expand Up @@ -29,16 +29,16 @@
"README.md"
],
"scripts": {
"build": "tsc",
"build": "rm -rf dist && tsc --project tsconfig.build.json",
"lint": "npm-run-all --continue-on-error --aggregate-output --parallel \"lint:*\"",
"lint:docs": "markdownlint \"**/*.md\"",
"lint:js": "eslint --cache .",
"lint:js:fix": "npm-run-all \"lint:js -- --fix\"",
"lint:js:fix": "npm run lint:js -- --fix",
"lint:package-json": "npmPkgJsonLint .",
"lint:package-json-sorting": "sort-package-json --check",
"lint:package-json-sorting:fix": "sort-package-json package.json",
"lint:types": "tsc",
"prepublishOnly": "tsc",
"prepublishOnly": "npm run build",
"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
@@ -0,0 +1,6 @@
{
"extends": "./tsconfig.json",
"exclude": [
"test/**/*.ts"
]
}
3 changes: 2 additions & 1 deletion tsconfig.json
Expand Up @@ -31,6 +31,7 @@
},
"include": [
"bin/**/*",
"lib/**/*"
"lib/**/*",
"test/**/*"
]
}

0 comments on commit 49568c7

Please sign in to comment.