From 32cee932065496e06003363eb6aefc2b668193a8 Mon Sep 17 00:00:00 2001 From: Wesley Queiroz Date: Wed, 23 Mar 2016 11:54:24 -0300 Subject: [PATCH 1/2] Targeting main file for importing with npm When using npm and ES6 loaders such jspm (System.js). We have to import `angular-easyfb/src/angular-easyfb` instead of just `angular-easyfb`, because of package.json main file being index.js which doesn't exist. Pointing to main file in build directory fixes this. We could also point to build file if needed. --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index d35c166..5a3a56c 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "angular-easyfb", "version": "1.4.1", "description": "Super easy AngularJS + Facebook JavaScript SDK.", - "main": "index.js", + "main": "src/angular-easyfb.js", "directories": {}, "scripts": { "test": "grunt test" From 986a8edd7106cf34a572d39148778cff158f4f8e Mon Sep 17 00:00:00 2001 From: Wesley Queiroz Date: Sun, 27 Mar 2016 02:27:01 -0300 Subject: [PATCH 2/2] Targeting build file. As requested. --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 5a3a56c..3900936 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "angular-easyfb", "version": "1.4.1", "description": "Super easy AngularJS + Facebook JavaScript SDK.", - "main": "src/angular-easyfb.js", + "main": "build/angular-easyfb.js", "directories": {}, "scripts": { "test": "grunt test"