UNPKG

cross-process-lock

Version:

Cross-process file locking solution with lock-queue

96 lines (95 loc) 2.39 kB
{ "name": "cross-process-lock", "version": "2.1.1", "description": "Cross-process file locking solution with lock-queue", "main": "index.js", "types": "index.d.ts", "scripts": { "build": "npm run buildUpdate && npm test && npm run docs", "buildUpdate": "npm run clean && npm run compile && npm run copyToDist", "copyToDist": "copyfiles -f *.txt *.md package.json dist", "docs": "typedoc --out ./docs ./src && touch ./docs/.nojekyll", "clean": "rimraf ./dist ./docs ./reports ./coverage", "test": "dotenv-ng --var JEST_JUNIT_OUTPUT_DIR=./reports -- jest --coverage", "lint": "eslint . --ext .ts --fix", "compile": "tsc && npm run lint" }, "repository": { "type": "git", "url": "git+https://github.com/szikszail/cross-process-lock.git" }, "keywords": [ "file", "lock" ], "author": "Laszlo Szikszai <sziklaszlo@gmail.com>", "license": "MIT", "bugs": { "url": "https://github.com/szikszail/cross-process-lock/issues" }, "homepage": "https://github.com/szikszail/cross-process-lock#readme", "files": [ "**/*.js", "**/*.d.ts", "**/*.js.map" ], "engines": { "node": ">=14.0.0" }, "dependencies": { "tslib": "^2.6.0", "debug": "^4.3.4" }, "devDependencies": { "@types/debug": "^4.1.7", "@types/jest": "^29.4.0", "@types/node": "^18.13.0", "@typescript-eslint/eslint-plugin": "^5.52.0", "@typescript-eslint/parser": "^5.52.0", "copyfiles": "^2.4.1", "dotenv-ng": "^1.1.3", "jest": "^29.4.2", "jest-junit": "^15.0.0", "proxyquire": "^2.1.3", "rimraf": "^4.1.2", "sinon": "^15.0.1", "eslint": "^8.34.0", "ts-jest": "^29.0.5", "typedoc": "^0.23.25", "typescript": "^4.9.5", "yargs": "^17.6.2" }, "jest": { "reporters": [ "default", "jest-junit" ], "transform": { "^.+\\.ts?$": "ts-jest" }, "testEnvironment": "node", "testMatch": [ "**/tests/**/*.test.ts" ], "testPathIgnorePatterns": [ "/node_modules/", "dist" ], "coverageDirectory": "./coverage", "collectCoverageFrom": [ "./src/**/*.ts" ], "moduleFileExtensions": [ "ts", "js" ], "coverageThreshold": { "global": { "branches": 85, "functions": 85, "lines": 85, "statements": 85 } } } }