/
package.json
112 lines (112 loc) · 3.19 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
{
"name": "@uiw/react-markdown-preview",
"version": "4.1.1",
"description": "React component preview markdown text in web browser. The minimal amount of CSS to replicate the GitHub Markdown style.",
"homepage": "https://uiwjs.github.io/react-markdown-preview",
"main": "lib/index.js",
"module": "esm/index.js",
"scripts": {
"prepare": "npm run build && husky install",
"doc": "kkt build --app-src ./website",
"start": "kkt start --app-src ./website",
"css:build": "compile-less -d src -o esm",
"css:watch": "compile-less -d src -o esm --watch",
"css:build:dist": "compile-less -d src --combine markdown.css --rm-global",
"bundle": "ncc build src/index.tsx --target web --filename markdown",
"bundle:min": "ncc build src/index.tsx --target web --filename markdown --minify",
"watch": "tsbb watch & npm run css:watch",
"build": "tsbb build && npm run css:build && npm run css:build:dist",
"prettier": "prettier --write '**/*.{js,jsx,tsx,ts,less,md,json}'",
"pretty-quick": "pretty-quick --staged",
"test": "tsbb test --env=jsdom",
"coverage": "tsbb test --env=jsdom --coverage"
},
"repository": {
"type": "git",
"url": "https://github.com/uiwjs/react-markdown-preview.git"
},
"author": "kenny wang <wowohoo@qq.com>",
"license": "MIT",
"files": [
"dist",
"lib",
"esm",
"markdown.css",
"src/**/*.{ts,tsx,less}"
],
"keywords": [
"react",
"markdown",
"prismjs",
"react-markdown"
],
"jest": {
"coverageReporters": [
"lcov",
"json-summary"
],
"transformIgnorePatterns": [
"<rootDir>/node_modules/?!(.*)"
]
},
"peerDependencies": {
"react": ">=16.8.0",
"react-dom": ">=16.8.0"
},
"dependencies": {
"@babel/runtime": "^7.17.2",
"@uiw/copy-to-clipboard": "~1.0.12",
"react-markdown": "~8.0.0",
"rehype-attr": "~2.0.7",
"rehype-autolink-headings": "~6.1.1",
"rehype-ignore": "^1.0.1",
"rehype-prism-plus": "~1.5.0",
"rehype-raw": "^6.1.1",
"rehype-rewrite": "~3.0.6",
"rehype-slug": "~5.0.1",
"remark-gfm": "~3.0.1",
"unist-util-visit": "^4.1.0"
},
"devDependencies": {
"@kkt/less-modules": "~7.2.0",
"@kkt/ncc": "^1.0.13",
"@kkt/raw-modules": "~7.2.0",
"@kkt/scope-plugin-options": "~7.2.0",
"@types/react": "~18.0.9",
"@types/react-dom": "~18.0.3",
"@types/react-test-renderer": "~18.0.0",
"@uiw/react-back-to-top": "^1.2.0",
"@uiw/react-codesandbox": "~1.1.4",
"@uiw/react-github-corners": "~1.5.3",
"@uiw/react-shields": "~1.1.2",
"@uiw/reset.css": "~1.0.5",
"@wcj/dark-mode": "~1.0.9",
"compile-less-cli": "~1.8.11",
"husky": "~8.0.0",
"kkt": "~7.2.0",
"prettier": "^2.7.1",
"pretty-quick": "~3.1.3",
"react": "~18.2.0",
"react-dom": "~18.2.0",
"react-test-renderer": "~18.2.0",
"tsbb": "~3.7.0"
},
"eslintConfig": {
"extends": "react-app"
},
"engines": {
"node": "^12.20.0 || ^14.13.1 || >=16.0.0"
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
}
}