|
26 | 26 | "contributors": [
|
27 | 27 | "Titus Wormer <[email protected]> (https://wooorm.com)"
|
28 | 28 | ],
|
| 29 | + "sideEffects": false, |
| 30 | + "type": "module", |
| 31 | + "main": "index.js", |
29 | 32 | "files": [
|
30 | 33 | "index.js"
|
31 | 34 | ],
|
32 | 35 | "dependencies": {
|
33 |
| - "mdast-comment-marker": "^1.0.0", |
34 |
| - "unist-util-visit": "^2.0.0" |
| 36 | + "mdast-comment-marker": "^2.0.0", |
| 37 | + "unist-util-visit": "^3.0.0" |
35 | 38 | },
|
36 | 39 | "devDependencies": {
|
37 |
| - "browserify": "^17.0.0", |
38 |
| - "is-hidden": "^1.0.0", |
39 |
| - "nyc": "^15.0.0", |
| 40 | + "c8": "^7.0.0", |
| 41 | + "is-hidden": "^2.0.0", |
40 | 42 | "prettier": "^2.0.0",
|
41 | 43 | "remark": "^13.0.0",
|
42 | 44 | "remark-cli": "^9.0.0",
|
43 | 45 | "remark-preset-wooorm": "^8.0.0",
|
44 | 46 | "tape": "^5.0.0",
|
45 |
| - "tinyify": "^3.0.0", |
46 |
| - "xo": "^0.38.0" |
| 47 | + "xo": "^0.39.0" |
47 | 48 | },
|
48 | 49 | "scripts": {
|
49 | 50 | "format": "remark . -qfo && prettier . -w --loglevel warn && xo --fix",
|
50 |
| - "build-bundle": "browserify . -s mdastZone -o mdast-zone.js", |
51 |
| - "build-mangle": "browserify . -s mdastZone -o mdast-zone.min.js -p tinyify", |
52 |
| - "build": "npm run build-bundle && npm run build-mangle", |
53 |
| - "test-api": "node test", |
54 |
| - "test-coverage": "nyc --reporter lcov tape test/index.js", |
55 |
| - "test": "npm run format && npm run build && npm run test-coverage" |
56 |
| - }, |
57 |
| - "nyc": { |
58 |
| - "check-coverage": true, |
59 |
| - "lines": 100, |
60 |
| - "functions": 100, |
61 |
| - "branches": 100 |
| 51 | + "test-api": "node test/index.js", |
| 52 | + "test-coverage": "c8 --check-coverage --branches 100 --functions 100 --lines 100 --statements 100 --reporter lcov node test/index.js", |
| 53 | + "test": "npm run format && npm run test-coverage" |
62 | 54 | },
|
63 | 55 | "prettier": {
|
64 | 56 | "tabWidth": 2,
|
|
70 | 62 | },
|
71 | 63 | "xo": {
|
72 | 64 | "prettier": true,
|
73 |
| - "esnext": false, |
74 | 65 | "rules": {
|
75 |
| - "unicorn/no-fn-reference-in-iterator": "off", |
76 |
| - "unicorn/prefer-optional-catch-binding": "off" |
77 |
| - }, |
78 |
| - "ignores": [ |
79 |
| - "mdast-zone.js" |
80 |
| - ] |
| 66 | + "no-var": "off", |
| 67 | + "prefer-arrow-callback": "off" |
| 68 | + } |
81 | 69 | },
|
82 | 70 | "remarkConfig": {
|
83 | 71 | "plugins": [
|
|
0 commit comments