Skip to content
This repository has been archived by the owner on Jul 22, 2022. It is now read-only.

Update license format in package.json #272

Merged
merged 1 commit into from
Mar 24, 2019
Merged

Update license format in package.json #272

merged 1 commit into from
Mar 24, 2019

Conversation

zypA13510
Copy link
Contributor

"licenses" property is deprecated. From https://docs.npmjs.com/files/package.json:

Some old packages used license objects or a “licenses” property containing an array of license objects:

// Not valid metadata
{ "license" :
  { "type" : "ISC"
  , "url" : "https://opensource.org/licenses/ISC"
  }
}

// Not valid metadata
{ "licenses" :
  [
    { "type": "MIT"
    , "url": "https://www.opensource.org/licenses/mit-license.php"
    }
  , { "type": "Apache-2.0"
    , "url": "https://opensource.org/licenses/apache2.0.php"
    }
  ]
}

Those styles are now deprecated. Instead, use SPDX expressions, like this:

{ "license": "ISC" }

{ "license": "(MIT OR Apache-2.0)" }

Closes #266.

@natergj natergj merged commit 1f1ded0 into natergj:master Mar 24, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants