From c0d1dad3f4b74a0fc55f3fcf164cc5c126e0d0d7 Mon Sep 17 00:00:00 2001 From: "aurelien.praga" Date: Fri, 17 Mar 2017 11:10:19 +0100 Subject: [PATCH] Add compatibility to use with the "import" syntax. --- index.js | 2 ++ package.json | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 index.js diff --git a/index.js b/index.js new file mode 100644 index 0000000..947adae --- /dev/null +++ b/index.js @@ -0,0 +1,2 @@ +require('./dist/angular-timeago'); +module.exports = 'yaru22.angular-timeago'; \ No newline at end of file diff --git a/package.json b/package.json index c4cf190..aee628d 100644 --- a/package.json +++ b/package.json @@ -52,7 +52,7 @@ "protractor": "4.0.11", "serve-static": "1.11.1" }, - "main": "dist/angular-timeago.js", + "main": "index.js", "scripts": { "test": "grunt test" }