UNPKG

2.8 kBJSONView Raw
1{
2 "name": "prism-react-renderer",
3 "version": "0.1.1",
4 "description": "Renders highlighted Prism output using React",
5 "main": "lib/index.js",
6 "module": "es/index.js",
7 "license": "MIT",
8 "files": [
9 "es",
10 "lib",
11 "prism",
12 "themes"
13 ],
14 "scripts": {
15 "precommit": "lint-staged",
16 "build": "run-s build:lib build:es",
17 "build:lib": "cross-env BABEL_ENV=cjs babel --ignore '**/__tests__/*' --out-dir lib src",
18 "build:es": "cross-env BABEL_ENV=es babel --ignore '**/__tests__/*' --out-dir es src",
19 "test": "jest",
20 "flow": "flow check",
21 "format": "prettier --write src/**/*.js themes/**/*.js",
22 "prepublishOnly": "run-p flow build"
23 },
24 "lint-staged": {
25 "linters": {
26 "{src,themes}/**/*.js": [
27 "jest --bail --findRelatedTests",
28 "flow focus-check",
29 "prettier --write",
30 "git add"
31 ]
32 }
33 },
34 "babel": {
35 "env": {
36 "test": {
37 "presets": [
38 "@babel/preset-flow",
39 "@babel/preset-react",
40 [
41 "@babel/preset-env",
42 {
43 "loose": true,
44 "modules": "commonjs"
45 }
46 ]
47 ],
48 "plugins": [
49 "babel-plugin-macros"
50 ]
51 },
52 "cjs": {
53 "presets": [
54 "@babel/preset-flow",
55 "@babel/preset-react",
56 [
57 "@babel/preset-env",
58 {
59 "loose": true,
60 "modules": "commonjs"
61 }
62 ]
63 ],
64 "plugins": [
65 "babel-plugin-macros"
66 ]
67 },
68 "es": {
69 "presets": [
70 "@babel/preset-flow",
71 "@babel/preset-react",
72 [
73 "@babel/preset-env",
74 {
75 "loose": true,
76 "modules": false
77 }
78 ]
79 ],
80 "plugins": [
81 "babel-plugin-macros"
82 ]
83 }
84 },
85 "plugins": [
86 [
87 "@babel/plugin-proposal-class-properties",
88 {
89 "loose": true
90 }
91 ]
92 ]
93 },
94 "peerDependencies": {
95 "react": ">=0.14.9"
96 },
97 "devDependencies": {
98 "@babel/cli": "^7.0.0-rc.1",
99 "@babel/core": "^7.0.0-rc.1",
100 "@babel/plugin-proposal-class-properties": "^7.0.0-rc.1",
101 "@babel/preset-env": "^7.0.0-rc.1",
102 "@babel/preset-flow": "^7.0.0-rc.1",
103 "@babel/preset-react": "^7.0.0-rc.1",
104 "babel-core": "^7.0.0-bridge.0",
105 "babel-jest": "^23.4.2",
106 "babel-plugin-macros": "^2.4.0",
107 "codegen.macro": "^3.0.0",
108 "cross-env": "^5.2.0",
109 "flow-bin": "^0.79.0",
110 "husky": "^0.14.3",
111 "jest": "^23.5.0",
112 "lint-staged": "^7.2.2",
113 "npm-run-all": "^4.1.3",
114 "prismjs": "^1.15.0",
115 "react": "^16.4.2",
116 "react-dom": "^16.4.2",
117 "react-testing-library": "^5.0.0"
118 }
119}