From a2c6dfc92f0e2fb1028aa40a65054f21a39984db Mon Sep 17 00:00:00 2001 From: Paul Gschwendtner Date: Thu, 9 Aug 2018 22:06:11 +0200 Subject: [PATCH] build: fix invalid required angular version (#12089) --- build-config.js | 2 +- package.json | 9 +++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/build-config.js b/build-config.js index f607cdd22b8..eae00f78686 100644 --- a/build-config.js +++ b/build-config.js @@ -13,7 +13,7 @@ const buildVersion = packageJson.version; * Required Angular version for all Angular Material packages. This version will be used * as the peer dependency version for Angular in all release packages. */ -const angularVersion = '>=6.0.0-beta.0 <7.0.0'; +const angularVersion = packageJson.requiredAngularVersion; /** License that will be placed inside of all created bundles. */ const buildLicense = `/** diff --git a/package.json b/package.json index 9850cdc4ab4..a8fe6de2b6d 100644 --- a/package.json +++ b/package.json @@ -7,6 +7,10 @@ "type": "git", "url": "https://github.com/angular/material2.git" }, + "license": "MIT", + "engines": { + "node": ">= 5.4.1" + }, "scripts": { "postinstall": "ngc -p angular.tsconfig.json", "build": "gulp :publish:build-releases", @@ -21,10 +25,7 @@ "api": "gulp api-docs" }, "version": "6.4.2", - "license": "MIT", - "engines": { - "node": ">= 5.4.1" - }, + "requiredAngularVersion": ">=6.0.0 <7.0.0", "dependencies": { "@angular/animations": "6.0.0", "@angular/common": "6.0.0",