-
-
Notifications
You must be signed in to change notification settings - Fork 218
/
package.json
66 lines (66 loc) · 1.55 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
{
"name": "express-rate-limit-example-ts-esm",
"version": "1.0.0",
"description": "A minimal example (TS-ESM) of a project using the express-rate-limit package.",
"type": "module",
"scripts": {
"start": "node --loader ts-node/esm source/index.ts",
"lint": "eslint --ext=.ts source/**/*.ts",
"test": "cross-env NODE_OPTIONS=--experimental-vm-modules jest"
},
"dependencies": {
"express": "4.18.2",
"express-rate-limit": "file:../../../../.."
},
"devDependencies": {
"@types/express": "4.17.20",
"@types/jest": "29.5.6",
"@types/node": "20.8.7",
"@types/supertest": "2.0.15",
"@typescript-eslint/eslint-plugin": "6.8.0",
"@typescript-eslint/parser": "6.8.0",
"cross-env": "7.0.3",
"eslint": "8.51.0",
"jest": "29.7.0",
"supertest": "6.3.3",
"ts-jest": "29.1.1",
"ts-node": "10.9.1",
"typescript": "5.2.2"
},
"eslintConfig": {
"parser": "@typescript-eslint/parser",
"extends": [
"plugin:@typescript-eslint/recommended"
],
"parserOptions": {
"ecmaVersion": 2022,
"sourceType": "module"
},
"env": {
"es6": true,
"node": true
}
},
"jest": {
"verbose": true,
"preset": "ts-jest/presets/default-esm",
"globals": {
"ts-jest": {
"useESM": true
}
},
"collectCoverage": true,
"testTimeout": 30000,
"testMatch": [
"**/test/**/*-test.[jt]s"
],
"moduleFileExtensions": [
"js",
"json",
"ts"
],
"moduleNameMapper": {
"^(\\.{1,2}/.*)\\.js$": "$1"
}
}
}