Commit 7840ec2a authored by David Sveningsson's avatar David Sveningsson
Browse files

feat: add `browser` entry point without cli classes

Does not fix all issues with running in a browser but at least it won't pull
dependencies such as `minimist`.
parent c89b41af
......@@ -18,7 +18,8 @@
},
"license": "MIT",
"author": "David Sveningsson <ext@sidvind.com>",
"main": "dist/shim.js",
"main": "dist/main.js",
"browser": "dist/browser.js",
"bin": {
"html-validate": "bin/html-validate.js"
},
......@@ -73,7 +74,8 @@
"src/**/*.ts",
"!src/**/*.spec.ts",
"!src/**/index.ts",
"!src/shim.ts",
"!src/main.ts",
"!src/browser.ts",
"!src/cli/html-validate.ts"
],
"preset": "@html-validate/jest-config",
......
......@@ -2,7 +2,6 @@
export { default as HtmlValidate } from "./htmlvalidate";
export { AttributeData } from "./parser";
export { CLI } from "./cli/cli";
export { Config, ConfigData, ConfigError, ConfigLoader, Severity } from "./config";
export { DynamicValue, HtmlElement, NodeClosed, TextNode } from "./dom";
export { UserError } from "./error";
......
/* used when calling require('htmlvalidate'); */
export * from "./browser";
export { CLI } from "./cli/cli";
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment