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