version-names.js 1.1 KB

1234567891011121314151617181920212223242526272829
  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.io/license
  8. */
  9. Object.defineProperty(exports, "__esModule", { value: true });
  10. /** Name of the Material version that is shipped together with the schematics. */
  11. exports.materialVersion = loadPackageVersionGracefully('@angular/cdk') ||
  12. loadPackageVersionGracefully('@angular/material');
  13. /**
  14. * Range of Angular versions that can be used together with the Angular Material version
  15. * that provides these schematics.
  16. */
  17. exports.requiredAngularVersionRange = '^8.0.0 || ^9.0.0-0';
  18. /** HammerJS version that should be installed if gestures will be set up. */
  19. exports.hammerjsVersion = '^2.0.8';
  20. /** Loads the full version from the given Angular package gracefully. */
  21. function loadPackageVersionGracefully(packageName) {
  22. try {
  23. return require(`${packageName}/package.json`).version;
  24. }
  25. catch (_a) {
  26. return null;
  27. }
  28. }
  29. //# sourceMappingURL=version-names.js.map