Skip to content

Commit

Permalink
fix: removed test files from compiled output
Browse files Browse the repository at this point in the history
  • Loading branch information
laurencestokes committed Mar 30, 2023
1 parent bd65178 commit fad0f8e
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"main": "dist/typekeeper.js",
"types": "dist/typekeeper.d.ts",
"scripts": {
"build": "tsc --project tsconfig.json",
"prebuild": "rm -rf ./dist",
"build": "tsc --project tsconfig-build.json",
"lint": "eslint --ignore-path .eslintignore --ext .js,.ts,.tsx .",
"check-types": "tsc",
"prettier": "prettier --ignore-path .eslintignore \"**/*.+(js|json|ts|tsx)\"",
Expand Down
23 changes: 23 additions & 0 deletions tsconfig-build.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"compilerOptions": {
"baseUrl": ".",
"paths": {},
"target": "es6",
"lib": ["dom", "dom.iterable", "esnext"],
"allowJs": true,
"skipLibCheck": true,
"strict": true,
"forceConsistentCasingInFileNames": true,
"esModuleInterop": true,
"module": "esnext",
"moduleResolution": "node",
"resolveJsonModule": true,
"isolatedModules": true,
"jsx": "preserve",
"types": ["jest", "node"],
"outDir": "dist",
"declaration": true
},
"include": ["**/*.ts"],
"exclude": ["node_modules", "dist", "jest.config.js", "**/*.test.ts", "**/*.spec.ts"]
}

0 comments on commit fad0f8e

Please sign in to comment.