mirror of https://github.com/embarklabs/embark.git
when whenNoShim runs noShim if-branch main should return immediately
This commit is contained in:
parent
a9bf409aa0
commit
f3ba725efc
12
bin/embark
12
bin/embark
|
@ -15,7 +15,7 @@
|
||||||
// package.json under `{"embark": {...}}` -or- stored in an embark.json file.
|
// package.json under `{"embark": {...}}` -or- stored in an embark.json file.
|
||||||
|
|
||||||
function main() {
|
function main() {
|
||||||
whenNoShim();
|
if (whenNoShim()) return;
|
||||||
var invoked = thisEmbark();
|
var invoked = thisEmbark();
|
||||||
var embarkJson = findEmbarkJson();
|
var embarkJson = findEmbarkJson();
|
||||||
var dappPath = embarkJson.dirname;
|
var dappPath = embarkJson.dirname;
|
||||||
|
@ -725,13 +725,9 @@ function thisEmbark() {
|
||||||
}
|
}
|
||||||
|
|
||||||
function whenNoShim() {
|
function whenNoShim() {
|
||||||
var noShim = false;
|
var noShim = !!process.env.EMBARK_NO_SHIM;
|
||||||
if (process.env.EMBARK_NO_SHIM) {
|
if (noShim) EmbarkBin.prototype.exec();
|
||||||
noShim = true;
|
return noShim;
|
||||||
}
|
|
||||||
if (noShim) {
|
|
||||||
EmbarkBin.prototype.exec();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// -- reporters ----------------------------------------------------------------
|
// -- reporters ----------------------------------------------------------------
|
||||||
|
|
Loading…
Reference in New Issue