Skip to content

Commit

Permalink
Switch to codecov
Browse files Browse the repository at this point in the history
  • Loading branch information
jonaskello committed Dec 12, 2018
1 parent e7ca5bb commit 923e9e7
Show file tree
Hide file tree
Showing 4 changed files with 197 additions and 156 deletions.
2 changes: 1 addition & 1 deletion .nycrc.json
Expand Up @@ -2,7 +2,7 @@
"include": ["src/**/*.{ts,tsx}"],
"exclude": ["src/register.ts"],
"extension": [".ts", ".tsx"],
"reporter": ["html", "lcov", "text"],
"reporter": ["json"],
"sourceMap": true,
"all": true
}
6 changes: 3 additions & 3 deletions README.md
Expand Up @@ -2,7 +2,7 @@

[![npm version][version-image]][version-url]
[![travis build][travis-image]][travis-url]
[![coveralls coverage][coveralls-image]][coveralls-url]
[![Coverage Status][codecov-image]][codecov-url]
[![MIT license][license-image]][license-url]
[![code style: prettier][prettier-image]][prettier-url]

Expand Down Expand Up @@ -211,8 +211,8 @@ This is the async version of `matchFromAbsolutePaths`. It has the same signature
[version-url]: https://www.npmjs.com/package/tsconfig-paths
[travis-image]: https://travis-ci.com/dividab/tsconfig-paths.svg?branch=master&style=flat
[travis-url]: https://travis-ci.com/dividab/tsconfig-paths
[coveralls-image]: https://coveralls.io/repos/github/dividab/tsconfig-paths/badge.svg?style=flat
[coveralls-url]: https://coveralls.io/github/dividab/tsconfig-paths
[codecov-image]: https://codecov.io/gh/dividab/tsconfig-paths/branch/master/graph/badge.svg
[codecov-url]: https://codecov.io/gh/dividab/tsconfig-paths
[license-image]: https://img.shields.io/github/license/dividab/tsconfig-paths.svg?style=flat
[license-url]: https://opensource.org/licenses/MIT
[prettier-image]: https://img.shields.io/badge/code_style-prettier-ff69b4.svg
Expand Down
19 changes: 9 additions & 10 deletions package.json
@@ -1,7 +1,8 @@
{
"name": "tsconfig-paths",
"version": "3.7.0",
"description": "Load node modules according to tsconfig paths, in run-time or via API.",
"description":
"Load node modules according to tsconfig paths, in run-time or via API.",
"main": "lib/index.js",
"types": "lib/index",
"author": "Jonas Kello",
Expand All @@ -16,7 +17,7 @@
"@types/strip-bom": "^3.0.0",
"@types/strip-json-comments": "^0.0.30",
"chai": "^4.1.2",
"coveralls": "^3.0.0",
"codecov": "^3.1.0",
"husky": "^0.14.3",
"lint-staged": "^4.3.0",
"mocha": "^5.2.0",
Expand All @@ -37,8 +38,10 @@
},
"scripts": {
"start": "cd src && ts-node index.ts",
"example:node": "yarn build && cd ./example/node && ts-node -r ../register.js main.ts",
"example:project": "yarn build && ts-node -r ./register.js -P ./example/project/tsconfig.json ./example/project/main.ts",
"example:node":
"yarn build && cd ./example/node && ts-node -r ../register.js main.ts",
"example:project":
"yarn build && ts-node -r ./register.js -P ./example/project/tsconfig.json ./example/project/main.ts",
"example:api": "cd example/api && ts-node main.ts",
"example:perf": "cd example/perf && ts-node main.ts",
"test": "mocha",
Expand All @@ -47,17 +50,13 @@
"lint": "tslint './{src,tests}/**/*.ts{,x}'",
"verify": "yarn build && yarn lint && yarn coverage",
"coverage": "rimraf coverage .nyc_output && nyc yarn test",
"report-coverage": "cat ./coverage/lcov.info | coveralls",
"report-coverage": "codecov -f coverage/*.json",
"precommit": "lint-staged",
"publish:major": "yarn build && node scripts/publish.js major",
"publish:minor": "yarn build && node scripts/publish.js minor",
"publish:patch": "yarn build && node scripts/publish.js patch"
},
"lint-staged": {
"*.ts": [
"tslint",
"prettier --write",
"git add"
]
"*.ts": ["tslint", "prettier --write", "git add"]
}
}

0 comments on commit 923e9e7

Please sign in to comment.