Skip to content

Commit b5bb99a

Browse files
committed
fix: replaced mocha compilers with requires
1 parent 9375455 commit b5bb99a

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

package.json

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,17 @@
44
"description": "datree.io Node.js module",
55
"main": "dist/index.js",
66
"scripts": {
7-
"test": "nyc ./node_modules/mocha/bin/mocha --compilers js:babel-core/register test/ && nyc report --reporter=text-lcov | coveralls",
8-
"test-html": "nyc --reporter=html --reporter=text ./node_modules/mocha/bin/mocha --compilers js:babel-core/register test/ && open coverage/index.html",
7+
"test":
8+
"nyc ./node_modules/mocha/bin/mocha --require babel-core/register test/ && nyc report --reporter=text-lcov | coveralls",
9+
"test-html":
10+
"nyc --reporter=html --reporter=text ./node_modules/mocha/bin/mocha --require babel-core/register test/ && open coverage/index.html",
911
"clean": "rm -rf dist",
10-
"build": "npm run clean && mkdir dist && babel index.js lib/* -s -d dist && cp package.json dist/",
11-
"semantic-release": "semantic-release pre && npm publish && semantic-release post",
12-
"semantic-release-local": "semantic-release pre --debug=false && npm publish && semantic-release post --debug=false",
12+
"build":
13+
"npm run clean && mkdir dist && babel index.js lib/* -s -d dist && cp package.json dist/",
14+
"semantic-release":
15+
"semantic-release pre && npm publish && semantic-release post",
16+
"semantic-release-local":
17+
"semantic-release pre --debug=false && npm publish && semantic-release post --debug=false",
1318
"postinstall": "node dist/lib/install.js",
1419
"preuninstall": "node dist/lib/uninstall.js"
1520
},

0 commit comments

Comments
 (0)