Skip to content

Commit

Permalink
fix: license should be a valid SPDX license expression
Browse files Browse the repository at this point in the history
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/
  • Loading branch information
t1st3 committed May 14, 2017
1 parent 7547703 commit 6056460
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
5 changes: 1 addition & 4 deletions bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
5 changes: 1 addition & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 6056460

Please sign in to comment.