generated from InverterNetwork/npm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
116 lines (116 loc) · 3.7 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
{
"name": "mongo-lead",
"description": "Leader election backed by MongoDB",
"version": "0.9.2",
"exports": {
".": {
"types": "./dist/types/index.d.ts",
"import": "./dist/esm/index.js",
"default": "./dist/cjs/index.js"
},
"./package.json": "./package.json"
},
"main": "./dist/cjs/index.js",
"module": "./dist/esm/index.js",
"types": "./dist/types/index.d.ts",
"typings": "./dist/types/index.d.ts",
"sideEffects": false,
"files": [
"dist"
],
"directories": {
"tool": "tools",
"test": "tests"
},
"publishConfig": {
"access": "public"
},
"scripts": {
"watch": "tsc -w",
"type-check": "tsc-files --pretty --project ./tsconfig.build.json --noEmit --module ESNext --declaration",
"build": "bun clean && bun build:cjs && bun build:esm && bun build:types",
"build:cjs": "tsc --project ./tsconfig.build.json --module commonjs --moduleResolution node --removeComments --outDir ./dist/cjs --verbatimModuleSyntax false && printf '{\"type\":\"commonjs\"}' > ./dist/cjs/package.json && tsc-alias --outDir ./dist/cjs && ts-add-js-extension --dir=dist/cjs --showchanges=false",
"build:esm": "tsc --project ./tsconfig.build.json --module ESNext --removeComments --outDir ./dist/esm && printf '{\"type\": \"module\",\"sideEffects\":false}' > ./dist/esm/package.json && tsc-alias --outDir ./dist/esm && ts-add-js-extension --dir=dist/esm --showchanges=false",
"build:types": "tsc --project ./tsconfig.build.json --module ESNext --declarationDir ./dist/types --emitDeclarationOnly --declaration --declarationMap && tsc-alias --outDir ./dist/types",
"clean": "rm -rf dist tsconfig.tsbuildinfo tsconfig.build.tsbuildinfo",
"postinstall": "husky || true",
"prepack": "pinst --disable",
"package": "bun run build && npm pack",
"postpack": "pinst --enable",
"release": "standard-version -a",
"release:alpha": "standard-version -a --prerelease alpha --skip.changelog",
"release:beta": "standard-version -a --prerelease beta --skip.changelog",
"release:pub": "git push --follow-tags origin $(git rev-parse --abbrev-ref HEAD)"
},
"lint-staged": {
"*.{ts,tsx}": [
"bun type-check"
],
"*.{ts,tsx,js,jsx,mjs,cjs,json,md,css}": [
"eslint --fix",
"prettier --write"
]
},
"resolutions": {
"eslint": "^9.17.0",
"typescript": "^5.7.2"
},
"peerDependencies": {
"mongodb": "^6.7.0"
},
"dependencies": {
"type-fest-4": "npm:type-fest@^4.31.0",
"debug": "^4.4.0"
},
"devDependencies": {
"@commitlint/cli": "^19.6.0",
"@commitlint/config-conventional": "^19.6.0",
"@types/bun": "^1.1.14",
"@types/debug": "^4.1.12",
"eslint-plugin-import-x": "^4.6.1",
"eslint-plugin-prettier": "^5.2.1",
"husky": "^9.1.7",
"lint-staged": "^15.3.0",
"pinst": "^3.0.0",
"prettier": "^3.4.2",
"standard-version": "^9.5.0",
"ts-add-js-extension": "^1.6.5",
"tsc-alias": "^1.8.10",
"tsc-files": "^1.1.4",
"typescript-eslint": "^8.19.0"
},
"license": "LGPL-3.0",
"homepage": "https://github.com/mguleryuz/mongo-lead",
"authors": [
"mguleryuz"
],
"repository": "mguleryuz/mongo-lead",
"bugs": {
"url": "https://github.com/mguleryuz/mongo-lead/issues"
},
"keywords": [
"mongodb",
"leader-election",
"distributed-systems",
"coordination",
"heartbeat",
"failover",
"high-availability",
"distributed-cron",
"cluster-coordination",
"primary-backup",
"mongoose",
"ttl",
"atomic-operations",
"distributed-computing",
"node",
"distributed-lock",
"mutex",
"semaphore",
"concurrency-control",
"distributed-mutex",
"lock-manager",
"resource-locking",
"synchronization"
]
}