Skip to content

No workspace package paths are detected on Windows #367

Open
@felixxxxxs

Description

@felixxxxxs

I was trying to setup ardatan/graphql-tools , but running yarn build did not output √ Built graphql-tools, instead an error was thrown by the postinstall script because the build files were not found.

I found out that the util function getWorkspacePackagePaths returns an empty array. This is because the glob pattern is resolved with a path.join call in it, when it should instead be path.posix.join, as glob patterns can only contain forward slashes (see https://github.com/sindresorhus/globby?tab=readme-ov-file#api).

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