From d21fa328a8d70b24f19cb2d7b0d3d468857a4a58 Mon Sep 17 00:00:00 2001 From: Vasil Raev Date: Mon, 16 Jul 2018 09:52:38 +0300 Subject: [PATCH] Add file extension into the main field. Should contains the full name of the main script to avoid errors. Currently if loaded in npkg as https://unpkg.com/systemjs-plugin-json@0.3.0 It redirects to https://unpkg.com/systemjs-plugin-json@0.3.0/json and results in `Cannot find "/json" in systemjs-plugin-json@0.3.0` After the fix it should redirect to `https://unpkg.com/systemjs-plugin-json@0.3.0/json.js` and load correctly. --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index bc84735..080165b 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "systemjs-plugin-json", "version": "0.3.0", - "main": "json", + "main": "json.js", "scripts": { "test": "serve ." },