|
26 | 26 | ], |
27 | 27 | "main": "index.js", |
28 | 28 | "exports": { |
29 | | - ".": "./index.js" |
| 29 | + ".": "./index.js", |
| 30 | + "./package.json": "./package.json" |
30 | 31 | }, |
31 | 32 | "bin": { |
32 | 33 | "git-branch-is": "bin/git-branch-is.js" |
|
41 | 42 | "lint": "npm run lint-js && npm run lint-doc", |
42 | 43 | "lint-doc": "jsdoc -t templates/silent -c jsdoc-lint.conf.json . && echo JSDoc passed.", |
43 | 44 | "lint-js": "eslint --report-unused-disable-directives . && echo ESLint passed.", |
44 | | - "postpublish": "git -C doc push && git push --follow-tags origin master gh-pages && echo Remember to update GitHub Releases from CHANGELOG.md", |
| 45 | + "postpublish": "git -C doc push && git push --follow-tags origin main gh-pages && echo Remember to update GitHub Releases from CHANGELOG.md", |
45 | 46 | "postversion": "rimraf doc && git clone -b gh-pages -l -q . doc && npm run doc && git -C doc add . && git -C doc commit -n -m \"Docs for v$npm_package_version\"", |
46 | | - "preversion": "npm run test-cov && nyc check-coverage --statements 95 && depcheck --ignore-dirs doc && david && node ./bin/git-branch-is.js master && hub-ci-status -vv --wait", |
| 47 | + "preversion": "npm run test-cov && c8 check-coverage --statements 95 && depcheck --ignore-dirs doc && david && node ./bin/git-branch-is.js main && hub-ci-status -vv --wait", |
47 | 48 | "test": "npm run lint && npm run test-unit", |
48 | 49 | "test-cov": "npm run lint && npm run test-unit-cov", |
49 | 50 | "pretest-unit": "node test-bin/set-up-test-repos.js", |
50 | | - "//": "Note: nyc incompatible with --parallel. See https://github.com/istanbuljs/nyc/issues/1328 and https://github.com/mochajs/mocha/issues/4372", |
51 | | - "test-unit": "node --throw-deprecation --unhandled-rejections=strict node_modules/mocha/bin/mocha --require ./test-lib/root-hooks.js --recursive test", |
| 51 | + "test-unit": "node --throw-deprecation --unhandled-rejections=strict node_modules/mocha/bin/mocha --require ./test-lib/root-hooks.js --parallel --recursive test", |
52 | 52 | "posttest-unit": "rimraf test-repos", |
53 | | - "test-unit-cov": "nyc --reporter=lcov --reporter=text npm run test-unit", |
| 53 | + "test-unit-cov": "c8 --reporter=lcov --reporter=text npm run test-unit", |
54 | 54 | "upload-cov": "codecov < ./coverage/lcov.info && coveralls < ./coverage/lcov.info", |
55 | 55 | "version": "npm run changelog && echo && echo === Please edit CHANGELOG.md as desired, then exit === && echo && \"${npm_config_shell:-${SHELL:-bash}}\" && git commit -m \"Update CHANGELOG.md for $npm_package_version\" CHANGELOG.md", |
56 | 56 | "version-deps": "npm install conventional-changelog-cli david depcheck git-branch-is hub-ci-status" |
|
59 | 59 | "commander": "^7.0.0" |
60 | 60 | }, |
61 | 61 | "devDependencies": { |
62 | | - "@kevinoid/eslint-config": "^15.0.0", |
| 62 | + "@kevinoid/eslint-config": "^16.0.0", |
| 63 | + "c8": "^7.0.0", |
63 | 64 | "codecov": "^3.0.0", |
64 | 65 | "coveralls": "^3.0.0", |
65 | 66 | "escape-string-regexp": "^4.0.0", |
66 | 67 | "eslint": "^7.3.0", |
67 | 68 | "eslint-config-airbnb-base": "^14.2.0", |
68 | 69 | "eslint-plugin-import": "^2.18.2", |
69 | | - "eslint-plugin-jsdoc": "^31.0.7", |
| 70 | + "eslint-plugin-jsdoc": "^32.0.0", |
70 | 71 | "eslint-plugin-node": "^11.0.0", |
71 | 72 | "eslint-plugin-promise": "^4.2.1", |
72 | | - "eslint-plugin-unicorn": "^28.0.0", |
| 73 | + "eslint-plugin-unicorn": "^29.0.0", |
73 | 74 | "jsdoc": "^3.6.0", |
74 | | - "mocha": "^8.0.1", |
| 75 | + "mocha": "^8.3.0", |
75 | 76 | "nodecat": "^2.0.0", |
76 | | - "nyc": "^15.0.0", |
77 | 77 | "rimraf": "^3.0.0" |
78 | 78 | }, |
79 | 79 | "engines": { |
|
96 | 96 | "checkLeaks": true, |
97 | 97 | "exit": false |
98 | 98 | }, |
99 | | - "nyc": { |
| 99 | + "c8": { |
100 | 100 | "exclude": [ |
101 | 101 | "test", |
102 | 102 | "test-bin", |
|
0 commit comments