Skip to content

Vite API searchForWorkspaceRoot should add "nx.json" to list of monorepo file root #20090

@yann-combarnous

Description

@yann-combarnous

Description

According to: https://vite.dev/guide/api-javascript#searchforworkspaceroot:

Search for the root of the potential workspace if it meets the following conditions, otherwise it would fallback to root:

- contains workspaces field in package.json
- contains one of the following file
lerna.json
pnpm-workspace.yaml

In the case of an NX workspace, the only condition should be that it contains the nx.json file. Could this case be added?

Suggested solution

In the case of an NX workspace, the only condition should be that it contains the nx.json file

Alternative

No response

Additional context

No response

Validations

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions