another try with .d.ts

This commit is contained in:
Andre Staltz 2023-06-25 16:50:34 +03:00
parent 50cc8382ff
commit 2f829a14f0
No known key found for this signature in database
GPG Key ID: 9EDE23EA7E8A4890
3 changed files with 3 additions and 5 deletions

2
.gitignore vendored
View File

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

View File

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

View File

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