From 946098fae257726ff63a79d176e155f1f1e51a4b Mon Sep 17 00:00:00 2001 From: Simon Brunel Date: Sat, 2 Mar 2019 19:32:01 +0100 Subject: [PATCH] Remove sources from npm package and create alias --- package.json | 2 +- src/chart.js | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 src/chart.js diff --git a/package.json b/package.json index c6ffba4c75c..f7c0af25a76 100644 --- a/package.json +++ b/package.json @@ -27,7 +27,7 @@ "composer.json", "dist/*.css", "dist/*.js", - "src" + "src/chart.js" ], "devDependencies": { "clean-css": "^4.2.1", diff --git a/src/chart.js b/src/chart.js new file mode 100644 index 00000000000..0b8a1913b50 --- /dev/null +++ b/src/chart.js @@ -0,0 +1,6 @@ +/** + * DEPRECATED since version 2.8, this file is provided for + * backward compatibility and will be removed at version 3. + * https://github.com/chartjs/Chart.js/pull/6105 + */ +module.exports = require('../dist/Chart');