-
Notifications
You must be signed in to change notification settings - Fork 3
/
package.json
56 lines (56 loc) · 2.19 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
{
"name": "fxrate",
"version": "0.0.1",
"license": "SEE LICENSE IN LICENSE",
"author": "Bo Xu <i@186526.xyz> (https://186526.xyz/)",
"dependencies": {
"axios": "^1.7.4",
"cheerio": "^1.0.0-rc.12",
"dayjs": "^1.11.10",
"es-main": "^1.3.0",
"fast-xml-parser": "^4.4.1",
"feed": "^4.2.2",
"handlers.js": "0.1.2-1",
"handlers.js-jsonrpc": "0.0.3",
"lru-cache": "^10.2.0",
"mathjs": "^12.3.2",
"sync-request": "^6.1.0",
"typescript": "^5.5.4"
},
"devDependencies": {
"@dotenvx/dotenvx": "^1.6.4",
"@eslint/js": "^9.8.0",
"@types/jest": "^29.5.12",
"@types/node": "^20.11.17",
"@types/tape": "^5.6.4",
"@typescript-eslint/eslint-plugin": "^7.0.1",
"@typescript-eslint/parser": "^7.1.0",
"esbuild": "^0.23.0",
"eslint": "9.x",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^5.1.3",
"globals": "^15.8.0",
"husky": "^9.1.4",
"jest": "^29.7.0",
"prettier": "^3.2.5",
"ts-jest": "^29.2.4",
"ts-node": "^10.9.2",
"tsc-alias": "^1.8.10",
"tslib": "^2.6.2",
"tsx": "^4.7.1",
"typescript-eslint": "^8.0.0"
},
"type": "module",
"scripts": {
"postinstall": "husky",
"format": "prettier --write \"**/*.{ts,json,md}\" ",
"lint": "eslint \"{src,test}/**/*.ts\" --fix",
"build": "yarn clean && esbuild src/index.ts --entry-names=[name] --format=cjs --platform=node --bundle --outdir=dist --external:sync-request --define:\"globalThis.esBuilt=true\" --define:globalThis.GITBUILD=\\\"$(git rev-parse --short HEAD)\\\" --define:globalThis.BUILDTIME=\\\"$(date -Iseconds)\\\" && mv dist/index.js dist/index.cjs",
"clean": "rm -rf dist/[!readme.md]*",
"dev": "dotenvx run -- tsx watch src/index.ts",
"dev:production": "dotenvx run --env-file=.env.production.local --env-file=.env -- tsx watch src/index.ts",
"start": "yarn build && node dist/index.cjs",
"test": "NODE_OPTIONS=--experimental-vm-modules jest",
"test:coverage": "yarn test --collectCoverage"
}
}