fix sed issue in windows

This commit is contained in:
Jonathan Rainville 2018-08-15 11:42:28 -04:00 committed by Iuri Matias
parent 30d075380b
commit 6589101deb
3 changed files with 4 additions and 14 deletions

View File

@ -3,16 +3,6 @@ const constants = require('../lib/constants');
require('colors'); require('colors');
// TODO: can this moved somewhere else? (e.g webpackProcess.js)
// Override process.chdir so that we have a partial-implementation PWD for Windows
const realChdir = process.chdir;
process.chdir = (...args) => {
if (!process.env.PWD) {
process.env.PWD = process.cwd();
}
realChdir(...args);
};
let version = require('../package.json').version; let version = require('../package.json').version;
class EmbarkController { class EmbarkController {

View File

@ -30,7 +30,7 @@ class TemplateGenerator {
} }
generate(destinationFolder, name) { generate(destinationFolder, name) {
console.log(__('Initializing Embark Template....').green); console.log(__('Initializing Embark Template...').green);
let templatePath = fs.embarkPath(utils.joinPath('templates', this.templateName)); let templatePath = fs.embarkPath(utils.joinPath('templates', this.templateName));
let fspath = utils.joinPath(destinationFolder, name); let fspath = utils.joinPath(destinationFolder, name);

View File

@ -467,9 +467,9 @@ module.exports = {
pingEndpoint, pingEndpoint,
decodeParams, decodeParams,
runCmd, runCmd,
cd: cd, cd,
sed: sed, sed,
exit: exit, exit,
downloadFile, downloadFile,
extractTar, extractTar,
extractZip, extractZip,