From 2cefa7eba09e3c4012c9d7aa70c1d7355119c08f Mon Sep 17 00:00:00 2001 From: Chris Thielen Date: Wed, 28 Mar 2018 17:06:22 -0700 Subject: [PATCH] fix(runner): use npx to launch apps instead of hard coded paths --- cypress-runner.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cypress-runner.js b/cypress-runner.js index 0151f61..e3cb850 100755 --- a/cypress-runner.js +++ b/cypress-runner.js @@ -25,8 +25,8 @@ if (!fs.existsSync(path)) { } const { fork } = require('child_process'); -const browserSync = fork('./node_modules/.bin/serve', ['-n', '-s', '-p', port, path]); -const cypress = fork('./node_modules/.bin/cypress', [cypressCmd]); +const browserSync = fork('npx', ['serve', '-n', '-s', '-p', port, path]); +const cypress = fork('npx', ['cypress', cypressCmd]); process.on('SIGINT', function() { browserSync.kill();