index.js 674 B

12345678910111213141516
  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. return options.functional
  14. ? (0, generate_from_files_1.generateFromFiles)({ ...options, templateFilesDirectory: './functional-files' })
  15. : (0, generate_from_files_1.generateFromFiles)({ ...options, templateFilesDirectory: './class-files' });
  16. }