-
Notifications
You must be signed in to change notification settings - Fork 1
/
package.json
112 lines (112 loc) · 3.74 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": "react-syntax-highlighter",
"version": "16.0.0",
"description": "syntax highlighting component for react with prismjs or highlightjs ast using inline styles",
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
"type": "module",
"sideEffects": false,
"engines": {
"node": ">=18.0.0"
},
"dependencies": {
"@babel/runtime": "^7.24.4",
"highlight.js": "^11.9.0",
"lowlight": "^3.1.0",
"prismjs": "^1.29.0",
"refractor": "^4.8.1"
},
"jest": {
"coverageDirectory": "./coverage/",
"collectCoverage": true
},
"devDependencies": {
"@babel/cli": "^7.24.1",
"@babel/core": "^7.24.4",
"@babel/plugin-proposal-class-properties": "^7.1.0",
"@babel/plugin-proposal-object-rest-spread": "^7.0.0",
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
"@babel/plugin-transform-runtime": "^7.24.3",
"@babel/preset-env": "^7.24.4",
"@babel/preset-react": "^7.24.1",
"babel-core": "^7.0.0-bridge.0",
"babel-eslint": "^10.1.0",
"babel-jest": "^29.7.0",
"babel-loader": "^9.1.3",
"babel-plugin-transform-dynamic-import": "^2.1.0",
"codecov": "^3.8.2",
"css": "^3.0.0",
"css-loader": "^7.1.1",
"eslint": "^8.57.0",
"eslint-config-prettier": "^8.10.0",
"eslint-plugin-jest": "^28.2.0",
"eslint-plugin-prettier": "^5.1.3",
"eslint-plugin-react": "^7.34.1",
"husky": "^9.0.11",
"jest": "^29.7.0",
"lint-staged": "^15.2.2",
"prettier": "^3.2.5",
"prism-themes": "1.9.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-syntax-highlighter-virtualized-renderer": "^1.1.0",
"react-test-renderer": "^18.2.0",
"request": "^2.88.0",
"style-loader": "^4.0.0",
"to-camel-case": "^1.0.0",
"webpack": "^5.91.0",
"webpack-cli": "^5.1.4",
"webpack-dev-server": "^5.0.4"
},
"peerDependencies": {
"react": ">= 0.14.0"
},
"scripts": {
"dev": "webpack-dev-server --hot --inline",
"build": "npm run build:cjs && npm run build:esm && webpack",
"build:cjs": "BABEL_ENV=cjs babel src --out-dir ./dist/cjs",
"build:esm": "BABEL_ENV=esm babel src --out-dir ./dist/esm",
"watch": "npm run build:esm -- --watch",
"build-styles-hljs": "node ./scripts/build-stylesheets-highlightjs.js",
"build-languages-hljs": "node ./scripts/build-languages-highlightjs.js",
"build-styles-prism": "node ./scripts/build-stylesheets-refractor.js",
"build-languages-prism": "node ./scripts/build-languages-refractor.js",
"prepare": "npm run build-styles-hljs && npm run build-languages-hljs && npm run build-styles-prism && npm run build-languages-prism && npm run build",
"test": "NODE_OPTIONS='--experimental-vm-modules' jest --no-silent",
"snapshot": "NODE_OPTIONS='--experimental-vm-modules' jest --updateSnapshot",
"test-ci": "jest && codecov",
"publish-coverage": "codecov",
"format": "npm run prettier",
"prettier": "prettier --write --no-editorconfig \"{src,scripts,demo,__tests__}/**.js\"",
"lint": "eslint --ext .js,.jsx ./src ./scripts ./__tests__",
"start": "cd demo && npx http-server -p 8888 -P 'http://localhost:8888?' -c-1"
},
"repository": {
"type": "git",
"url": "git+https://github.com/react-syntax-highlighter/react-syntax-highlighter.git"
},
"keywords": [
"react",
"syntax",
"lowlight",
"highlighting",
"ast"
],
"author": "Conor Hastings",
"license": "MIT",
"bugs": {
"url": "https://github.com/react-syntax-highlighter/react-syntax-highlighter/issues"
},
"homepage": "https://github.com/react-syntax-highlighter/react-syntax-highlighter#readme",
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"*.{js,json,css,md}": [
"prettier --write",
"git add"
]
}
}