UNPKG

732 BJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3exports.createLazyProductionDeps = void 0;
4const lazy_val_1 = require("lazy-val");
5const appBuilder_1 = require("./appBuilder");
6function createLazyProductionDeps(projectDir, excludedDependencies) {
7 return new lazy_val_1.Lazy(async () => {
8 const args = ["node-dep-tree", "--dir", projectDir];
9 if (excludedDependencies != null) {
10 for (const name of excludedDependencies) {
11 args.push("--exclude-dep", name);
12 }
13 }
14 return appBuilder_1.executeAppBuilderAsJson(args);
15 });
16}
17exports.createLazyProductionDeps = createLazyProductionDeps;
18//# sourceMappingURL=packageDependencies.js.map
\No newline at end of file