From c1c5a241491f45704b7a645f33edc9a8dec44706 Mon Sep 17 00:00:00 2001 From: Raynos Date: Tue, 3 Sep 2013 17:45:13 -0700 Subject: [PATCH] Add main field and publish on npm This will allow usage like ```js var createButton = require("PayPalJSButtons").apps.ButtonFactory.create var button = createButton(window.paypalMerchantId, { name: "my-app", amount: "80.00", currency: "USD", recurrence: "1", period: "M", env: "sandbox", }, "subscribe") ``` --- package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/package.json b/package.json index 21b9631..3318425 100644 --- a/package.json +++ b/package.json @@ -7,6 +7,7 @@ "name": "Jeff Harrell", "url": "https://github.com/jeffharrell/" }, + "main": "src/paypal-button.js", "contributors": [ { "name": "Mark Stuart",