UNPKG

2.18 kBJSONView Raw
1{
2 "name": "redlock",
3 "version": "v5.0.0-beta.2",
4 "description": "A node.js redlock implementation for distributed redis locks",
5 "license": "MIT",
6 "author": {
7 "name": "Mike Marcacci",
8 "email": "mike.marcacci@gmail.com"
9 },
10 "repository": "https://github.com/mike-marcacci/node-redlock.git",
11 "homepage": "https://github.com/mike-marcacci/node-redlock#readme",
12 "bugs": "https://github.com/mike-marcacci/node-redlock/issues",
13 "main": "./dist/cjs/index.js",
14 "module": "./dist/esm/index.js",
15 "types": "./dist/index.d.ts",
16 "exports": {
17 ".": {
18 "import": "./dist/esm/index.js",
19 "require": "./dist/cjs/index.js"
20 }
21 },
22 "keywords": [
23 "nodejs",
24 "redlock",
25 "distributed",
26 "lock",
27 "redis"
28 ],
29 "files": [
30 "dist/index.d.ts",
31 "dist/esm/package.json",
32 "dist/esm/index.js",
33 "dist/esm/index.js.map",
34 "dist/cjs/package.json",
35 "dist/cjs/index.js",
36 "dist/cjs/index.js.map"
37 ],
38 "engines": {
39 "node": ">=12"
40 },
41 "browserslist": "node >= 12",
42 "ava": {
43 "nodeArguments": [
44 "--experimental-specifier-resolution=node"
45 ]
46 },
47 "devDependencies": {
48 "@types/ioredis": "^4.28.8",
49 "@types/node": "^17.0.21",
50 "@typescript-eslint/eslint-plugin": "^5.13.0",
51 "@typescript-eslint/parser": "^5.13.0",
52 "ava": "^4.1.0",
53 "eslint": "^8.10.0",
54 "eslint-config-prettier": "^8.5.0",
55 "eslint-plugin-prettier": "^4.0.0",
56 "ioredis": "^4.28.5",
57 "nodemon": "^2.0.15",
58 "prettier": "^2.5.1",
59 "typescript": "~4.6.2"
60 },
61 "scripts": {
62 "format": "prettier --list-different --write '**/*.{json,yml,md,ts}'",
63 "lint": "prettier -c '**/*.{json,yml,md,ts}' && eslint src --ext ts",
64 "build": "rm -f dist/**/*.{js,js.map,d.ts} && tsc && tsc -p tsconfig.cjs.json",
65 "build:development": "rm -f dist/**/*.{js,js.map,d.ts} && tsc --watch",
66 "test": "cd dist/esm && ava --verbose *.test.js",
67 "test:development": "cd dist/esm && ava --verbose --watch *.test.js",
68 "prepare": "yarn build",
69 "prepublishOnly": "yarn install && yarn lint && yarn build"
70 },
71 "dependencies": {
72 "node-abort-controller": "^3.0.1"
73 },
74 "type": "module"
75}