Skip to content

Commit

Permalink
Add npm ignore and directory for types in dist
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanvs committed Jul 18, 2024
1 parent 168537b commit 1c9b6e1
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.vscode
coverage
example
src
node_modules
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "Fast and reliable background jobs in Typescript",
"main": "./dist/cjs/index.js",
"module": "./dist/esm/index.js",
"types": "./dist/esm/*.d.ts",
"types": "./dist/types/index.d.ts",
"source": "./src/index.ts",
"scripts": {
"clean": "rimraf dist",
Expand Down
2 changes: 2 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"target": "ES2022",
"sourceMap": true,
"outDir": "./dist/esm",
"declarationDir": "./dist/types",
"baseUrl": "./",
"incremental": true,
"skipLibCheck": true,
Expand All @@ -20,5 +21,6 @@
"esModuleInterop": true,
"importHelpers": true
},
"include": ["src"],
"exclude": ["node_modules", "test", "dist", "**/*spec.ts"]
}

0 comments on commit 1c9b6e1

Please sign in to comment.