From 66f6c9d6f0fff1645a78ad87d40498dd78f23b3a Mon Sep 17 00:00:00 2001 From: Leigh Johnson Date: Wed, 27 Jul 2016 14:23:50 -0400 Subject: [PATCH] make compatible with amd-named & commonjs bundlers --- 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..4e3cd03 --- /dev/null +++ b/index.js @@ -0,0 +1,2 @@ +require('./release/angular-breadcrumb.js'); +module.exports = 'ncy-angular-breadcrumb'; diff --git a/package.json b/package.json index 960a174..3d481df 100644 --- a/package.json +++ b/package.json @@ -20,7 +20,7 @@ "url": "https://github.com/ncuillery/angular-breadcrumb/blob/master/LICENSE-MIT" } ], - "main": "release/angular-breadcrumb.js", + "main": "index.js", "engines": { "node": ">= 0.10.0" },