-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
77 lines (77 loc) · 2.52 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
{
"name": "best-highlight",
"version": "0.2.1",
"description": "A lightweight syntax highlighter",
"type": "module",
"main": "./dist/index.cjs",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
"repository": {
"type": "git",
"url": "git+https://github.com/The-Best-Codes/best-highlight.git"
},
"exports": {
".": {
"types": "./dist/index.d.ts",
"require": "./dist/index.cjs",
"import": "./dist/index.js",
"browser": "./dist/browser/index.global.js",
"default": "./dist/index.js"
},
"./themes/*": {
"require": "./dist/themes/*",
"import": "./dist/themes/*",
"default": "./dist/themes/*"
}
},
"scripts": {
"build": "rm -rf dist && bun run build:types && bun run build:js && bun run build:css && bun run build:browser",
"build:js": "bun run build:js.esm && bun run build:js.cjs",
"build:js.esm": "bun build src/index.ts --outfile dist/index.js --format esm --minify",
"build:js.cjs": "bun build src/index.ts --outfile dist/index.cjs --format cjs --minify",
"build:css": "bun run build:css.copy && bun run build:css.minify",
"build:css.copy": "mkdir -p dist/themes && cp src/themes/*.css dist/themes/",
"build:css.minify": "for file in dist/themes/*.css; do tsup \"$file\" --minify --out-dir dist/themes --clean false; done",
"build:browser": "tsup src/index.ts --format iife --global-name bestHighlight --minify --out-dir dist/browser",
"build:types": "rollup -c rollup.dts.config.js",
"lint": "eslint src",
"lint:fix": "eslint src --fix",
"dev": "bun run dev:js",
"dev:js": "bun build src/index.ts --outfile dist/index.js --format esm --declaration --watch",
"test": "bun test",
"test:coverage": "bun test --coverage",
"prepublish": "bash ./scripts/compress-readme.sh",
"postpublish": "bash ./scripts/restore-readme.sh",
"prepublishOnly": "bun run prepublish && bun run build"
},
"devDependencies": {
"@eslint/js": "^9.16.0",
"@types/bun": "^1.1.14",
"@types/jsdom": "^21.1.7",
"dts-minify": "^0.3.3",
"eslint": "^9.16.0",
"globals": "^15.13.0",
"jsdom": "^25.0.1",
"rollup": "^4.28.1",
"rollup-plugin-dts": "^6.1.1",
"tsup": "^8.3.5",
"typescript": "^5.7.2",
"typescript-eslint": "^8.18.0"
},
"files": [
"dist"
],
"keywords": [
"syntax-highlight",
"highlighting",
"standalone",
"zero-dependencies",
"lightweight",
"fast",
"highlight",
"code",
"syntax"
],
"author": "The-Best-Codes",
"license": "MIT"
}