Skip to content

Commit

Permalink
fix: exclude test files from build (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
smellai committed Oct 5, 2022
1 parent 913bcd9 commit 00517e8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
"name": "typescript-npm-package-template",
"version": "0.0.0-development",
"description": "A template for creating npm packages using TypeScript and VSCode",
"main": "./lib/src/index.js",
"main": "./lib/index.js",
"files": [
"lib/**/*"
],
"scripts": {
"build": "tsc",
"build": "tsc --project tsconfig.build.json",
"clean": "rm -rf ./lib/",
"cm": "cz",
"lint": "eslint ./src/ --fix",
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/**/*.spec.ts",
]
}

0 comments on commit 00517e8

Please sign in to comment.