Skip to content

package.json file is invalid #46

Description

@pdehaan

Per http://package-json-validator.com/

I'm seeing the following error when trying to validate the JSONSelect/package.json file:

{
  "valid": false,
  "errors": [
    "Value for field name, JSONSelect does not match format: /^[a-z0-9][a-z0-9\\.\\-_]+$/"
  ],
  "warnings": [
    "Missing recommended field: keywords",
    "Missing recommended field: bugs",
    "Missing recommended field: licenses"
  ],
  "recommendations": [
    "Missing optional field: contributors",
    "Missing optional field: files",
    "Missing optional field: bin",
    "Missing optional field: man",
    "Missing optional field: directories",
    "Missing optional field: config",
    "Missing optional field: bundledDependencies",
    "Missing optional field: optionalDependencies",
    "Missing optional field: engineStrict",
    "Missing optional field: os",
    "Missing optional field: cpu",
    "Missing optional field: preferGlobal",
    "Missing optional field: private",
    "Missing optional field: publishConfig"
  ]
}

I looked into it, and it appears that that package names should be lowercased (as of npm 1.3) [1]. It looks like Isaac is considering relaxing that restriction, but thought I'd post this as a placeholder issue in case we wanted to consider changing this to jsonselect in the future.

[1] https://groups.google.com/forum/#!msg/npm-/LXXgFyLZBPQ/2S-lixuuEwcJ

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions