Skip to content
This repository was archived by the owner on Dec 24, 2019. It is now read-only.

Commit 88a4189

Browse files
author
Patrick Burtchaell
authored
Merge pull request #129 from pburtchaell/pburtchaell-scripts
Remove `npm bin` for Windows suport
2 parents 74b29db + 7a34475 commit 88a4189

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

bin/test.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# Param 1: the reporter to use, defaults to spec
55
runTests()
66
{
7-
`npm bin`/mocha \
7+
node_modules/.bin/mocha \
88
--compilers js:babel-core/register \
99
--reporter ${1-spec} \
1010
--recursive --timeout 5000 \
@@ -15,7 +15,7 @@ runTests()
1515
runIstanbul()
1616
{
1717
NODE_ENV=test `npm bin`/istanbul cover \
18-
`npm bin`/_mocha \
18+
node_modules/.bin/_mocha \
1919
-- -u exports --compilers js:babel-core/register \
2020
--report lcovonly \
2121
test/polyfills.js test/*.js

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@
77
"prepublish": "npm run build",
88
"precommit": "echo 'Running pre-commit hooks...' && npm test",
99
"prebuild": "npm test",
10-
"build": "`npm bin`/babel src -d dist",
10+
"build": "node_modules/.bin/babel src -d dist",
1111
"pretest": "npm run lint",
1212
"test": "./bin/test.sh",
13-
"lint": "`npm bin`/eslint src/**/*.js test/**/*.js",
13+
"lint": "node_modules/.bin/eslint src/**/*.js test/**/*.js",
1414
"start": "node examples/server.js"
1515
},
1616
"pre-commit": [

0 commit comments

Comments
 (0)