diff --git a/package.json b/package.json index 982fe9b..47b7ccd 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,7 @@ "test:watch": "jest src/ test/ --watch", "start": "node bin/make-workout.js", "format:js": "prettier --write src/", - "build": "tsc", + "build": "tsc --project tsconfig.release.json", "prepublish": "yarn build" }, "main": "dist/index.js", diff --git a/tsconfig.json b/tsconfig.json index 234824e..b119109 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -12,6 +12,7 @@ "declaration": true, }, "include": [ - "src/**/*" + "src/**/*", + "test/**/*" ], } diff --git a/tsconfig.release.json b/tsconfig.release.json new file mode 100644 index 0000000..60ac411 --- /dev/null +++ b/tsconfig.release.json @@ -0,0 +1,9 @@ +{ + "extends": "./tsconfig.json", + "include": [ + "src/**/*", + ], + "exclude": [ + "**/*.test.ts", + ], +}