[d24f17c] | 1 | {
|
---|
| 2 | "name": "react-syntax-highlighter",
|
---|
| 3 | "version": "15.5.0",
|
---|
| 4 | "description": "syntax highlighting component for react with prismjs or highlightjs ast using inline styles",
|
---|
| 5 | "main": "dist/cjs/index.js",
|
---|
| 6 | "module": "dist/esm/index.js",
|
---|
| 7 | "sideEffects": false,
|
---|
| 8 | "dependencies": {
|
---|
| 9 | "@babel/runtime": "^7.3.1",
|
---|
| 10 | "highlight.js": "^10.4.1",
|
---|
| 11 | "lowlight": "^1.17.0",
|
---|
| 12 | "prismjs": "^1.27.0",
|
---|
| 13 | "refractor": "^3.6.0"
|
---|
| 14 | },
|
---|
| 15 | "jest": {
|
---|
| 16 | "coverageDirectory": "./coverage/",
|
---|
| 17 | "collectCoverage": true
|
---|
| 18 | },
|
---|
| 19 | "devDependencies": {
|
---|
| 20 | "@babel/cli": "^7.1.2",
|
---|
| 21 | "@babel/core": "^7.1.2",
|
---|
| 22 | "@babel/plugin-proposal-class-properties": "^7.1.0",
|
---|
| 23 | "@babel/plugin-proposal-object-rest-spread": "^7.0.0",
|
---|
| 24 | "@babel/plugin-syntax-dynamic-import": "^7.0.0",
|
---|
| 25 | "@babel/plugin-transform-runtime": "^7.1.0",
|
---|
| 26 | "@babel/preset-env": "^7.1.0",
|
---|
| 27 | "@babel/preset-react": "^7.0.0",
|
---|
| 28 | "babel-core": "^7.0.0-bridge.0",
|
---|
| 29 | "babel-eslint": "^10.1.0",
|
---|
| 30 | "babel-jest": "^26.1.0",
|
---|
| 31 | "babel-loader": "^8.0.4",
|
---|
| 32 | "babel-plugin-transform-dynamic-import": "^2.1.0",
|
---|
| 33 | "codecov": "^3.2.0",
|
---|
| 34 | "css": "^2.2.1",
|
---|
| 35 | "css-loader": "^3.6.0",
|
---|
| 36 | "eslint": "^7.7.0",
|
---|
| 37 | "eslint-config-prettier": "^6.11.0",
|
---|
| 38 | "eslint-plugin-jest": "^23.20.0",
|
---|
| 39 | "eslint-plugin-prettier": "^3.1.4",
|
---|
| 40 | "eslint-plugin-react": "^7.20.6",
|
---|
| 41 | "husky": "^1.1.4",
|
---|
| 42 | "jest": "^26.1.0",
|
---|
| 43 | "lint-staged": "^8.0.5",
|
---|
| 44 | "prettier": "^1.15.2",
|
---|
| 45 | "prism-themes": "1.9.0",
|
---|
| 46 | "react": "^15.2.0",
|
---|
| 47 | "react-dom": "^15.2.0",
|
---|
| 48 | "react-syntax-highlighter-virtualized-renderer": "^1.0.3",
|
---|
| 49 | "react-test-renderer": "^15.3.2",
|
---|
| 50 | "request": "^2.88.0",
|
---|
| 51 | "style-loader": "^0.13.0",
|
---|
| 52 | "to-camel-case": "^1.0.0",
|
---|
| 53 | "webpack": "^4.22.0",
|
---|
| 54 | "webpack-cli": "^3.1.2",
|
---|
| 55 | "webpack-dev-server": "^3.1.14"
|
---|
| 56 | },
|
---|
| 57 | "peerDependencies": {
|
---|
| 58 | "react": ">= 0.14.0"
|
---|
| 59 | },
|
---|
| 60 | "scripts": {
|
---|
| 61 | "dev": "webpack-dev-server --hot --inline",
|
---|
| 62 | "build": "npm run build:cjs && npm run build:esm && webpack",
|
---|
| 63 | "build:cjs": "BABEL_ENV=cjs babel src --out-dir ./dist/cjs",
|
---|
| 64 | "build:esm": "BABEL_ENV=esm babel src --out-dir ./dist/esm",
|
---|
| 65 | "watch": "npm run build:esm -- --watch",
|
---|
| 66 | "build-styles-hljs": "node ./scripts/build-stylesheets-highlightjs.js",
|
---|
| 67 | "build-languages-hljs": "node ./scripts/build-languages-highlightjs.js",
|
---|
| 68 | "build-styles-prism": "node ./scripts/build-stylesheets-refractor.js",
|
---|
| 69 | "build-languages-prism": "node ./scripts/build-languages-refractor.js",
|
---|
| 70 | "prepare": "npm run build-styles-hljs && npm run build-languages-hljs && npm run build-styles-prism && npm run build-languages-prism && npm run build",
|
---|
| 71 | "test": "jest",
|
---|
| 72 | "test-ci": "jest && codecov",
|
---|
| 73 | "publish-coverage": "codecov",
|
---|
| 74 | "format": "npm run prettier",
|
---|
| 75 | "prettier": "prettier --write --no-editorconfig \"{src,scripts,__tests__}/**/*.js\"",
|
---|
| 76 | "lint": "eslint --ext .js,.jsx ./src ./scripts ./__tests__"
|
---|
| 77 | },
|
---|
| 78 | "repository": {
|
---|
| 79 | "type": "git",
|
---|
| 80 | "url": "git+https://github.com/react-syntax-highlighter/react-syntax-highlighter.git"
|
---|
| 81 | },
|
---|
| 82 | "keywords": [
|
---|
| 83 | "react",
|
---|
| 84 | "syntax",
|
---|
| 85 | "lowlight",
|
---|
| 86 | "highlighting",
|
---|
| 87 | "ast"
|
---|
| 88 | ],
|
---|
| 89 | "author": "Conor Hastings",
|
---|
| 90 | "license": "MIT",
|
---|
| 91 | "bugs": {
|
---|
| 92 | "url": "https://github.com/react-syntax-highlighter/react-syntax-highlighter/issues"
|
---|
| 93 | },
|
---|
| 94 | "homepage": "https://github.com/react-syntax-highlighter/react-syntax-highlighter#readme",
|
---|
| 95 | "husky": {
|
---|
| 96 | "hooks": {
|
---|
| 97 | "pre-commit": "lint-staged"
|
---|
| 98 | }
|
---|
| 99 | },
|
---|
| 100 | "lint-staged": {
|
---|
| 101 | "*.{js,json,css,md}": [
|
---|
| 102 | "prettier --write",
|
---|
| 103 | "git add"
|
---|
| 104 | ]
|
---|
| 105 | }
|
---|
| 106 | }
|
---|