1 | "use strict";
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | exports.CollectionFactory = void 0;
|
4 | const runners_1 = require("../runners");
|
5 | const collection_1 = require("./collection");
|
6 | const custom_collection_1 = require("./custom.collection");
|
7 | const nest_collection_1 = require("./nest.collection");
|
8 | class CollectionFactory {
|
9 | static create(collection) {
|
10 | const schematicRunner = runners_1.RunnerFactory.create(runners_1.Runner.SCHEMATIC);
|
11 | if (collection === collection_1.Collection.NESTJS) {
|
12 | return new nest_collection_1.NestCollection(schematicRunner);
|
13 | }
|
14 | else {
|
15 | return new custom_collection_1.CustomCollection(collection, schematicRunner);
|
16 | }
|
17 | }
|
18 | }
|
19 | exports.CollectionFactory = CollectionFactory;
|