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

Commit e3b7fde

Browse files
fix(build): angular versions are not properly inserted
Fixes #470
1 parent 5823f4a commit e3b7fde

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

build-config.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,13 @@
44
*/
55
const {join} = require('path');
66

7+
const package = require('./package.json');
8+
79
/** Current version of the project*/
8-
const buildVersion = require('./package.json').version;
10+
const buildVersion = package.version;
11+
12+
/** Required Angular version for the project. */
13+
const angularVersion = package.dependencies['@angular/core'];
914

1015
/** License that will be placed inside of all created bundles. */
1116
const buildLicense = `/**
@@ -18,6 +23,7 @@ const buildLicense = `/**
1823

1924
module.exports = {
2025
projectVersion: buildVersion,
26+
angularVersion: angularVersion,
2127
projectDir: __dirname,
2228
packagesDir: join(__dirname, 'src'),
2329
outputDir: join(__dirname, 'dist'),

scripts/release/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@
2424
},
2525
"homepage": "https://github.com/angular/flex-layout#readme",
2626
"peerDependencies": {
27-
"@angular/core": "^4.0.0",
28-
"@angular/common": "^4.0.0"
27+
"@angular/core": "0.0.0-NG",
28+
"@angular/common": "0.0.0-NG"
2929
},
3030
"dependencies": {
3131
"tslib": "^1.7.1"

0 commit comments

Comments
 (0)