Skip to content
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

Detect workspaces field in projectRoot package.json file, suggest vlt-workspaces.json file #232

Open
isaacs opened this issue Nov 12, 2024 · 2 comments
Assignees

Comments

@isaacs
Copy link
Contributor

isaacs commented Nov 12, 2024

If the projectRoot has a package.json file, and that package.json file has a workspaces field, then show an interactive prompt asking if the user would like to create a vlt-workspaces.json file, and suggesting content for it. If they say yes, then do it, if they say no, then stop asking.

Maybe the same if we see a pnpm-workspaces.yaml file, or whatever it is.

@ruyadorno
Copy link
Member

do we actually need a prompt? I think we can stat and if no vlt-workspaces.json is in place we should just create it when running a vlt install - maybe prompt by default in other commands (vlt gui, vlt ls and so).

@ruyadorno
Copy link
Member

We should also properly document vlt-workspaces.json file behavior as noted in #225

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

No branches or pull requests

3 participants