Skip to content

Support "resolutions" in typescript libraries #12

Open

Description

@geropl

Currently only the local package.json is copied into the build directory. Because the workspace global package.json (with it's resolutions fields) is missing package resolution behaves different to outside of leeway.

One way to "fix" this would be to add a config workspaceRootPackageJson and merge that into the local package.json.

/cc @akosyakov

Activity

  1. geropl commented on Sep 2, 2020

    @geropl
    MemberAuthor

    Also @AlexTugarev discovered that the installer-package.json which we generate to install Typescript packages does not contain the resolutions from the package it installs. This seems to have the effect that yarn ignores the resolutions (at least in case they do not match the version patterns) which leads to different build results (breaking builds).

    If the above is true there are two (closely related) tasks here:

    • Merge resolutions from the workspace root package.json into typescript packages
    • Copy resolutions from each Typescript package into it's installer-package.json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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