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

SPDX validation in npm #8197

Merged
merged 5 commits into from
May 8, 2015
Merged

SPDX validation in npm #8197

merged 5 commits into from
May 8, 2015

Conversation

othiym23
Copy link
Contributor

@othiym23 othiym23 commented May 7, 2015

Going to also land fixed versions of npm-controlled dependencies with invalid SPDX declarations on this branch. Needs a test for the normalize-package-data change to ensure that this doesn't ever cause installation to fail, which would make this a semver-major change.

r: @kemitchell

Incorporates validation of `package.json` license fields against the
SPDX license expression syntax, raising warnings if the license is
missing or doesn't parse as valid SPDX.
Validate the license field upon new package creation against SPDX.
Switch to ISC from BSD (and incidentally an SPDX-compatible licensing
stanza).
@kemitchell
Copy link
Contributor

You may find license-checker by @davglass useful.

@othiym23
Copy link
Contributor Author

othiym23 commented May 7, 2015

No need – with the new normalize-package-data installed, all I need to do is run npm i and I get a near-overwhelming list of things I need to clean up. ;)

@kemitchell
Copy link
Contributor

I haven't npm linkd it in yet.

Yeah, it's a mess out there, but nothing quite motivates a geek like avoidable junk on stderr.

Swtich from BSD to ISC licenses, and in the process adopt an
SPDX-compliant license string.
@othiym23 othiym23 merged commit e9a933a into master May 8, 2015
@othiym23 othiym23 deleted the othiym23/spdx-validation branch May 8, 2015 12:00
okuryu added a commit to okuryu/yuidoc that referenced this pull request Jun 5, 2015
npm changed to use SPDX to validates the license of npm modules.

* npm/npm#8197
* http://spdx.org/licenses/
@coveralls
Copy link

Coverage Status

Changes Unknown when pulling e9a933a on othiym23/spdx-validation into ** on master**.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants