-
Notifications
You must be signed in to change notification settings - Fork 212
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
feat: use nx utils to read all configuration files #1184
Conversation
Nx Cloud ReportCI ran the following commands for commit c08f1e6. Click to see the status, the terminal output, and the build insights. 📂 See all runs for this branch
Sent with 💌 from NxCloud. |
apps/vscode/src/main.ts
Outdated
@@ -116,6 +117,7 @@ export async function activate(c: ExtensionContext) { | |||
const vscodeWorkspacePath = | |||
workspace.workspaceFolders && workspace.workspaceFolders[0].uri.fsPath; | |||
|
|||
debugger; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably remove?
@@ -352,7 +355,9 @@ function renameProperty(obj: any, from: string, to: string) { | |||
delete obj[from]; | |||
} | |||
|
|||
export function toWorkspaceFormat(w: any): WorkspaceJsonConfiguration { | |||
export function toWorkspaceFormat( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This function could reuse toNewFormat
from @nrwl/tao
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These linked lines are probably not needed anymore since we use the NX helpers to read config
Need to finish #1057 before this can complete. The latest versions of angular cli is not as backwards compatible as nx, so we need to completely remove our dependency on ng cli |
b817e76
to
13d5687
Compare
What it does
This PR removes all direct reads to the workspace/project/angular/nx.json files and uses the utils provided by Nx. This allows Nx Console to always know what configurations are available without having to worry about workspace changes.