-
Notifications
You must be signed in to change notification settings - Fork 7
/
package.json
72 lines (72 loc) · 1.83 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
{
"name": "highlight-words",
"version": "2.0.0",
"description": "Split a piece text into multiple chunks based on a search query, allowing you to highlight the matches.",
"engines": {
"node": ">= 20",
"npm": ">= 9"
},
"repository": {
"type": "git",
"url": "https://github.com/tricinel/highlight-words.git"
},
"bugs": {
"url": "https://github.com/tricinel/highlight-words/issues"
},
"homepage": "https://github.com/tricinel/highlight-words#readme",
"author": "Bogdan Lazar",
"license": "MIT",
"keywords": [
"string",
"search",
"highlight",
"regex"
],
"files": [
"dist"
],
"eslintIgnore": [
"node_modules",
"dist",
"coverage"
],
"type": "commonjs",
"typings": "dist/highlight-words.d.ts",
"main": "dist/highlight-words.js",
"module": "dist/highlight-words.mjs",
"exports": {
".": {
"require": "./dist/highlight-words.js",
"default": "./dist/highlight-words.mjs"
}
},
"scripts": {
"prepare": "lefthook install || true",
"prebuild": "cross-env rimraf dist",
"build": "rollup -c",
"watch": "rollup -cw",
"typecheck": "tsc --noEmit",
"format": "biome format .",
"format:write": "biome format --write .",
"lint": "biome lint .",
"test:unit": "vitest run",
"test:unit:dev": "vitest",
"validate": "npm-run-all typecheck lint format test:unit",
"prepublishOnly": "npm-run-all validate format:write build"
},
"devDependencies": {
"@biomejs/biome": "1.8.3",
"cross-env": "^7.0.3",
"esbuild": "^0.23.1",
"lefthook": "^1.7.15",
"npm-run-all": "^4.1.5",
"rimraf": "^6.0.1",
"rollup": "^4.21.2",
"rollup-plugin-dts": "^6.1.1",
"rollup-plugin-esbuild": "^6.1.1",
"tsc-files": "^1.1.4",
"typescript": "^5.5.4",
"vite-tsconfig-paths": "^5.0.1",
"vitest": "^2.0.5"
}
}