1 | "use strict";
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | exports.setDefaultCollection = void 0;
|
4 | const workspace_1 = require("../workspace");
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 | function setDefaultCollection(collectionName) {
|
11 | return (0, workspace_1.updateWorkspace)((workspace) => {
|
12 | workspace.extensions.cli = workspace.extensions.cli || {};
|
13 | const defaultCollection = workspace.extensions.cli &&
|
14 | workspace.extensions.cli.defaultCollection;
|
15 | if (!defaultCollection || defaultCollection === '@nrwl/workspace') {
|
16 | workspace.extensions.cli.defaultCollection =
|
17 | collectionName;
|
18 | }
|
19 | });
|
20 | }
|
21 | exports.setDefaultCollection = setDefaultCollection;
|
22 |
|
\ | No newline at end of file |