|
2 | 2 | "author": "Stefan Goessner", |
3 | 3 | "name": "jsonpath-plus", |
4 | 4 | "version": "5.1.0", |
| 5 | + "type": "module", |
5 | 6 | "main": "dist/index-node-cjs.js", |
6 | 7 | "exports": { |
7 | 8 | "./package.json": "./package.json", |
|
61 | 62 | "@babel/preset-env": "^7.14.7", |
62 | 63 | "@brettz9/eslint-plugin": "^1.0.3", |
63 | 64 | "@rollup/plugin-babel": "^5.3.0", |
| 65 | + "c8": "^7.7.3", |
64 | 66 | "chai": "^4.3.4", |
65 | 67 | "core-js-bundle": "^3.15.1", |
66 | 68 | "coveradge": "^0.7.0", |
|
83 | 85 | "eslint-plugin-radar": "^0.2.1", |
84 | 86 | "eslint-plugin-standard": "^4.1.0", |
85 | 87 | "eslint-plugin-unicorn": "^33.0.1", |
86 | | - "esm": "^3.2.25", |
87 | 88 | "http-server": "^0.12.3", |
88 | 89 | "license-badger": "^0.19.0", |
89 | | - "mocha": "^8.4.0", |
| 90 | + "mocha": "^9.0.1", |
90 | 91 | "mocha-badge-generator": "^0.9.0", |
91 | 92 | "mocha-multi-reporters": "^1.5.1", |
92 | | - "nyc": "^15.1.0", |
93 | 93 | "open-cli": "^7.0.0", |
94 | 94 | "remark-cli": "^9.0.0", |
95 | 95 | "remark-lint-code-block-style": "^2.0.1", |
|
106 | 106 | "browserslist": [ |
107 | 107 | "cover 100%" |
108 | 108 | ], |
109 | | - "nyc": { |
| 109 | + "c8": { |
110 | 110 | "reporter": [ |
111 | 111 | "text", |
112 | 112 | "html", |
113 | 113 | "json-summary" |
114 | 114 | ], |
115 | 115 | "exclude": [ |
116 | | - ".mocharc.js", |
117 | | - ".eslintrc.js", |
| 116 | + ".mocharc.cjs", |
| 117 | + ".eslintrc.cjs", |
| 118 | + "src/jsonpath.d.ts", |
118 | 119 | "rollup.config.js", |
119 | 120 | ".idea", |
120 | 121 | "coverage", |
|
140 | 141 | "open": "open-cli http://localhost:8084/demo/ && npm start", |
141 | 142 | "start": "http-server -p 8084", |
142 | 143 | "typescript": "tsc -p src", |
143 | | - "mocha": "mocha --require esm --require test-helpers/node-env.js --reporter-options configFile=mocha-multi-reporters.json test", |
144 | | - "nyc": "rm -Rf ./coverage && rm -Rf ./node_modules/.cache && nyc --all npm run mocha && npm run coverage-badge", |
| 144 | + "mocha": "mocha --require test-helpers/node-env.js --reporter-options configFile=mocha-multi-reporters.json test", |
| 145 | + "c8": "rm -Rf ./coverage && rm -Rf ./node_modules/.cache && c8 --all npm run mocha && npm run coverage-badge", |
145 | 146 | "rollup": "rollup -c", |
146 | 147 | "eslint": "eslint --ext js,md,html .", |
147 | | - "test": "npm run eslint && npm run rollup && npm run nyc && npm run typescript", |
| 148 | + "test": "npm run eslint && npm run rollup && npm run c8 && npm run typescript", |
148 | 149 | "browser-test": "npm run eslint && npm run rollup && open-cli http://localhost:8084/test/ && npm start" |
149 | 150 | } |
150 | 151 | } |
0 commit comments