1 | "use strict";
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | exports.createLazyProductionDeps = void 0;
|
4 | const lazy_val_1 = require("lazy-val");
|
5 | const appBuilder_1 = require("./appBuilder");
|
6 | function 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 (0, appBuilder_1.executeAppBuilderAsJson)(args);
|
15 | });
|
16 | }
|
17 | exports.createLazyProductionDeps = createLazyProductionDeps;
|
18 |
|
\ | No newline at end of file |