thedesk/app/node_modules/app-builder-lib/out/util/packageDependencies.js

42 lines
862 B
JavaScript
Raw Normal View History

2019-09-13 00:38:13 +10:00
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.createLazyProductionDeps = createLazyProductionDeps;
function _lazyVal() {
const data = require("lazy-val");
_lazyVal = function () {
return data;
};
return data;
}
function _appBuilder() {
const data = require("./appBuilder");
_appBuilder = function () {
return data;
};
return data;
}
function createLazyProductionDeps(projectDir, excludedDependencies) {
return new (_lazyVal().Lazy)(async () => {
const args = ["node-dep-tree", "--dir", projectDir];
if (excludedDependencies != null) {
for (const name of excludedDependencies) {
args.push("--exclude-dep", name);
}
}
return (0, _appBuilder().executeAppBuilderAsJson)(args);
});
}
// __ts-babel@6.0.4
//# sourceMappingURL=packageDependencies.js.map