From 886cb5273f26eff977526edbbe42c29d23b35847 Mon Sep 17 00:00:00 2001 From: Emelie Javelind Date: Thu, 3 Nov 2016 16:58:09 +0100 Subject: [PATCH] Added commonjs support --- index.js | 2 ++ package.json | 3 +-- 2 files changed, 3 insertions(+), 2 deletions(-) create mode 100644 index.js diff --git a/index.js b/index.js new file mode 100644 index 0000000..dc28340 --- /dev/null +++ b/index.js @@ -0,0 +1,2 @@ +require('./angular-drag-and-drop-lists.js'); +module.exports = 'dndLists'; diff --git a/package.json b/package.json index 86488d9..2a47737 100644 --- a/package.json +++ b/package.json @@ -1,11 +1,10 @@ { "name": "angular-drag-and-drop-lists", - "main": "angular-drag-and-drop-lists.js", "version": "1.4.0", "description": "Angular directives for sorting nested lists using the HTML5 Drag and Drop API", "repository": "https://github.com/marceljuenemann/angular-drag-and-drop-lists", "license": "MIT", - "main": "angular-drag-and-drop-lists.js", + "main": "index.js", "devDependencies": { "angular": "~1.4.9", "angular-mocks": "~1.4.9",