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');
// 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;
class EmbarkController {

View File

@ -30,7 +30,7 @@ class TemplateGenerator {
}
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 fspath = utils.joinPath(destinationFolder, name);

View File

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