-
-
Notifications
You must be signed in to change notification settings - Fork 5k
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
workspaceDir
#11074
Comments
Is this for internal use only or also giving the possibility for user to specify
|
Indeed. Ideally, |
This was referenced Apr 25, 2022
This was referenced Jul 10, 2022
7 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For the conditions that nuxt app is not in the root of workspace/repository directory, often issues happen. Currently, we have an internal
modulesDir
option that helps to resolve this by creating a list of directories looking fornode_modules
(and by default process.cwd() is added to this list) but it is neither explicit or solving all cases.Related issues:
Vite tries to find root by looking up for
pnpm-workspace.yaml
or apackage.json
withworkspaces
key but it is not enough since there are conditions user is not using a monorepo workspace but simply have nuxt app in a sub-directory. (https://vitejs.dev/config/#server-fsserve-root)We can implement this by looking up (from
rootDir
) for firstpackage.lock
,package-lock.json
orpackage.json
that hasworkspaces
key (unless there is apackage.json
inrootDir
?) and falling back torootDir
if couldn't find. and also giving users ability to customize it with a nuxt option.The text was updated successfully, but these errors were encountered: