mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
Fix running tasks on Windows (elastic/kibana-plugin-helpers#37)
* create windows cmd wrapper * use windows cmd wrapper on browser tests * be explicit about the mocha command location * use windows cmd wrapper on server tests * use windows cmd wrapper on build default to using npm as well Original commit: elastic/kibana-plugin-helpers@35f80a08ce
This commit is contained in:
parent
142d2dff2d
commit
a773536c06
4 changed files with 15 additions and 4 deletions
5
packages/kbn-plugin-helpers/lib/win_cmd.js
Normal file
5
packages/kbn-plugin-helpers/lib/win_cmd.js
Normal file
|
@ -0,0 +1,5 @@
|
|||
var platform = require('os').platform();
|
||||
|
||||
module.exports = function winCmd(cmd) {
|
||||
return /^win/.test(platform) ? cmd + '.cmd' : cmd;
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue