Skip to content

Try to visualise the dep tree changes by dependency updates #10

@orta

Description

@orta

Could use the yarn lockfile package to get a before and after, then do a JSON diff on that tree, then present that in a reasonable way.

e.g. I add stringify-object to emission


~/dev/projects/artsy/ios/emission master*
❯ yarn why stringify-object
yarn why v1.0.1
[1/4] 🤔  Why do we have the module "stringify-object"...?
[2/4] 🚚  Initialising dependency graph...
[3/4] 🔍  Finding dependency...
error We couldn't find a match!
✨  Done in 1.06s.



~/dev/projects/artsy/ios/emission master*
❯ yarn why get-own-enumerable-property-symbols
yarn why v1.0.1
[1/4] 🤔  Why do we have the module "get-own-enumerable-property-symbols"...?
[2/4] 🚚  Initialising dependency graph...
[3/4] 🔍  Finding dependency...
error We couldn't find a match!
✨  Done in 1.10s.

~/dev/projects/artsy/ios/emission master*
❯ yarn why is-obj
yarn why v1.0.1
[1/4] 🤔  Why do we have the module "is-obj"...?
[2/4] 🚚  Initialising dependency graph...
[3/4] 🔍  Finding dependency...
error We couldn't find a match!
✨  Done in 0.99s.

~/dev/projects/artsy/ios/emission master*
❯ yarn why is-regexp
yarn why v1.0.1
[1/4] 🤔  Why do we have the module "is-regexp"...?
[2/4] 🚚  Initialising dependency graph...
[3/4] 🔍  Finding dependency...
[4/4] 🚡  Calculating file sizes...
info This module exists because "stylelint#execall#clone-regexp" depends on it.
info Disk size without dependencies: "12MB"
info Disk size with unique dependencies: "12MB"
info Disk size with transitive dependencies: "12MB"
info Number of shared dependencies: 0
✨  Done in 0.98s.

I should see that get-own-enumerable-property-symbols and is-obj appear in the tree also.

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