Skip to content
This repository was archived by the owner on Jan 6, 2025. It is now read-only.

build: move angular version to package.json #794

Merged
merged 1 commit into from
Jul 25, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions build-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@
*/
const {join} = require('path');

const package = require('./package.json');
const packageJson = require('./package.json');

/** Current version of the project*/
const buildVersion = package.version;
const buildVersion = packageJson.version;

/**
* Required Angular version for all Angular Layout packages. This version will be used
* as the peer dependency version for Angular in all release packages.
*/
const angularVersion = '^6.0.0';
const angularVersion = packageJson.requiredAngularVersion;

/** License that will be placed inside of all created bundles. */
const buildLicense = `/**
Expand Down
9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
"type": "git",
"url": "git+https://github.com/angular/flex-layout.git"
},
"license": "MIT",
"engines": {
"node": ">= 5.4.1"
},
"scripts": {
"demo:serve": "gulp serve:devapp",
"demo:stage": "gulp stage-deploy:devapp",
Expand All @@ -22,10 +26,7 @@
"universal:serve": "gulp universal:serve"
},
"version": "6.0.0-beta.16",
"license": "MIT",
"engines": {
"node": ">= 5.4.1"
},
"requiredAngularVersion": ">=6.0.0 <7.0.0",
"dependencies": {
"@angular/cdk": "6.0.0",
"@angular/common": "^6.0.0",
Expand Down