Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
131 lines (131 loc) · 3.26 KB
/
Copy pathpackage.json
File metadata and controls
131 lines (131 loc) · 3.26 KB
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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
{
"name": "codelight.js",
"version": "1.6.1",
"description": "Very fast, lightweight syntax highlighter. Highlights each line once and redraws only what changed, so live code never flickers. 50+ languages, no dependencies, React or a script tag.",
"keywords": [
"syntax-highlighting",
"highlight",
"highlighter",
"syntax-highlighter",
"code-highlighting",
"lightweight",
"fast",
"code",
"streaming",
"stream",
"ai",
"llm",
"chat",
"chatbot",
"markdown",
"code-block",
"react",
"incremental",
"zero-dependency",
"highlightjs-alternative",
"prism-alternative",
"shiki-alternative",
"live-code"
],
"license": "MIT",
"author": "CK Giri <ckgdev@gmail.com>",
"homepage": "https://codelightjs.github.io/",
"repository": {
"type": "git",
"url": "git+https://github.com/codelightjs/codelight.js.git"
},
"bugs": {
"url": "https://github.com/codelightjs/codelight.js/issues"
},
"type": "module",
"sideEffects": [
"./es/detect.js",
"./lib/detect.cjs",
"./build/*.js"
],
"main": "./lib/codelight.cjs",
"module": "./es/codelight.js",
"types": "./es/codelight.d.ts",
"unpkg": "./build/codelight.min.js",
"jsdelivr": "./build/codelight.min.js",
"exports": {
".": {
"import": {
"types": "./es/codelight.d.ts",
"default": "./es/codelight.js"
},
"require": {
"types": "./lib/codelight.d.cts",
"default": "./lib/codelight.cjs"
}
},
"./react": {
"import": {
"types": "./es/react.d.ts",
"default": "./es/react.js"
},
"require": {
"types": "./lib/react.d.cts",
"default": "./lib/react.cjs"
}
},
"./detect": {
"import": {
"types": "./es/detect.d.ts",
"default": "./es/detect.js"
},
"require": {
"types": "./lib/detect.d.cts",
"default": "./lib/detect.cjs"
}
},
"./styles/*": "./build/styles/*",
"./build/*": "./build/*",
"./package.json": "./package.json"
},
"files": [
"es",
"lib",
"build",
"CHANGES.md",
"README.CDN.md",
"SUPPORTED_LANGUAGES.md"
],
"peerDependencies": {
"react": ">=18"
},
"peerDependenciesMeta": {
"react": {
"optional": true
}
},
"scripts": {
"build": "tsup",
"test": "vitest run",
"typecheck": "tsc -p .",
"prepublishOnly": "npm run typecheck && npm run build && npm test",
"release": "npm version patch && git push --follow-tags",
"release:minor": "npm version minor && git push --follow-tags",
"release:major": "npm version major && git push --follow-tags",
"screenshot": "npm run demo && node tools/screenshot.mjs",
"demo": "npm run build && node tools/build-demo.mjs",
"bench": "npm run build && node tools/bench/run.mjs"
},
"devDependencies": {
"@shikijs/stream": "^4.6.0",
"@types/node": "^20.19.43",
"@types/react": "^19.3.3",
"@types/react-dom": "^19.3.0",
"esbuild": "^0.27.7",
"happy-dom": "^21.0.4",
"highlight.js": "^11.12.0",
"prismjs": "^1.30.0",
"puppeteer-core": "^25.19.0",
"react": "^19.3.1",
"react-dom": "^19.3.1",
"shiki": "^4.6.0",
"tsup": "^8.5.1",
"typescript": "^5.9.3",
"vitest": "^2.1.9"
}
}