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 new NodeJs model during "Init for VS Code" #3586

Merged
merged 1 commit into from
Feb 23, 2023
Merged

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

merged 1 commit into from
Feb 23, 2023

Conversation

ejizba
Copy link
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