index.js 660 B

12345678910111213141516171819
  1. "use strict";
  2. /**
  3. * @license
  4. * Copyright Google LLC All Rights Reserved.
  5. *
  6. * Use of this source code is governed by an MIT-style license that can be
  7. * found in the LICENSE file at https://angular.dev/license
  8. */
  9. Object.defineProperty(exports, "__esModule", { value: true });
  10. exports.default = default_1;
  11. const generate_from_files_1 = require("../utility/generate-from-files");
  12. function default_1(options) {
  13. // This schematic uses an older method to implement the flat option
  14. const flat = options.flat;
  15. options.flat = true;
  16. return (0, generate_from_files_1.generateFromFiles)(options, {
  17. 'if-flat': (s) => (flat ? '' : s),
  18. });
  19. }