-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathpackage.json
More file actions
76 lines (76 loc) · 2.4 KB
/
Copy pathpackage.json
File metadata and controls
76 lines (76 loc) · 2.4 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
{
"name": "highlight-words",
"version": "2.1.0",
"description": "Split a piece text into multiple chunks based on a search query, allowing you to highlight the matches.",
"keywords": [
"highlight",
"regex",
"search",
"string"
],
"homepage": "https://github.com/tricinel/highlight-words#readme",
"bugs": {
"url": "https://github.com/tricinel/highlight-words/issues"
},
"license": "MIT",
"author": "Bogdan Lazar",
"repository": {
"type": "git",
"url": "https://github.com/tricinel/highlight-words.git"
},
"files": [
"dist"
],
"type": "commonjs",
"main": "dist/highlight-words.js",
"module": "dist/highlight-words.mjs",
"typings": "dist/highlight-words.d.ts",
"exports": {
".": {
"require": "./dist/highlight-words.js",
"default": "./dist/highlight-words.mjs"
}
},
"scripts": {
"prepare": "lefthook install || true",
"prebuild": "cross-env rimraf dist",
"build:lib:normal": "vite build",
"build:lib:min": "cross-env MINIFY=true vite build",
"build:lib": "npm-run-all build:lib:normal build:lib:min",
"build:types": "dts-bundle-generator -o dist/highlight-words.d.ts src/index.ts && dts-bundle-generator -o dist/highlight-words.d.mts src/index.ts",
"build:dist:normal": "vite build",
"build:dist:min": "cross-env MINIFY=true vite build",
"build:dist": "npm-run-all prebuild build:dist:normal build:dist:min",
"build": "npm-run-all prebuild build:lib build:types",
"watch": "vite build --watch",
"typecheck": "tsc --noEmit",
"format": "oxfmt --check .",
"format:write": "oxfmt --write .",
"lint": "oxlint -c .oxlintrc.json .",
"test:dev": "vitest run -c vitest.config.mts",
"test:dev:watch": "vitest",
"test:dist": "vitest run -c vitest.dist.config.mts",
"test": "npm-run-all -p test:dev test:dist",
"validate": "npm-run-all typecheck lint format test:dev",
"pretest:dist": "npm-run-all build:dist",
"prepublishOnly": "npm-run-all validate format:write build"
},
"devDependencies": {
"@types/node": "^25.7.0",
"cross-env": "^10.1.0",
"dts-bundle-generator": "^9.5.1",
"lefthook": "^2.1.6",
"npm-run-all": "^4.1.5",
"oxfmt": "^0.49.0",
"oxlint": "^1.64.0",
"rimraf": "^6.0.1",
"tsc-files": "^1.1.4",
"typescript": "^6.0.3",
"vite": "^8.0.12",
"vitest": "^4.1.6"
},
"engines": {
"node": ">= 22",
"npm": ">= 10"
}
}