|
22 | 22 | "contributors": [ |
23 | 23 | "Titus Wormer <tituswormer@gmail.com> (https://wooorm.com)" |
24 | 24 | ], |
| 25 | + "sideEffects": false, |
| 26 | + "type": "module", |
| 27 | + "main": "index.js", |
| 28 | + "types": "index.d.ts", |
25 | 29 | "files": [ |
| 30 | + "index.d.ts", |
26 | 31 | "index.js", |
27 | | - "regex.js", |
28 | | - "*.d.ts" |
| 32 | + "regex.d.ts", |
| 33 | + "regex.js" |
29 | 34 | ], |
30 | 35 | "devDependencies": { |
31 | 36 | "@types/tape": "^4.0.0", |
32 | 37 | "@unicode/unicode-13.0.0": "^1.0.0", |
| 38 | + "c8": "^7.6.0", |
33 | 39 | "nyc": "^15.0.0", |
34 | 40 | "prettier": "^2.0.0", |
35 | 41 | "regenerate": "^1.0.0", |
|
42 | 48 | "xo": "^0.38.0" |
43 | 49 | }, |
44 | 50 | "scripts": { |
| 51 | + "build": "rimraf \"*.d.ts\" && tsc && type-coverage", |
45 | 52 | "generate": "node build", |
46 | 53 | "format": "remark . -qfo && prettier . -w --loglevel warn && xo --fix", |
47 | | - "test-api": "node test", |
48 | | - "test-coverage": "nyc --reporter lcov tape test.js", |
49 | | - "build": "rimraf \"*.d.ts\" && tsc && type-coverage", |
50 | | - "test": "npm run generate && npm run format && npm run test-coverage && npm run build", |
| 54 | + "test-api": "node test.js", |
| 55 | + "test-coverage": "c8 --check-coverage --branches 100 --functions 100 --lines 100 --statements 100 --reporter lcov node test.js", |
| 56 | + "test": "npm run generate && npm run build && npm run format && npm run test-coverage", |
51 | 57 | "prepack": "npm run build && npm run format" |
52 | 58 | }, |
53 | 59 | "prettier": { |
|
60 | 66 | }, |
61 | 67 | "xo": { |
62 | 68 | "prettier": true, |
63 | | - "esnext": false, |
64 | 69 | "rules": { |
| 70 | + "import/no-mutable-exports": "off", |
65 | 71 | "no-misleading-character-class": "off", |
66 | | - "no-useless-escape": "off", |
67 | | - "unicorn/no-fn-reference-in-iterator": "off", |
68 | | - "unicorn/no-hex-escape": "off", |
69 | | - "unicorn/better-regex": "off" |
| 72 | + "no-var": "off", |
| 73 | + "prefer-arrow-callback": "off" |
70 | 74 | } |
71 | 75 | }, |
72 | | - "nyc": { |
73 | | - "check-coverage": true, |
74 | | - "lines": 100, |
75 | | - "functions": 100, |
76 | | - "branches": 100 |
77 | | - }, |
78 | 76 | "remarkConfig": { |
79 | 77 | "plugins": [ |
80 | 78 | "preset-wooorm" |
|
0 commit comments