|
24 | 24 | "Titus Wormer <[email protected]> (https://wooorm.com)", |
25 | 25 | "Lucas Brandstaetter <[email protected]> (https://github.com/Roang-zero1)" |
26 | 26 | ], |
| 27 | + "sideEffects": false, |
| 28 | + "type": "module", |
| 29 | + "main": "index.js", |
| 30 | + "types": "index.d.ts", |
27 | 31 | "files": [ |
28 | | - "index.js", |
29 | | - "index.d.ts" |
| 32 | + "index.d.ts", |
| 33 | + "index.js" |
30 | 34 | ], |
31 | | - "types": "index.d.ts", |
32 | 35 | "dependencies": { |
33 | | - "unist-util-is": "^4.0.0" |
| 36 | + "unist-util-is": "^5.0.0" |
34 | 37 | }, |
35 | 38 | "devDependencies": { |
36 | 39 | "@types/tape": "^4.0.0", |
37 | | - "browserify": "^17.0.0", |
| 40 | + "c8": "^7.0.0", |
38 | 41 | "dtslint": "^4.0.0", |
39 | | - "nyc": "^15.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 | 47 | "typescript": "^4.0.0", |
47 | 48 | "xo": "^0.38.0" |
48 | 49 | }, |
49 | 50 | "scripts": { |
50 | 51 | "format": "remark . -qfo && prettier . -w --loglevel warn && xo --fix", |
51 | | - "build-bundle": "browserify . -s unistUtilFindAllAfter -o unist-util-find-all-after.js", |
52 | | - "build-mangle": "browserify . -s unistUtilFindAllAfter -o unist-util-find-all-after.min.js -p tinyify", |
53 | | - "build": "npm run build-bundle && npm run build-mangle", |
54 | | - "test-api": "node test", |
55 | | - "test-coverage": "nyc --reporter lcov tape test.js", |
56 | | - "test-types": "dtslint .", |
57 | | - "test": "npm run format && npm run build && npm run test-coverage && npm run test-types" |
58 | | - }, |
59 | | - "nyc": { |
60 | | - "check-coverage": true, |
61 | | - "lines": 100, |
62 | | - "functions": 100, |
63 | | - "branches": 100 |
| 52 | + "test-api": "node test.js", |
| 53 | + "test-coverage": "c8 --check-coverage --branches 100 --functions 100 --lines 100 --statements 100 --reporter lcov node test.js", |
| 54 | + "test-types": "# dtslint .", |
| 55 | + "test": "npm run format && npm run test-coverage && npm run test-types" |
64 | 56 | }, |
65 | 57 | "prettier": { |
66 | 58 | "tabWidth": 2, |
|
72 | 64 | }, |
73 | 65 | "xo": { |
74 | 66 | "prettier": true, |
75 | | - "esnext": false, |
76 | 67 | "rules": { |
77 | | - "eqeqeq": [ |
78 | | - "error", |
79 | | - "always", |
80 | | - { |
81 | | - "null": "ignore" |
82 | | - } |
83 | | - ], |
84 | | - "guard-for-in": "off", |
85 | | - "no-eq-null": "off" |
| 68 | + "no-var": "off", |
| 69 | + "prefer-arrow-callback": "off" |
86 | 70 | }, |
87 | 71 | "ignore": [ |
88 | | - "unist-util-find-all-after.js", |
89 | | - "*.ts" |
| 72 | + "*.d.ts" |
90 | 73 | ] |
91 | 74 | }, |
92 | 75 | "remarkConfig": { |
|
0 commit comments