Skip to content

Commit aeed1bf

Browse files
ci(travis): move coveralls script from package.json to .travis.yml
Use `npx` so we can remove `coveralls` from devDependencies
1 parent 452f6be commit aeed1bf

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

.travis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ script:
1212
- npm run build
1313
- npm run benchmark
1414
after_success:
15-
- npm run coveralls
15+
- npx nyc report --reporter=text-lcov | npx coveralls
1616
cache:
1717
directories:
1818
- node_modules

package.json

-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
"build:min": "cross-env NODE_ENV=production rollup --config --file dist/html-react-parser.min.js --sourcemap",
1111
"build:unmin": "cross-env NODE_ENV=development rollup --config --file dist/html-react-parser.js",
1212
"clean": "rimraf dist",
13-
"coveralls": "nyc report --reporter=text-lcov | coveralls",
1413
"lint": "eslint --ignore-path .gitignore --ignore-pattern /examples/ .",
1514
"lint:dts": "dtslint .",
1615
"lint:fix": "npm run lint -- --fix",
@@ -45,7 +44,6 @@
4544
"@commitlint/config-conventional": "^8.2.0",
4645
"@types/react": "^16.9.11",
4746
"benchmark": "^2.1.4",
48-
"coveralls": "^3.0.7",
4947
"cross-env": "^6.0.3",
5048
"dtslint": "^2.0.0",
5149
"eslint": "^6.6.0",

0 commit comments

Comments
 (0)