UNPKG

533 BJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3exports.addPackageWithInit = void 0;
4const schematics_1 = require("@angular-devkit/schematics");
5/**
6 * Calls init _if_ the package does not already exist
7 */
8function addPackageWithInit(packageName, testRunners = { unitTestRunner: 'jest', e2eTestRunner: 'cypress' }) {
9 return (0, schematics_1.externalSchematic)(packageName, 'init', Object.assign({}, testRunners));
10}
11exports.addPackageWithInit = addPackageWithInit;
12//# sourceMappingURL=ng-add.js.map
\No newline at end of file