Skip to content

Commit

Permalink
fix(build): angular versions are not properly inserted
Browse files Browse the repository at this point in the history
Fixes #470
  • Loading branch information
ThomasBurleson committed Oct 27, 2017
1 parent 5823f4a commit e3b7fde
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
8 changes: 7 additions & 1 deletion build-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = `/**
Expand All @@ -18,6 +23,7 @@ const buildLicense = `/**

module.exports = {
projectVersion: buildVersion,
angularVersion: angularVersion,
projectDir: __dirname,
packagesDir: join(__dirname, 'src'),
outputDir: join(__dirname, 'dist'),
Expand Down
4 changes: 2 additions & 2 deletions scripts/release/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit e3b7fde

Please sign in to comment.