Skip to content

Detect new NodeJs model during "Init for VS Code"#3586

Merged
ejizba merged 1 commit intomainfrom
ej/autoInit
Feb 23, 2023
Merged

Detect new NodeJs model during "Init for VS Code"#3586
ejizba merged 1 commit intomainfrom
ej/autoInit

Conversation

@ejizba
Copy link
Copy Markdown
Contributor

@ejizba ejizba commented Feb 22, 2023

Right now "Init for VS Code" always defaults to the v3 model. My fix uses the version of the "@azure/functions" dependency to detect the model version. Also, since the new model can put ".ts" and ".js" files anywhere, I'm checking for the "typescript" dev dependency to determine if it's a TypeScript or JavaScript project instead.

Lastly, I noticed some code in the repo that was basically doing the same thing as me so I consolidated that a bit.

@ejizba ejizba requested a review from a team as a code owner February 22, 2023 23:57
@ejizba ejizba merged commit 2c40d9c into main Feb 23, 2023
@ejizba ejizba deleted the ej/autoInit branch February 23, 2023 02:34
@microsoft microsoft locked and limited conversation to collaborators Apr 9, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants