From 3abbfc33a7d7fa70893c65897a33cfc4d404bcc1 Mon Sep 17 00:00:00 2001 From: t1st3 Date: Sun, 14 May 2017 14:37:35 +0200 Subject: [PATCH 1/3] fix: license should be a valid SPDX license expression when `npm install` on a fork, npm complains that license filed in package.json is not valid. See https://docs.npmjs.com/files/package.json#license for valid `license` expressions --- package.json | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/package.json b/package.json index 6f3c7eb2..f081bda7 100644 --- a/package.json +++ b/package.json @@ -29,10 +29,7 @@ }, "main": "dist/howler.js", "version": "2.0.3", - "license": { - "type": "MIT", - "url": "https://raw.githubusercontent.com/goldfire/howler.js/master/LICENSE.md" - }, + "license": "MIT", "files": [ "src", "dist/howler.js", From 9ad4f57d1990b89a9b3ad5529bbc0f183e7633c2 Mon Sep 17 00:00:00 2001 From: t1st3 Date: Sun, 14 May 2017 14:48:03 +0200 Subject: [PATCH 2/3] fix: license should be a valid SPDX license expression when `npm install` on the repo or a fork, npm complains that license field in package.json is not valid. See https://docs.npmjs.com/files/package.json#license for valid `license` expressions Same applies for bower.json: https://github.com/bower/spec/blob/master/json.md#license Both must be a string containing a valid SPDX license identifier: https://spdx.org/licenses/ --- bower.json | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/bower.json b/bower.json index 51f95866..cebe94d4 100644 --- a/bower.json +++ b/bower.json @@ -22,10 +22,7 @@ "url": "git://github.com/goldfire/howler.js.git" }, "main": "dist/howler.js", - "license": { - "type": "MIT", - "url": "https://raw.githubusercontent.com/goldfire/howler.js/master/LICENSE.md" - }, + "license": "MIT", "moduleType": [ "amd", "globals", From 6056460ce9834c41c15e2fbc9f74a040946cfcb3 Mon Sep 17 00:00:00 2001 From: t1st3 Date: Sun, 14 May 2017 14:37:35 +0200 Subject: [PATCH 3/3] fix: license should be a valid SPDX license expression when `npm install` on the repo or a fork, npm complains that license field in package.json is not valid. See https://docs.npmjs.com/files/package.json#license for valid `license` expressions Same applies for bower.json: https://github.com/bower/spec/blob/master/json.md#license More generally, both must be a string matching a vlid SPDX identifier: https://spdx.org/licenses/ --- bower.json | 5 +---- package.json | 5 +---- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/bower.json b/bower.json index 51f95866..cebe94d4 100644 --- a/bower.json +++ b/bower.json @@ -22,10 +22,7 @@ "url": "git://github.com/goldfire/howler.js.git" }, "main": "dist/howler.js", - "license": { - "type": "MIT", - "url": "https://raw.githubusercontent.com/goldfire/howler.js/master/LICENSE.md" - }, + "license": "MIT", "moduleType": [ "amd", "globals", diff --git a/package.json b/package.json index 6f3c7eb2..f081bda7 100644 --- a/package.json +++ b/package.json @@ -29,10 +29,7 @@ }, "main": "dist/howler.js", "version": "2.0.3", - "license": { - "type": "MIT", - "url": "https://raw.githubusercontent.com/goldfire/howler.js/master/LICENSE.md" - }, + "license": "MIT", "files": [ "src", "dist/howler.js",