|
12 | 12 | "css:build": "compile-less -d src -o esm",
|
13 | 13 | "css:watch": "compile-less -d src -o esm --watch",
|
14 | 14 | "css:build:dist": "compile-less -d src --combine markdown.css --rm-global",
|
| 15 | + "bundle": "ncc build src/index.tsx --target web --filename markdown", |
| 16 | + "bundle:min": "ncc build src/index.tsx --target web --filename markdown --minify", |
15 | 17 | "watch": "tsbb watch & npm run css:watch",
|
16 | 18 | "build": "tsbb build && npm run css:build && npm run css:build:dist",
|
17 | 19 | "prettier": "prettier --write '**/*.{js,jsx,tsx,ts,less,md,json}'",
|
|
26 | 28 | "author": "kenny wang <[email protected]>",
|
27 | 29 | "license": "MIT",
|
28 | 30 | "files": [
|
| 31 | + "dist", |
29 | 32 | "lib",
|
30 | 33 | "esm",
|
31 | 34 | "markdown.css",
|
|
38 | 41 | "react-markdown"
|
39 | 42 | ],
|
40 | 43 | "jest": {
|
| 44 | + "coverageReporters": [ |
| 45 | + "lcov", |
| 46 | + "json-summary" |
| 47 | + ], |
41 | 48 | "transformIgnorePatterns": [
|
42 | 49 | "<rootDir>/node_modules/?!(.*)"
|
43 | 50 | ]
|
|
47 | 54 | "react-dom": ">=16.8.0"
|
48 | 55 | },
|
49 | 56 | "dependencies": {
|
50 |
| - "@babel/runtime": "7.16.7", |
51 |
| - "@mapbox/rehype-prism": "0.8.0", |
52 |
| - "@uiw/copy-to-clipboard": "1.0.12", |
53 |
| - "react-markdown": "7.1.2", |
54 |
| - "rehype-attr": "2.0.7", |
55 |
| - "rehype-autolink-headings": "6.1.1", |
56 |
| - "rehype-raw": "6.1.1", |
57 |
| - "rehype-rewrite": "3.0.4", |
58 |
| - "rehype-slug": "5.0.1", |
59 |
| - "remark-gfm": "3.0.1" |
| 57 | + "@babel/runtime": "^7.17.2", |
| 58 | + "@mapbox/rehype-prism": "~0.8.0", |
| 59 | + "@uiw/copy-to-clipboard": "~1.0.12", |
| 60 | + "react-markdown": "~8.0.0", |
| 61 | + "rehype-attr": "~2.0.7", |
| 62 | + "rehype-autolink-headings": "~6.1.1", |
| 63 | + "rehype-raw": "~6.1.1", |
| 64 | + "rehype-rewrite": "~3.0.4", |
| 65 | + "rehype-slug": "~5.0.1", |
| 66 | + "remark-gfm": "~3.0.1" |
60 | 67 | },
|
61 | 68 | "devDependencies": {
|
62 |
| - "@kkt/less-modules": "7.0.5", |
63 |
| - "@kkt/raw-modules": "7.0.5", |
64 |
| - "@kkt/scope-plugin-options": "7.0.5", |
65 |
| - "@types/react": "17.0.38", |
66 |
| - "@types/react-dom": "17.0.11", |
67 |
| - "@types/react-test-renderer": "17.0.1", |
68 |
| - "@uiw/react-codesandbox": "1.1.4", |
69 |
| - "@uiw/react-github-corners": "1.5.3", |
70 |
| - "@uiw/react-shields": "1.1.2", |
71 |
| - "@uiw/reset.css": "1.0.5", |
72 |
| - "compile-less-cli": "1.8.11", |
73 |
| - "husky": "7.0.4", |
74 |
| - "kkt": "7.0.5", |
75 |
| - "prettier": "2.5.1", |
76 |
| - "pretty-quick": "3.1.3", |
77 |
| - "react": "17.0.2", |
78 |
| - "react-dom": "17.0.2", |
79 |
| - "react-test-renderer": "17.0.2", |
80 |
| - "tsbb": "3.5.4" |
| 69 | + "@kkt/less-modules": "~7.1.1", |
| 70 | + "@kkt/ncc": "~1.0.8", |
| 71 | + "@kkt/raw-modules": "~7.1.1", |
| 72 | + "@kkt/scope-plugin-options": "~7.1.1", |
| 73 | + "@types/react": "~17.0.39", |
| 74 | + "@types/react-dom": "~17.0.11", |
| 75 | + "@types/react-test-renderer": "~17.0.1", |
| 76 | + "@uiw/react-codesandbox": "~1.1.4", |
| 77 | + "@uiw/react-github-corners": "~1.5.3", |
| 78 | + "@uiw/react-shields": "~1.1.2", |
| 79 | + "@uiw/reset.css": "~1.0.5", |
| 80 | + "compile-less-cli": "~1.8.11", |
| 81 | + "husky": "~7.0.4", |
| 82 | + "kkt": "~7.1.5", |
| 83 | + "prettier": "~2.5.1", |
| 84 | + "pretty-quick": "~3.1.3", |
| 85 | + "react": "~17.0.2", |
| 86 | + "react-dom": "~17.0.2", |
| 87 | + "react-test-renderer": "~17.0.2", |
| 88 | + "tsbb": "~3.7.0" |
81 | 89 | },
|
82 | 90 | "eslintConfig": {
|
83 | 91 | "extends": "react-app"
|
|
0 commit comments