|
5 | 5 | "description": "In-memory MongoDB Server. Designed with testing in mind, the server will allow you to connect your favourite ODM or client library to the MongoDB Server and run integration tests isolated from each other.", |
6 | 6 | "repository": "https://github.com/nodkz/mongodb-memory-server", |
7 | 7 | "devDependencies": { |
| 8 | + "@commitlint/cli": "^9.1.2", |
8 | 9 | "@commitlint/config-conventional": "^9.1.2", |
9 | 10 | "@google/semantic-release-replace-plugin": "^1.0.0", |
10 | 11 | "@semantic-release/changelog": "^5.0.1", |
|
20 | 21 | "@typescript-eslint/parser": "4.1.0", |
21 | 22 | "commitlint": "^9.1.2", |
22 | 23 | "cross-env": "^7.0.2", |
| 24 | + "doctoc": "^1.4.0", |
23 | 25 | "eslint": "7.8.1", |
24 | 26 | "eslint-config-prettier": "6.11.0", |
25 | 27 | "eslint-plugin-prettier": "3.1.4", |
26 | 28 | "husky": "^4.3.0", |
27 | 29 | "jest": "26.4.2", |
28 | 30 | "lerna": "^3.22.1", |
| 31 | + "lint-staged": "^10.3.0", |
29 | 32 | "mongodb": "3.6.1", |
30 | 33 | "prettier": "2.1.1", |
31 | 34 | "semantic-release": "^17.1.1", |
|
37 | 40 | "packages/*" |
38 | 41 | ] |
39 | 42 | }, |
| 43 | + "lint-staged": { |
| 44 | + "packages/**/*.{ts,tsx,js,jsx}": [ |
| 45 | + "eslint --fix", |
| 46 | + "git add" |
| 47 | + ], |
| 48 | + "./README.md": [ |
| 49 | + "doctoc ./README.md", |
| 50 | + "git add" |
| 51 | + ] |
| 52 | + }, |
| 53 | + "husky": { |
| 54 | + "hooks": { |
| 55 | + "commit-msg": "commitlint -E HUSKY_GIT_PARAMS", |
| 56 | + "pre-commit": "lint-staged" |
| 57 | + } |
| 58 | + }, |
40 | 59 | "scripts": { |
41 | 60 | "test": "lerna run test --stream", |
42 | 61 | "lint": "lerna run lint --stream --npm-client=yarn --no-prefix", |
43 | 62 | "watch": "jest --env node --watch", |
44 | 63 | "jest": "jest --env node", |
45 | 64 | "build": "tsc --build tsconfig.build.json", |
46 | 65 | "semantic-release": "semantic-release", |
47 | | - "readme:toc": "npx doctoc ./README.md", |
| 66 | + "readme:toc": "doctoc ./README.md", |
48 | 67 | "postinstall": "yarn build" |
49 | 68 | } |
50 | 69 | } |
0 commit comments