UNPKG

mongo-lead

Version:
117 lines (116 loc) 3.79 kB
{ "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" ] }