|
6 | 6 | "scripts": { |
7 | 7 | "check:node": "check-node-version --package", |
8 | 8 | "ci": "yarn run lint:js && yarn run test", |
9 | | - "precommit": "lint-staged && yarn run lint", |
10 | 9 | "eslint-check": "eslint --print-config .eslintrc | eslint-config-prettier-check", |
11 | 10 | "format:js": "prettier --write \"{src,test}/**/*.js\"", |
12 | 11 | "postinstall": "yarn run check:node", |
|
15 | 14 | "lint:js:without:prettier": "yarn run lint:js -- --rule 'prettier/prettier: 0'", |
16 | 15 | "lint:watch": "nodemon --watch src --exec \"yarn run lint:without:prettier\"", |
17 | 16 | "lint:without:prettier": "yarn run lint:js:without:prettier", |
18 | | - "start": "node --es-module-specifier-resolution=node --experimental-loader ./customLoader.mjs src/index.js", |
| 17 | + "start": "node --es-module-specifier-resolution=node src/index.js", |
19 | 18 | "start:built": "node build/index.js", |
20 | | - "start:debug": "node inspect --es-module-specifier-resolution=node --experimental-loader ./customLoader.mjs src/index.js", |
21 | | - "start:docker": "docker build -t lead-finder-server . && docker run --rm -it lead-finder-server", |
22 | | - "test": "NODE_OPTIONS=\"--experimental-specifier-resolution node --experimental-loader ./customLoader.mjs\" node_modules/.bin/mocha test/index.cjs --delay", |
| 19 | + "start:debug": "node inspect --es-module-specifier-resolution=node src/index.js", |
| 20 | + "test": "node --experimental-vm-modules node_modules/.bin/jest", |
23 | 21 | "test:watch": "nodemon -w src -w test --exec 'yarn run test'" |
24 | 22 | }, |
25 | 23 | "dependencies": { |
26 | 24 | "lodash": "^4.17.12" |
27 | 25 | }, |
28 | 26 | "devDependencies": { |
29 | 27 | "babel-eslint": "^7.2.3", |
30 | | - "chai": "^4.0.1", |
31 | | - "chai-moment": "^0.1.0", |
32 | 28 | "check-node-version": "^2.1.0", |
33 | 29 | "eslint": "^4.18.2", |
34 | 30 | "eslint-config-airbnb-base": "^11.2.0", |
35 | 31 | "eslint-config-prettier": "^2.1.0", |
36 | 32 | "eslint-plugin-import": "2.2.0", |
37 | 33 | "eslint-plugin-prettier": "^2.0.1", |
38 | | - "husky": "^1.0.1", |
39 | | - "lint-staged": "^7.3.0", |
40 | | - "mocha": "^5.2.0", |
| 34 | + "husky": "^4.3.7", |
| 35 | + "jest": "^26.6.3", |
| 36 | + "lint-staged": "^10.5.3", |
41 | 37 | "nodemon": "^1.19.4", |
42 | 38 | "prettier": "^1.2.2", |
43 | 39 | "sort-package-json": "^1.15.0" |
44 | 40 | }, |
45 | 41 | "engines": { |
46 | | - "node": ">= 13.4 < 14" |
| 42 | + "node": ">= 15.5 < 16" |
47 | 43 | }, |
48 | 44 | "engine-strict": true, |
| 45 | + "husky": { |
| 46 | + "hooks": { |
| 47 | + "pre-commit": "lint-staged" |
| 48 | + } |
| 49 | + }, |
49 | 50 | "lint-staged": { |
50 | 51 | "{src,test}/**/*.js": [ |
51 | | - "prettier --write", |
52 | | - "git add" |
| 52 | + "prettier --write" |
53 | 53 | ], |
54 | 54 | "package.json": [ |
55 | | - "sort-package-json", |
56 | | - "git add" |
57 | | - ] |
| 55 | + "sort-package-json" |
| 56 | + ], |
| 57 | + "*.js": "eslint --cache --fix" |
58 | 58 | }, |
59 | 59 | "type": "module" |
60 | 60 | } |
0 commit comments