Browse Source

Correcting path to mocha binary

plugin-mode
Eli Perelman 8 years ago
parent
commit
d6d950f1cc
  1. 5
      packages/neutrino/.gitignore
  2. 2
      packages/neutrino/package.json
  3. 4
      packages/neutrino/src/mocha.js

5
packages/neutrino/.gitignore

@ -38,4 +38,7 @@ jspm_packages
.eslintcache .eslintcache
# Optional REPL history # Optional REPL history
.node_repl_history .node_repl_history
# Webstorm project metadata
.idea

2
packages/neutrino/package.json

@ -1,6 +1,6 @@
{ {
"name": "neutrino", "name": "neutrino",
"version": "3.0.0", "version": "3.0.1",
"description": "Create and build JS applications with managed configurations", "description": "Create and build JS applications with managed configurations",
"main": "bin/neutrino", "main": "bin/neutrino",
"bin": { "bin": {

4
packages/neutrino/src/mocha.js

@ -27,7 +27,7 @@ module.exports = (config, args, done) => {
argv.concat(`--${toParam(key)}`, mocha[key]); argv.concat(`--${toParam(key)}`, mocha[key]);
}, ['--require', require.resolve('./register')]); }, ['--require', require.resolve('./register')]);
proc = spawn('node_modules/.bin/mocha', args.files ? argv.concat(args.files) : argv, { proc = spawn(require.resolve('mocha/bin/mocha'), args.files ? argv.concat(args.files) : argv, {
cwd: process.cwd(), cwd: process.cwd(),
env: process.env, env: process.env,
stdio: 'inherit' stdio: 'inherit'
@ -36,4 +36,4 @@ module.exports = (config, args, done) => {
if (done) { if (done) {
proc.on('close', done); proc.on('close', done);
} }
}; };

Loading…
Cancel
Save