From 43437741f5321b334245af482561b31d94a36ec9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fredrik=20Sim=C3=B3n?= Date: Tue, 30 Aug 2016 11:01:25 +0200 Subject: [PATCH] CommonJS support --- 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..17ec8d0 --- /dev/null +++ b/index.js @@ -0,0 +1,2 @@ +require('./release/angular-recaptcha.js'); +module.exports = 'vcRecaptcha'; diff --git a/package.json b/package.json index ea064cd..a0ec7dd 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "author": "VividCortex", "license": "MIT", "homepage": "https://github.com/vividcortex/angular-recaptcha", - "main": "release/angular-recaptcha.js", + "main": "index.js", "repository": { "type": "git", "url": "git://github.com/vividcortex/angular-recaptcha.git"