|
23 | 23 | "contributors": [ |
24 | 24 | "Titus Wormer <[email protected]> (https://wooorm.com)" |
25 | 25 | ], |
| 26 | + "sideEffects": false, |
| 27 | + "type": "module", |
| 28 | + "main": "index.js", |
26 | 29 | "files": [ |
27 | 30 | "index.js" |
28 | 31 | ], |
29 | 32 | "dependencies": { |
30 | | - "hast-util-embedded": "^1.0.0", |
31 | | - "hast-util-has-property": "^1.0.0", |
| 33 | + "hast-util-embedded": "^2.0.0", |
| 34 | + "hast-util-has-property": "^2.0.0", |
32 | 35 | "hast-util-is-body-ok-link": "^1.0.0", |
33 | | - "hast-util-is-element": "^1.0.0" |
| 36 | + "hast-util-is-element": "^2.0.0" |
34 | 37 | }, |
35 | 38 | "devDependencies": { |
36 | | - "browserify": "^17.0.0", |
| 39 | + "c8": "^7.0.0", |
37 | 40 | "hastscript": "^6.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 | | - "unist-builder": "^2.0.0", |
45 | | - "xo": "^0.38.0" |
| 45 | + "unist-builder": "^3.0.0", |
| 46 | + "xo": "^0.39.0" |
46 | 47 | }, |
47 | 48 | "scripts": { |
48 | 49 | "format": "remark . -qfo && prettier . -w --loglevel warn && xo --fix", |
49 | | - "build-bundle": "browserify index.js -s hastUtilPhrasing -o hast-util-phrasing.js", |
50 | | - "build-mangle": "browserify index.js -s hastUtilPhrasing -o hast-util-phrasing.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", |
54 | | - "test": "npm run format && npm run build && npm run test-coverage" |
55 | | - }, |
56 | | - "nyc": { |
57 | | - "check-coverage": true, |
58 | | - "lines": 100, |
59 | | - "functions": 100, |
60 | | - "branches": 100 |
| 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", |
| 52 | + "test": "npm run format && npm run test-coverage" |
61 | 53 | }, |
62 | 54 | "prettier": { |
63 | 55 | "tabWidth": 2, |
|
69 | 61 | }, |
70 | 62 | "xo": { |
71 | 63 | "prettier": true, |
72 | | - "esnext": false, |
73 | | - "ignores": [ |
74 | | - "hast-util-phrasing.js" |
75 | | - ] |
| 64 | + "rules": { |
| 65 | + "no-var": "off", |
| 66 | + "prefer-arrow-callback": "off" |
| 67 | + } |
76 | 68 | }, |
77 | 69 | "remarkConfig": { |
78 | 70 | "plugins": [ |
|
0 commit comments