diff --git a/.gitignore b/.gitignore index 971d914..114dc00 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,4 @@ -types +**/*.d.ts node_modules .nyc_output coverage diff --git a/package.json b/package.json index 6e05b9c..25fd2d5 100644 --- a/package.json +++ b/package.json @@ -12,8 +12,7 @@ "type": "commonjs", "main": "lib/index.js", "files": [ - "lib/**/*", - "types/**/*" + "lib/**/*" ], "types": "types/index.d.ts", "engines": { @@ -40,7 +39,7 @@ "typescript": "^5.0.2" }, "scripts": { - "build": "tsc", + "build": "tsc --build --clean && tsc --build", "test": "node --test", "format-code": "prettier --write \"*.js\" \"(test|lib)/*.js\"", "format-code-staged": "pretty-quick --staged --pattern \"*.js\" --pattern \"(test|lib)/*.js\"", diff --git a/tsconfig.json b/tsconfig.json index dd38069..ae7ca1a 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -2,7 +2,6 @@ "include": ["lib/**/*.js"], "exclude": ["coverage/", "node_modules/", "test/"], "compilerOptions": { - "outDir": "types", "checkJs": true, "declaration": true, "emitDeclarationOnly": true,