Equilibris / nx.nvim

A simple tool providing the same features as the NX console does for vs-code
The Unlicense
94 stars 16 forks source link

workspace.json is deprecated #9

Closed quinnromanek closed 1 year ago

quinnromanek commented 1 year ago

Describe the bug In the current version of nx, workspace.json has been deprecated. Projects are now indicated by the presence of a package.json or project.json and run targets can be defined in package.json.

A possible alternative (from this discussion )is a combination of running nx affected:libs --all --plain and nx affected:apps --all --plain to load all projects, since it's possible to install arbitrary plugins for project inference.

To Reproduce Steps to reproduce the behavior:

Expected behavior Actions from project's package.json scripts section have been populated in the telescope picker.

Desktop (please complete the following information):

Equilibris commented 1 year ago

Cool thanks I will patch this in over the next week.

quinnromanek commented 1 year ago

Awesome! The command I sent probably won't actually work since it doesn't include filepaths - I looked at the VS code extension and it seems like they read the project graph for this purpose. So I guess just using nx graph --file and parsing the graph would be the most robust solution.

I have some local copy close to working, I'll send a PR if I can figure it out

SteffenLm commented 1 year ago

Hey there, is there any update on this? Can i support somehow?

rodrigc commented 1 year ago

It’s best to mimic the logic in https://github.com/nrwl/nx-console

Equilibris commented 1 year ago

yeah after a long break its fixed. sorry everyone

rodrigc commented 1 year ago

@Equilibris NX keeps changing their stuff around, breaking external stuff. Appreciate your efforts to bring this back.

Equilibris commented 1 year ago

Yeah thanks, it took quite the effort, but at least it'll be easier next time

rodrigc commented 1 year ago

Until NX breaks everything again 🤣

Equilibris commented 1 year ago

hahaha, yeah true, ill sure be faster then, this was way too slow haha