Skip to content

Instantly share code, notes, and snippets.

@othiym23
Created September 17, 2015 00:04
Show Gist options
  • Save othiym23/91ff549add26638b58a7 to your computer and use it in GitHub Desktop.
Save othiym23/91ff549add26638b58a7 to your computer and use it in GitHub Desktop.

grab bag o' goals:

  • as much as possible, have a package tree produced with just the facts – no linting, only warnings or errors because there's stuff in there that's flat-out wrong
  • follow the Node module resolution algorithm's rules for determining what looks like a module (which may end up including things that aren't packages)
  • produce the list of warnings about the state of the package tree and the printable tree for npm ls during a single pass through the code
  • split apart normative and descriptive scans of the package tree
  • unify read-package-json and normalize-package-data because the split between them is more an accident of history than a consequence of design
  • split validation / linting checks in unified read-package-json + normalize-package-data out into an independent package that operates on a realized tree
  • use the above to support an npm lint command
  • get closer to having a standalone npm-install package
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment