Skip to content

Instantly share code, notes, and snippets.

View ruyadorno's full-sized avatar

Ruy Adorno ruyadorno

View GitHub Profile
@ruyadorno
ruyadorno / NPM_DIFF_NOTES.md
Last active January 27, 2021 17:33
What arguments mean in npm diff

npm diff args

Special conversions:

  • IF NO arg:
    • READ package.json name
      • IF FOUND:
        • RETURN package-json-name@tag - file:.
      • ELSE:
        • THROW usage
  • IF arg is package-name only:
@ruyadorno
ruyadorno / running-cmds-in-workspaces.md
Last active February 18, 2021 23:29
Running commands in Workspaces
  • RFC TODAY: npm fund --workspace=a
  • RFC TODO CHANGE: npm ws fund --workspace=a --workspace=b --workspace=group-name

Adding a top-level workspaces|ws command should abstract enough the implementation to make it flexible enough to accomodate future tweaks in the workspace installing algorithm.

Where to start?

  • Add new workspaces|ws command/alias
  • Add new folder ./lib/workspaces/*.js
  • Add default behavior that sets prefix to top-level commands under ./lib/workspaces/default.js
  • Add ws run-script

npm audit licenses

Questions:

  • workspaces
    • maybe just handled via config?
    • maybe tweak licensee to better handle it?
  • configuration?
    • package.json property
  • audit.json file?