Skip to content

On Windows, set-project-references tries to replace / with \\ #19

@xpdota

Description

@xpdota

Steps to reproduce:

  1. On Windows, check out a project using pnpm + TS project references (this is the project I am trying to use it with)
  2. Try to run set-project-references at the root of the project

Actual behavior (powershell, but other shells behave the same):

PS E:\IdeaProjects\gearplan> pnpx @bessonovs/set-project-references
Module gearplan has obsolete references: ["./packages/backend-resolver","./packages/common-ui","./packages/core","./packages/data-api-client","./packages/user-data-client","./packages/account-service-client","./packages/frontend","./packages/i18n","./packages/math-frontend","./packages/util","./packages/xivmath"]
Module @xivgear/backend-resolver is missing references: ["..\\core","..\\xivmath"]
Module @xivgear/backend-resolver has obsolete references: ["../xivmath","../core"]
Module @xivgear/common-ui is missing references: ["..\\core","..\\i18n","..\\util","..\\xivmath"]
Module @xivgear/common-ui has obsolete references: ["../core","../util","../xivmath","../i18n"]
Module @xivgear/core is missing references: ["..\\data-api-client","..\\i18n","..\\util","..\\xivmath"]
Module @xivgear/core has obsolete references: ["../xivmath","../data-api-client","../i18n","../util"]
Module @xivgear/gearplan-frontend is missing references: ["..\\account-service-client","..\\common-ui","..\\core","..\\data-api-client","..\\i18n","..\\user-data-client","..\\util","..\\xivmath"]
Module @xivgear/gearplan-frontend has obsolete references: ["../xivmath","../core","../common-ui","../account-service-client","../user-data-client"]
Module @xivgear/math-frontend is missing references: ["..\\common-ui","..\\core","..\\util","..\\xivmath"]
Module @xivgear/math-frontend has obsolete references: ["../xivmath","../core","../common-ui"]
Module @xivgear/xivmath is missing references: ["..\\data-api-client","..\\i18n","..\\util"]
Module @xivgear/xivmath has obsolete references: ["../i18n","../util","../data-api-client"]

There are a few actual discrepancies (as seen below, in the expected output), but most of them are the same exact references but with / replaced with \\.

Expected behavior (same project, in WSL):

$ pnpx @bessonovs/set-project-references
Module gearplan has obsolete references: ["./packages/backend-resolver","./packages/common-ui","./packages/core","./packages/data-api-client","./packages/user-data-client","./packages/account-service-client","./packages/frontend","./packages/i18n","./packages/math-frontend","./packages/util","./packages/xivmath"]
Module @xivgear/gearplan-frontend is missing references: ["../data-api-client","../i18n","../util"]
Module @xivgear/math-frontend is missing references: ["../util"]

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