build .d.ts files

This commit is contained in:
Andre Staltz 2023-06-25 11:42:13 +03:00
parent 2d0cd86dae
commit 8e026c9028
No known key found for this signature in database
GPG Key ID: 9EDE23EA7E8A4890
3 changed files with 4 additions and 2 deletions

1
.gitignore vendored
View File

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

View File

@ -38,7 +38,7 @@
"typescript": "^5.0.2"
},
"scripts": {
"build": "tsc",
"build": "rm lib/**/*.d.ts && 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

@ -3,7 +3,8 @@
"exclude": ["coverage/", "node_modules/", "test/"],
"compilerOptions": {
"checkJs": true,
"noEmit": true,
"declaration": true,
"emitDeclarationOnly": true,
"exactOptionalPropertyTypes": true,
"forceConsistentCasingInFileNames": true,
"lib": ["es2021", "dom"],