Skip to content

Commit

Permalink
Ignore tests in build
Browse files Browse the repository at this point in the history
  • Loading branch information
etienne-dldc committed Jun 24, 2021
1 parent 3e6580e commit bdc6f01
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,11 @@
"dist"
],
"scripts": {
"build": "tsc",
"build": "tsc -p ./tsconfig.build.json",
"lint": "ts-standard",
"typecheck": "tsc --noEmit",
"lint:fix": "ts-standard --fix",
"prepublish": "tsc",
"prepublish": "yarn build",
"release": "yarn test && yarn build && np",
"test": "ts-standard && c8 --reporter=html --reporter=text ava",
"test:watch": "ava --watch"
Expand Down
5 changes: 5 additions & 0 deletions tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"$schema": "https://json.schemastore.org/tsconfig",
"extends": "./tsconfig.json",
"exclude": ["src/**/*.test.ts", "src/**/*.test.tsx"]
}
1 change: 1 addition & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"$schema": "https://json.schemastore.org/tsconfig",
"compilerOptions": {
"target": "es5",
"module": "ES2020",
Expand Down

0 comments on commit bdc6f01

Please sign in to comment.