|
24 | 24 | "Titus Wormer <tituswormer@gmail.com> (https://wooorm.com)", |
25 | 25 | "Merlijn Vos <merlijn@soverin.net>" |
26 | 26 | ], |
| 27 | + "sideEffects": false, |
| 28 | + "type": "module", |
| 29 | + "main": "index.js", |
| 30 | + "types": "types/index.d.ts", |
27 | 31 | "files": [ |
28 | 32 | "index.js", |
29 | 33 | "types/index.d.ts" |
30 | 34 | ], |
31 | | - "types": "types/index.d.ts", |
32 | 35 | "dependencies": { |
33 | | - "array-iterate": "^1.0.0" |
| 36 | + "array-iterate": "^2.0.0" |
34 | 37 | }, |
35 | 38 | "devDependencies": { |
36 | | - "browserify": "^17.0.0", |
| 39 | + "c8": "^7.0.0", |
37 | 40 | "dtslint": "^4.0.0", |
38 | | - "nyc": "^15.0.0", |
39 | 41 | "prettier": "^2.0.0", |
40 | 42 | "remark-cli": "^9.0.0", |
41 | 43 | "remark-preset-wooorm": "^8.0.0", |
42 | 44 | "tape": "^5.0.0", |
43 | | - "tinyify": "^3.0.0", |
44 | 45 | "unified": "^9.0.0", |
45 | 46 | "xo": "^0.38.0" |
46 | 47 | }, |
47 | 48 | "scripts": { |
48 | 49 | "format": "remark . -qfo && prettier . -w --loglevel warn && xo --fix", |
49 | | - "build-bundle": "browserify . -s unistUtilModifyChildren -o unist-util-modify-children.js", |
50 | | - "build-mangle": "browserify . -s unistUtilModifyChildren -o unist-util-modify-children.min.js -p tinyify", |
51 | | - "build": "npm run build-bundle && npm run build-mangle", |
52 | | - "test-api": "node test", |
53 | | - "test-coverage": "nyc --reporter lcov tape test.js", |
| 50 | + "test-api": "node test.js", |
| 51 | + "test-coverage": "c8 --check-coverage --branches 100 --functions 100 --lines 100 --statements 100 --reporter lcov node test.js", |
54 | 52 | "test-types": "dtslint types", |
55 | | - "test": "npm run format && npm run build && npm run test-coverage && npm run test-types" |
| 53 | + "test": "npm run format && npm run test-coverage && npm run test-types" |
56 | 54 | }, |
57 | 55 | "prettier": { |
58 | 56 | "tabWidth": 2, |
|
64 | 62 | }, |
65 | 63 | "xo": { |
66 | 64 | "prettier": true, |
67 | | - "esnext": false, |
68 | | - "ignore": [ |
69 | | - "types/", |
70 | | - "unist-util-modify-children.js" |
71 | | - ] |
72 | | - }, |
73 | | - "nyc": { |
74 | | - "check-coverage": true, |
75 | | - "lines": 100, |
76 | | - "functions": 100, |
77 | | - "branches": 100 |
| 65 | + "rules": { |
| 66 | + "no-var": "off", |
| 67 | + "prefer-arrow-callback": "off" |
| 68 | + } |
78 | 69 | }, |
79 | 70 | "remarkConfig": { |
80 | 71 | "plugins": [ |
|
0 commit comments