From 5d475318b628fa280d6638ca32b4e394233c3a06 Mon Sep 17 00:00:00 2001 From: Kipras Melnikovas Date: Tue, 25 Jun 2019 14:18:33 +0300 Subject: [PATCH 1/2] Change `chart.js` to a peer dependency This allows the user to install the preferred chart.js version For example, I needed some bugfixes from upstream. --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 82dcc08..33af2f7 100644 --- a/package.json +++ b/package.json @@ -11,12 +11,12 @@ "start": "webpack-dev-server --progress --profile --colors --watch --display-error-details --display-cached --content-base dev/" }, "peerDependencies": { + "chart.js": ">= 2.7 < 3", "@angular/common": ">=4.0.0 || ^2.0.0", "@angular/compiler": ">=4.0.0 || ^2.0.0", "@angular/core": ">=4.0.0 || ^2.0.0" }, "dependencies": { - "chart.js": "^2.3.0" }, "author": "Chen, Yi-Cyuan ", "license": "MIT", From 142f729dd63e0d5753fc40299ddd6f4392399903 Mon Sep 17 00:00:00 2001 From: Kipras Melnikovas Date: Tue, 25 Jun 2019 14:20:30 +0300 Subject: [PATCH 2/2] Change min chart.js version to 2 Though that this might be more appropriate --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 33af2f7..5d1fda0 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,7 @@ "start": "webpack-dev-server --progress --profile --colors --watch --display-error-details --display-cached --content-base dev/" }, "peerDependencies": { - "chart.js": ">= 2.7 < 3", + "chart.js": ">= 2 < 3", "@angular/common": ">=4.0.0 || ^2.0.0", "@angular/compiler": ">=4.0.0 || ^2.0.0", "@angular/core": ">=4.0.0 || ^2.0.0"