-
Notifications
You must be signed in to change notification settings - Fork 2
/
package.json
59 lines (59 loc) · 1.75 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
{
"name": "@truckersmp/api-types",
"version": "1.1.0",
"description": "Simple type definitions for the TruckersMP API.",
"author": "TruckersMP",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/TruckersMP/API-Types"
},
"scripts": {
"build": "tsc && run-p esm:*",
"esm:traffic": "gen-esm-wrapper traffic/index.js traffic/index.mjs",
"esm:v2": "gen-esm-wrapper v2.js v2.mjs && gen-esm-wrapper traffic/v2/index.js traffic/v2/index.mjs && gen-esm-wrapper web/v2/index.js web/v2/index.mjs",
"esm:web": "gen-esm-wrapper web/index.js web/index.mjs",
"format": "eslint --ext .ts web/ traffic/ --fix",
"test": "echo \"Error: no test specified\" && exit 1"
},
"devDependencies": {
"@typescript-eslint/eslint-plugin": "^5.62.0",
"@typescript-eslint/parser": "^5.62.0",
"eslint": "^8.57.0",
"gen-esm-wrapper": "^1.1.3",
"npm-run-all": "^4.1.5",
"ts-node": "^10.9.2",
"typescript": "^4.9.5"
},
"exports": {
"./v2": {
"require": "./v2.js",
"import": "./v2.mjs",
"types": "./v2.d.ts"
},
"./web": {
"require": "./web/index.js",
"import": "./web/index.mjs",
"types": "./web/index.d.ts"
},
"./web/v*": {
"require": "./web/v*/index.js",
"import": "./web/v*/index.mjs",
"types": "./web/v*/index.d.ts"
},
"./traffic": {
"require": "./traffic/index.js",
"import": "./traffic/index.mjs",
"types": "./traffic/index.d.ts"
},
"./traffic/v*": {
"require": "./traffic/v*/index.js",
"import": "./traffic/v*/index.mjs",
"types": "./traffic/v*/index.d.ts"
}
},
"files": [
"{traffic,web}/**/*.{js,js.map,d.ts,d.ts.map,mjs}",
"{globals,v*}.{js,js.map,d.ts,d.ts.map,mjs}"
]
}