|
4 | 4 | "bugs": "https://github.com/remarkjs/react-markdown/issues",
|
5 | 5 | "contributors": [],
|
6 | 6 | "devDependencies": {
|
| 7 | + "@types/react": "^18.0.0", |
| 8 | + "@types/react-dom": "^18.0.0", |
7 | 9 | "@wooorm/starry-night": "^3.0.0",
|
8 | 10 | "cssnano": "^7.0.0",
|
9 | 11 | "esbuild": "^0.24.0",
|
|
26 | 28 | "remark-toc": "^9.0.0",
|
27 | 29 | "stylelint": "^16.0.0",
|
28 | 30 | "stylelint-config-standard": "^36.0.0",
|
| 31 | + "type-coverage": "^2.0.0", |
| 32 | + "typescript": "^5.0.0", |
29 | 33 | "xo": "^0.59.0"
|
30 | 34 | },
|
31 | 35 | "license": "MIT",
|
|
48 | 52 | "private": true,
|
49 | 53 | "repository": "remarkjs/react-markdown",
|
50 | 54 | "scripts": {
|
| 55 | + "build": "tsc --build --clean && tsc --build && type-coverage", |
51 | 56 | "generate:css": "postcss --output dest/index.css -- src/index.css",
|
52 | 57 | "generate:html": "rehype --output dest/ --quiet --use rehype-preset-minify --use rehype-prevent-favicon-request -- src/",
|
53 | 58 | "generate:js:module": "esbuild src/index.js --bundle --conditions=browser,production --define:process.env.NODE_ENV=\\\"production\\\" --format=esm --loader:.js=jsx --log-level=warning --minify --outfile=dest/index.module.js --target=es2020",
|
54 | 59 | "generate:js:nomodule": "esbuild src/index.js --bundle --conditions=browser,production --define:process.env.NODE_ENV=\\\"production\\\" --loader:.js=jsx --log-level=warning --minify --outfile=dest/index.nomodule.js --target=es6",
|
55 | 60 | "generate:js": "npm run generate:js:module && npm run generate:js:nomodule",
|
56 | 61 | "generate": "npm run generate:css && npm run generate:html && npm run generate:js",
|
57 | 62 | "format": "prettier --log-level warn --write -- . && stylelint --fix src/index.css && xo --fix",
|
58 |
| - "test": "npm run format && npm run build" |
| 63 | + "test": "npm run build && npm run format && npm run generate" |
59 | 64 | },
|
60 | 65 | "stylelint": {
|
61 | 66 | "extends": "stylelint-config-standard"
|
|
0 commit comments