diff --git a/.gitignore b/.gitignore index ce8b256..59a47dd 100644 --- a/.gitignore +++ b/.gitignore @@ -1,8 +1,9 @@ coverage/ node_modules/ -lib/**/*.d.ts *.log +*.d.ts.map +*.d.ts .DS_Store -decode-entity.d.ts -test.d.ts yarn.lock + +!/index.d.ts diff --git a/package.json b/package.json index 96659cc..763e3ae 100644 --- a/package.json +++ b/package.json @@ -27,8 +27,8 @@ "types": "index.d.ts", "files": [ "lib/", - "index.js", - "index.d.ts" + "index.d.ts", + "index.js" ], "dependencies": { "@types/unist": "^2.0.0", diff --git a/tsconfig.json b/tsconfig.json index 1d22287..8866352 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,9 +1,8 @@ { - "include": ["**/**.js", "index.d.ts"], - "exclude": ["coverage", "node_modules"], "compilerOptions": { "checkJs": true, "declaration": true, + "declarationMap": true, "emitDeclarationOnly": true, "exactOptionalPropertyTypes": true, "forceConsistentCasingInFileNames": true, @@ -12,5 +11,7 @@ "newLine": "lf", "strict": true, "target": "es2020" - } + }, + "exclude": ["coverage", "node_modules"], + "include": ["**/**.js", "index.d.ts"] }