1 | {
|
2 | "name": "prism-react-renderer",
|
3 | "version": "1.2.1",
|
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 | "build": "rollup -c rollup.config.js",
|
19 | "test": "jest",
|
20 | "flow": "flow check",
|
21 | "format": "prettier --write 'src/**/*.js'",
|
22 | "prepublishOnly": "run-p flow build"
|
23 | },
|
24 | "babel": {
|
25 | "presets": [
|
26 | "@babel/preset-flow",
|
27 | "@babel/preset-react",
|
28 | [
|
29 | "@babel/preset-env",
|
30 | {
|
31 | "loose": true,
|
32 | "modules": "commonjs"
|
33 | }
|
34 | ]
|
35 | ],
|
36 | "plugins": [
|
37 | [
|
38 | "@babel/plugin-proposal-class-properties",
|
39 | {
|
40 | "loose": true
|
41 | }
|
42 | ],
|
43 | "babel-plugin-macros"
|
44 | ]
|
45 | },
|
46 | "husky": {
|
47 | "hooks": {
|
48 | "pre-commit": "lint-staged"
|
49 | }
|
50 | },
|
51 | "lint-staged": {
|
52 | "src/**/*.js": [
|
53 | "prettier --write"
|
54 | ]
|
55 | },
|
56 | "peerDependencies": {
|
57 | "react": ">=0.14.9"
|
58 | },
|
59 | "devDependencies": {
|
60 | "@babel/core": "^7.12.17",
|
61 | "@babel/plugin-proposal-class-properties": "^7.12.13",
|
62 | "@babel/plugin-transform-flow-strip-types": "^7.12.13",
|
63 | "@babel/plugin-transform-object-assign": "^7.12.13",
|
64 | "@babel/plugin-transform-react-jsx": "^7.12.17",
|
65 | "@babel/preset-env": "^7.12.17",
|
66 | "@babel/preset-flow": "^7.12.13",
|
67 | "@babel/preset-react": "^7.12.13",
|
68 | "@rollup/plugin-babel": "^5.3.0",
|
69 | "@rollup/plugin-buble": "^0.21.3",
|
70 | "@rollup/plugin-commonjs": "^17.1.0",
|
71 | "@rollup/plugin-node-resolve": "^11.2.0",
|
72 | "@testing-library/react": "^11.2.5",
|
73 | "babel-core": "^7.0.0-bridge.0",
|
74 | "babel-jest": "^26.6.3",
|
75 | "babel-plugin-macros": "^3.0.1",
|
76 | "codegen.macro": "^4.1.0",
|
77 | "flow-bin": "0.123.0",
|
78 | "globby": "^11.0.2",
|
79 | "husky": "^4.2.5",
|
80 | "jest": "^26.6.3",
|
81 | "lint-staged": "^10.5.4",
|
82 | "npm-run-all": "^4.1.5",
|
83 | "prettier": "^2.2.1",
|
84 | "prismjs": "^1.23.0",
|
85 | "react": "^17.0.1",
|
86 | "react-dom": "^17.0.1",
|
87 | "rollup": "^2.39.0"
|
88 | }
|
89 | }
|