diff --git a/.eslintignore b/.eslintignore deleted file mode 100644 index 8b5bc234..00000000 --- a/.eslintignore +++ /dev/null @@ -1,2 +0,0 @@ -coverage/ -react-markdown.min.js diff --git a/.prettierignore b/.prettierignore index 95769e01..cebe81f8 100644 --- a/.prettierignore +++ b/.prettierignore @@ -1,4 +1,2 @@ coverage/ -*.html *.md -react-markdown.min.js diff --git a/package.json b/package.json index e488f501..82497e1c 100644 --- a/package.json +++ b/package.json @@ -71,12 +71,10 @@ "type": "module", "main": "index.js", "types": "index.d.ts", - "unpkg": "react-markdown.min.js", "files": [ "lib/", "index.d.ts", - "index.js", - "react-markdown.min.js" + "index.js" ], "dependencies": { "@types/hast": "^3.0.0", @@ -118,7 +116,7 @@ "xo": "^0.56.0" }, "scripts": { - "build": "tsc --build --clean && tsc --build && type-coverage && esbuild index.js --bundle --minify --target=es2015 --outfile=react-markdown.min.js --global-name=Markdown --banner:js=\"(function (g, f) {typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = f() : typeof define === 'function' && define.amd ? define([], f) : (g = typeof globalThis !== 'undefined' ? globalThis : g || self, g.Markdown = f()); }(this, (function () { 'use strict';\" --footer:js=\"return Markdown;})));\"", + "build": "tsc --build --clean && tsc --build && type-coverage", "format": "remark . --frail --output --quiet && prettier . --log-level warn --write && xo --fix", "prepack": "npm run build && npm run format", "test": "npm run build && npm run format && npm run test-coverage", diff --git a/tsconfig.json b/tsconfig.json index 7baf4f67..06e5468a 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -11,6 +11,6 @@ "strict": true, "target": "es2020" }, - "exclude": ["coverage/", "node_modules/", "**/*.min.js"], + "exclude": ["coverage/", "node_modules/"], "include": ["**/*.js", "**/*.jsx", "lib/complex-types.d.ts"] }