diff --git a/package.json b/package.json index 414217209..3886e2893 100644 --- a/package.json +++ b/package.json @@ -18,6 +18,7 @@ }, "license": "MIT", "main": "dist/htmlhint.js", + "types": "dist/core/core.d.ts", "module": "dist/core/core.js", "bin": { "htmlhint": "./bin/htmlhint" diff --git a/src/core/core.ts b/src/core/core.ts index 6299880f3..9fa27cf26 100644 --- a/src/core/core.ts +++ b/src/core/core.ts @@ -162,4 +162,4 @@ Object.keys(HTMLRules).forEach((key) => { HTMLHint.addRule(HTMLRules[key]) }) -export { HTMLRules, Reporter, HTMLParser } +export { HTMLRules, Reporter, HTMLParser, Hint, Rule, Ruleset } diff --git a/tsconfig.json b/tsconfig.json index 634c8c548..b115f616c 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -8,7 +8,8 @@ "rootDir": "src", "outDir": "dist", "strict": true, - "removeComments": true + "removeComments": true, + "declaration": true }, "include": ["src"], "exclude": ["node_modules"]