UNPKG

mongoose-plugin-autoinc

Version:

This plugin allows you to auto-increment any field on any mongoose schema that you wish (forked mongoose-auto-increment in 2018).

85 lines (84 loc) 2.87 kB
{ "name": "mongoose-plugin-autoinc", "version": "1.1.9", "description": "This plugin allows you to auto-increment any field on any mongoose schema that you wish (forked mongoose-auto-increment in 2018).", "files": [ "lib" ], "main": "lib/index.js", "types": "lib/index.d.ts", "repository": { "type": "git", "url": "https://github.com/nodkz/mongoose-plugin-autoinc.git" }, "keywords": [ "mongoose", "auto-increment", "mongoose-auto-increment", "mongoose plugin" ], "license": "MIT", "bugs": { "url": "https://github.com/nodkz/mongoose-plugin-autoinc/issues" }, "homepage": "https://github.com/nodkz/mongoose-plugin-autoinc", "peerDependencies": { "mongoose": ">=4.0.0 || >=5.0.0" }, "devDependencies": { "@types/mongoose": "^5.0.1", "async": "^2.6.0", "babel-cli": "^6.26.0", "babel-eslint": "^8.2.1", "babel-jest": "^22.1.0", "babel-plugin-transform-flow-strip-types": "^6.22.0", "babel-plugin-transform-object-rest-spread": "^6.13.0", "babel-plugin-transform-runtime": "^6.23.0", "babel-preset-env": "^1.6.1", "bases": "^0.2.1", "cz-conventional-changelog": "^2.1.0", "eslint": "^4.17.0", "eslint-config-airbnb-base": "^12.1.0", "eslint-config-prettier": "^2.9.0", "eslint-plugin-flowtype": "^2.42.0", "eslint-plugin-import": "^2.8.0", "eslint-plugin-prettier": "^2.6.0", "flow-bin": "^0.64.0", "jest": "^22.1.4", "mongodb-memory-server": "^1.6.5", "mongoose": "^5.0.3", "prettier": "^1.10.2", "rimraf": "^2.6.2", "semantic-release": "^12.4.1", "tslint": "^5.9.1", "typescript": "^2.7.1" }, "config": { "commitizen": { "path": "./node_modules/cz-conventional-changelog" } }, "jest": { "roots": [ "<rootDir>/src" ] }, "scripts": { "build": "npm run build-cjs && npm run build-flow-sh && npm run build-ts-sh", "build-cjs": "rimraf lib && babel src --ignore __tests__,__mocks__ -d lib", "build-flow": "find ./src -name '*.js' -not -path '*/__*' | while read filepath; do cp $filepath `echo $filepath | sed 's/\\/src\\//\\/lib\\//g'`.flow; done", "build-flow-sh": "sh build-flow.sh", "build-ts": "find ./src -name '*.d.ts' -not -path '*/__*' | while read filepath; do cp $filepath `echo $filepath | sed 's/\\/src\\//\\/lib\\//g'`; done", "build-ts-sh": "sh build-ts.sh", "watch": "jest --watch", "coverage": "jest --coverage --maxWorkers 2", "lint": "npm run eslint && npm run tslint && npm run tscheck", "tslint": "tslint -p . \"src/**/*.d.ts\"", "eslint": "eslint --ext .js ./src", "eslint:fix": "eslint --ext .js ./src --fix", "tscheck": "tsc", "flow": "./node_modules/.bin/flow", "test": "npm run coverage && npm run lint && npm run flow", "semantic-release": "semantic-release" } }