generated from chakhsu/tsm-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
72 lines (72 loc) · 2.08 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
67
68
69
70
71
72
{
"name": "sync-defer",
"version": "v1.3.2",
"description": "A Node.js module for synchronous waiting execution proxy based on `LRUCache` and `Promise` to handle asynchronous processing across multiple services.",
"author": "Chakhsu.Lau",
"license": "MIT",
"keywords": [
"sync",
"defer",
"sync-defer",
"fetch",
"promise",
"cache",
"lru"
],
"repository": {
"type": "git",
"url": "https://github.com/chakhsu/sync-defer"
},
"homepage": "https://github.com/chakhsu/sync-defer",
"bugs": {
"url": "https://github.com/chakhsu/sync-defer/issues"
},
"exports": {
".": {
"types": "./lib/types/index.d.ts",
"import": "./lib/esm/index.js",
"require": "./lib/cjs/index.js"
},
"./package.json": "./package.json"
},
"main": "lib/cjs/index.js",
"module": "lib/esm/index.js",
"types": "lib/types/index.d.ts",
"files": [
"lib",
"docs",
"README_CN.md"
],
"scripts": {
"clear": "rimraf lib && rimraf coverage",
"patch:cjs-type": "echo '{ \"type\": \"commonjs\" }' >> lib/cjs/package.json",
"build:cjs": "tsc -P tsconfig.cjs.json && pnpm patch:cjs-type",
"patch:esm-type": "echo '{ \"type\": \"module\" }' >> lib/esm/package.json",
"patch:esm-js": "tsc-esm-fix --tsconfig=tsconfig.esm.json",
"build:esm": "tsc -P tsconfig.esm.json && pnpm patch:esm-js && pnpm patch:esm-type",
"build": "pnpm clear && pnpm build:cjs && pnpm build:esm",
"lint:prettier": "prettier --cache --check --ignore-path .gitignore --ignore-path .prettierignore .",
"prettier": "pnpm lint:prettier --write",
"prepare": "husky install",
"test": "jest"
},
"lint-staged": {
"*.{ts,js,md,json,yaml}": "prettier --write"
},
"devDependencies": {
"@types/jest": "^29.5.12",
"@types/node": "^20.11.30",
"husky": "^9.0.11",
"jest": "^29.7.0",
"lint-staged": "^15.2.2",
"prettier": "^3.2.5",
"rimraf": "^5.0.5",
"ts-jest": "^29.1.2",
"ts-node": "^10.9.2",
"tsc-esm-fix": "^2.20.26",
"typescript": "^5.4.3"
},
"dependencies": {
"lru-cache": "^10.2.0"
}
}