diff --git a/build-config.js b/build-config.js index 34f91137f..e47b125d3 100644 --- a/build-config.js +++ b/build-config.js @@ -4,8 +4,13 @@ */ const {join} = require('path'); +const package = require('./package.json'); + /** Current version of the project*/ -const buildVersion = require('./package.json').version; +const buildVersion = package.version; + +/** Required Angular version for the project. */ +const angularVersion = package.dependencies['@angular/core']; /** License that will be placed inside of all created bundles. */ const buildLicense = `/** @@ -18,6 +23,7 @@ const buildLicense = `/** module.exports = { projectVersion: buildVersion, + angularVersion: angularVersion, projectDir: __dirname, packagesDir: join(__dirname, 'src'), outputDir: join(__dirname, 'dist'), diff --git a/scripts/release/package.json b/scripts/release/package.json index ae30f4d51..04e267f3e 100644 --- a/scripts/release/package.json +++ b/scripts/release/package.json @@ -24,8 +24,8 @@ }, "homepage": "https://github.com/angular/flex-layout#readme", "peerDependencies": { - "@angular/core": "^4.0.0", - "@angular/common": "^4.0.0" + "@angular/core": "0.0.0-NG", + "@angular/common": "0.0.0-NG" }, "dependencies": { "tslib": "^1.7.1"