-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpackage.json
More file actions
80 lines (80 loc) · 2.19 KB
/
package.json
File metadata and controls
80 lines (80 loc) · 2.19 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
{
"name": "js-rouge",
"version": "3.2.0",
"description": "Recall-Oriented Understudy for Gisting Evaluation (ROUGE) Evaluation Functions with TypeScript support",
"main": "dist/rouge.js",
"module": "dist/rouge.mjs",
"types": "dist/rouge.d.ts",
"exports": {
".": {
"types": "./dist/rouge.d.ts",
"import": "./dist/rouge.mjs",
"require": "./dist/rouge.js"
}
},
"scripts": {
"test": "jest",
"build": "npm run clean && npm run build:js && npm run build:types",
"build:js": "esbuild src/rouge.ts --bundle --minify --sourcemap --platform=node --target=node18 --outfile=dist/rouge.js && esbuild src/rouge.ts --bundle --minify --sourcemap --platform=neutral --format=esm --outfile=dist/rouge.mjs",
"build:types": "tsc -p tsconfig.json --emitDeclarationOnly --outDir dist",
"clean": "rimraf dist",
"type-check": "tsc --noEmit",
"lint": "biome lint .",
"format": "biome format --write . && prettier --write \"**/*.md\"",
"check": "biome check --write . && prettier --write \"**/*.md\"",
"prepublishOnly": "npm run build",
"prepare": "husky"
},
"repository": {
"type": "git",
"url": "git+https://github.com/promptfoo/js-rouge.git"
},
"keywords": [
"ROUGE",
"Auto-summarization",
"NLP",
"TypeScript"
],
"author": "Lim Mingje, Kenneth <me@kenlimmj.com> (https://kenlimmj.com)",
"contributors": [
"promptfoo (https://promptfoo.dev)"
],
"license": "MIT",
"bugs": {
"url": "https://github.com/promptfoo/js-rouge/issues"
},
"homepage": "https://github.com/promptfoo/js-rouge",
"devDependencies": {
"@biomejs/biome": "2.4.4",
"@swc/core": "^1.15.5",
"@swc/jest": "^0.2.39",
"@types/jest": "^30.0.0",
"esbuild": "^0.27.2",
"husky": "^9.1.7",
"jest": "^30.2.0",
"lint-staged": "^16.2.7",
"prettier": "3.8.1",
"rimraf": "^6.1.2",
"typescript": "^5.9.3"
},
"engines": {
"node": ">=18.0.0"
},
"files": [
"dist",
"README.md",
"LICENSE"
],
"directories": {
"lib": "dist",
"test": "test"
},
"lint-staged": {
"*.md": [
"prettier --write"
],
"!(*.md)": [
"biome check --write --no-errors-on-unmatched"
]
}
}