mirror of https://github.com/embarklabs/embark.git
rm redundant setup of env vars
This commit is contained in:
parent
76502fa693
commit
53a4fd2089
|
@ -5,11 +5,6 @@ process.on('uncaughtException', function(e){
|
||||||
const constants = require('../../constants');
|
const constants = require('../../constants');
|
||||||
const Events = require('./eventsWrapper');
|
const Events = require('./eventsWrapper');
|
||||||
|
|
||||||
// Set PWD to CWD since Windows doesn't have a value for PWD
|
|
||||||
if (!process.env.PWD) {
|
|
||||||
process.env.PWD = process.cwd();
|
|
||||||
}
|
|
||||||
|
|
||||||
class ProcessWrapper {
|
class ProcessWrapper {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -10,12 +10,6 @@ class WebpackProcess extends ProcessWrapper {
|
||||||
constructor(options) {
|
constructor(options) {
|
||||||
super(options);
|
super(options);
|
||||||
this.webpackConfigName = options.webpackConfigName;
|
this.webpackConfigName = options.webpackConfigName;
|
||||||
if (!process.env.DAPP_PATH) {
|
|
||||||
process.env.DAPP_PATH = fs.dappPath();
|
|
||||||
}
|
|
||||||
if (!process.env.EMBARK_PATH) {
|
|
||||||
process.env.EMBARK_PATH = fs.embarkPath();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
async build(assets, importsList, callback) {
|
async build(assets, importsList, callback) {
|
||||||
|
|
Loading…
Reference in New Issue