Skip to content

Commit c3247ef

Browse files
committed
chore(try-to-catch) lint
1 parent be385bd commit c3247ef

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

.madrun.js

+4-3
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,11 @@ const {run} = require('madrun');
44

55
module.exports = {
66
'test': () => `tape 'test/*.js'`,
7-
'watch:test': () => 'nodemon -w lib -w test -x "npm test"',
7+
'watch:test': async () => await run('watcher', await run('test')),
8+
'watcher': () => 'nodemon -w test -w lib -w bin --exec',
89
'lint': () => 'putout .',
910
'fix:lint': () => run('lint', '--fix'),
10-
'coverage': () => 'nyc npm test',
11-
'report': () => 'nyc report --reporter=text-lcov | coveralls',
11+
'coverage': async () => `c8 ${await run('test')}`,
12+
'report': () => 'c8 report --reporter=lcov',
1213
};
1314

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
# Try to Catch [![NPM version][NPMIMGURL]][NPMURL] [![Build Status][BuildStatusIMGURL]][BuildStatusURL] [![Coverage Status][CoverageIMGURL]][CoverageURL]
22

33
[NPMIMGURL]: https://img.shields.io/npm/v/try-to-catch.svg?style=flat&longCache=true
4-
[BuildStatusIMGURL]: https://img.shields.io/travis/coderaiser/try-to-catch/master.svg?style=flat&longCache=true
54
[NPMURL]: https://npmjs.org/package/try-to-catch "npm"
6-
[BuildStatusURL]: https://travis-ci.org/coderaiser/try-to-catch "Build Status"
75
[CoverageURL]: https://coveralls.io/github/coderaiser/try-to-catch?branch=master
86
[CoverageIMGURL]: https://coveralls.io/repos/coderaiser/try-to-catch/badge.svg?branch=master&service=github
7+
[BuildStatusURL]: https://github.com/coderaiser/putout/actions?query=workflow%3A%22Node+CI%22 "Build Status"
8+
[BuildStatusIMGURL]: https://github.com/coderaiser/putout/workflows/Node%20CI/badge.svg
99

1010
Functional `try-catch` wrapper for `promises`.
1111

package.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,12 @@
3030
"then"
3131
],
3232
"devDependencies": {
33-
"coveralls": "^3.0.0",
33+
"c8": "^7.11.2",
3434
"eslint": "^8.10.0",
3535
"eslint-plugin-node": "^11.0.0",
3636
"eslint-plugin-putout": "^15.1.1",
3737
"madrun": "^9.0.0",
3838
"nodemon": "^2.0.2",
39-
"nyc": "^15.0.0",
4039
"putout": "^25.4.1",
4140
"supertape": "^7.2.0"
4241
},

0 commit comments

Comments
 (0)