another folder for .d.ts files

This commit is contained in:
Andre Staltz 2023-06-25 16:39:43 +03:00
parent 426d2b4535
commit 5f1df07ec2
No known key found for this signature in database
GPG Key ID: 9EDE23EA7E8A4890
3 changed files with 6 additions and 3 deletions

2
.gitignore vendored
View File

@ -1,4 +1,4 @@
lib/**/*.d.ts
types
node_modules
.nyc_output
coverage

View File

@ -12,8 +12,10 @@
"type": "commonjs",
"main": "lib/index.js",
"files": [
"lib/**/*"
"lib/**/*",
"types/**/*"
],
"types": "types/index.d.ts",
"engines": {
"node": ">=16"
},
@ -38,7 +40,7 @@
"typescript": "^5.0.2"
},
"scripts": {
"build": "rm -f lib/**/*.d.ts && tsc",
"build": "tsc",
"test": "node --test",
"format-code": "prettier --write \"*.js\" \"(test|lib)/*.js\"",
"format-code-staged": "pretty-quick --staged --pattern \"*.js\" --pattern \"(test|lib)/*.js\"",

View File

@ -2,6 +2,7 @@
"include": ["lib/**/*.js"],
"exclude": ["coverage/", "node_modules/", "test/"],
"compilerOptions": {
"outDir": "types",
"checkJs": true,
"declaration": true,
"emitDeclarationOnly": true,