-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
58 lines (57 loc) · 1.82 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
{
"name": "@discoveryjs/natural-compare",
"version": "1.1.0",
"description": "Compare strings in a natural order",
"author": "Roman Dvornov <[email protected]> (https://github.com/lahmatiy)",
"repository": "discoveryjs/natural-compare",
"license": "MIT",
"keywords": [
"string",
"compare",
"sorting",
"natural",
"order",
"human"
],
"type": "module",
"main": "./cjs/index.cjs",
"module": "./src/index.js",
"unpkg": "dist/natural-compare.js",
"jsdelivr": "dist/natural-compare.js",
"exports": {
".": {
"import": "./src/index.js",
"require": "./cjs/index.cjs"
}
},
"scripts": {
"lint": "eslint src test",
"lint-and-test": "npm run lint && npm test",
"test": "mocha --reporter ${REPORTER:-progress}",
"test:cjs": "mocha cjs-test --reporter ${REPORTER:-progress}",
"test:dist": "mocha dist/test --reporter ${REPORTER:-progress}",
"bundle": "npm run esm-to-cjs && node scripts/bundle",
"bundle-and-test": "npm run bundle && npm run test:dist",
"esm-to-cjs": "node scripts/esm-to-cjs.cjs",
"esm-to-cjs-and-test": "npm run esm-to-cjs && npm run test:cjs",
"build": "npm run esm-to-cjs && npm run bundle",
"build-and-test": "npm run esm-to-cjs-and-test && npm run bundle-and-test",
"prepublishOnly": "npm run lint && npm run build-and-test",
"coverage": "c8 --reporter=lcovonly npm test"
},
"devDependencies": {
"c8": "^7.11.0",
"esbuild": "~0.15.7",
"eslint": "^8.23.1",
"mocha": "^9.2.1",
"rollup": "^2.79.0"
},
"engines": {
"node": "^10 || ^12.20.0 || ^14.13.0 || >=15.0.0"
},
"files": [
"dist",
"cjs",
"src"
]
}