UNPKG

2.32 kBJSONView Raw
1{
2 "name": "prism-react-renderer",
3 "version": "1.3.2",
4 "description": "Renders highlighted Prism output using React",
5 "sideEffects": false,
6 "main": "dist/index.cjs.js",
7 "module": "dist/index.js",
8 "types": "index.d.ts",
9 "license": "MIT",
10 "repository": "https://github.com/FormidableLabs/prism-react-renderer",
11 "files": [
12 "index.d.ts",
13 "dist",
14 "prism",
15 "themes"
16 ],
17 "scripts": {
18 "prebuild": "patch-package",
19 "build": "rollup -c rollup.config.js",
20 "test": "jest",
21 "flow": "flow check",
22 "format": "prettier --write 'src/**/*.js'",
23 "prepublishOnly": "run-p flow build"
24 },
25 "babel": {
26 "presets": [
27 "@babel/preset-flow",
28 "@babel/preset-react",
29 [
30 "@babel/preset-env",
31 {
32 "loose": true,
33 "modules": "commonjs"
34 }
35 ]
36 ],
37 "plugins": [
38 [
39 "@babel/plugin-proposal-class-properties",
40 {
41 "loose": true
42 }
43 ],
44 "babel-plugin-macros"
45 ]
46 },
47 "husky": {
48 "hooks": {
49 "pre-commit": "lint-staged"
50 }
51 },
52 "lint-staged": {
53 "src/**/*.js": [
54 "prettier --write"
55 ]
56 },
57 "peerDependencies": {
58 "react": ">=0.14.9"
59 },
60 "devDependencies": {
61 "@babel/core": "^7.12.17",
62 "@babel/plugin-proposal-class-properties": "^7.12.13",
63 "@babel/plugin-transform-flow-strip-types": "^7.12.13",
64 "@babel/plugin-transform-object-assign": "^7.12.13",
65 "@babel/plugin-transform-react-jsx": "^7.12.17",
66 "@babel/preset-env": "^7.12.17",
67 "@babel/preset-flow": "^7.12.13",
68 "@babel/preset-react": "^7.12.13",
69 "@rollup/plugin-babel": "^5.3.0",
70 "@rollup/plugin-buble": "^0.21.3",
71 "@rollup/plugin-commonjs": "^17.1.0",
72 "@rollup/plugin-node-resolve": "^11.2.0",
73 "@testing-library/react": "^11.2.5",
74 "babel-core": "^7.0.0-bridge.0",
75 "babel-jest": "^26.6.3",
76 "babel-plugin-macros": "^3.0.1",
77 "codegen.macro": "^4.1.0",
78 "flow-bin": "0.123.0",
79 "globby": "^11.0.2",
80 "husky": "^4.2.5",
81 "jest": "^26.6.3",
82 "lint-staged": "^10.5.4",
83 "npm-run-all": "^4.1.5",
84 "patch-package": "^6.4.7",
85 "postinstall-postinstall": "^2.1.0",
86 "prettier": "^2.2.1",
87 "prismjs": "^1.26.0",
88 "react": "^17.0.1",
89 "react-dom": "^17.0.1",
90 "rollup": "^2.39.0"
91 }
92}