Skip to content

Clean up duplicates in yarn.lock #6453

@staffordsmith83

Description

@staffordsmith83

We are starting to get a lot of duplicates in yarn.lock. Could we run yarn-deduplicate , or upgrade to yarn v2.x, I think it has builtin de-duplication? Here is output of yarn why for @babel/runtime, showing that we have 3 versions of that package listed:

=> Found "@babel/runtime@7.17.7"
info Has been hoisted to "@babel/runtime"
info Reasons this module exists
   - "workspace-aggregator-6660f4f1-831c-4eef-adee-5a4964da2e5a" depends on it
   - Hoisted from "_project_#terriajs#rc-slider#@babel#runtime"
   - Hoisted from "_project_#terriajs#react-i18next#@babel#runtime"
   - Hoisted from "_project_#terriajs#react-select#@babel#runtime"
   - Hoisted from "_project_#terriajs#react-transition-group#@babel#runtime"
   - Hoisted from "_project_#terriajs#rc-slider#rc-tooltip#@babel#runtime"
   - Hoisted from "_project_#terriajs#rc-slider#rc-util#@babel#runtime"
   - Hoisted from "_project_#terriajs#react-select#@emotion#core#@babel#runtime"
   - Hoisted from "_project_#@babel#preset-env#@babel#plugin-transform-regenerator#regenerator-transform#@babel#runtime"
   - Hoisted from "_project_#terriajs#react-transition-group#dom-helpers#@babel#runtime"
   - Hoisted from "_project_#terriajs#rc-slider#rc-tooltip#rc-trigger#@babel#runtime"
   - Hoisted from "_project_#terriajs#rc-slider#rc-tooltip#rc-trigger#rc-align#@babel#runtime"
   - Hoisted from "_project_#terriajs#rc-slider#rc-tooltip#rc-trigger#rc-motion#@babel#runtime"
   - Hoisted from "_project_#terriajs#react-select#@emotion#css#babel-plugin-emotion#babel-plugin-macros#@babel#runtime"
info Disk size without dependencies: "844KB"
info Disk size with unique dependencies: "888KB"
info Disk size with transitive dependencies: "888KB"
info Number of shared dependencies: 1
=> Found "fetch-mock#@babel/runtime@7.17.9"
info This module exists because "_project_#terriajs#fetch-mock" depends on it.
info Disk size without dependencies: "844KB"
info Disk size with unique dependencies: "888KB"
info Disk size with transitive dependencies: "888KB"
info Number of shared dependencies: 1
=> Found "i18next-browser-languagedetector#@babel/runtime@7.18.9"
info This module exists because "_project_#terriajs#i18next-browser-languagedetector" depends on it.
info Disk size without dependencies: "880KB"
info Disk size with unique dependencies: "924KB"
info Disk size with transitive dependencies: "924KB"
info Number of shared dependencies: 1
=> Found "i18next#@babel/runtime@7.18.9"
info This module exists because "_project_#terriajs#i18next" depends on it.
info Disk size without dependencies: "880KB"
info Disk size with unique dependencies: "924KB"
info Disk size with transitive dependencies: "924KB"
info Number of shared dependencies: 1
✨  Done in 0.84s.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions