Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
4 tasks done
yann-combarnous opened this issue May 22, 2025 · 1 comment
Open
4 tasks done

Comments

@yann-combarnous
Copy link

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

@Jamal-amin

This comment has been minimized.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants