Skip to content

Cache issues when using workspaces #425

@indigostar-kr

Description

@indigostar-kr

When using yarn workspaces, node_modules are created within the workspace.

However, the current buildpack caches only node_modules in the root directory, so an error occurs when building using the cache.

Describe the Enhancement

node_modules inside the workspace should also be cacheable.

Possible Solution

To cache all the node_modules of the project, navigate through WalkDir, clone them into layers, and connect symlinks.

Motivation

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