-
Notifications
You must be signed in to change notification settings - Fork 232
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
[Feature Request] tsp init
shall generate package.json which contains all necessary packages for users
#5703
Comments
tsp init
shall install all necessary packages for userstsp init
shall install all necessary packages for users
tsp init
shall install all necessary packages for userstsp init
shall generate package.json which contains all necessary packages for users
tsp init follows what the template said, if you picked this template it explicitly decided to not include the package.json because it is meant to be used in the spec repo. |
I see. We will need to update https://github.com/Azure/typespec-azure/blob/main/eng/feeds/azure-scaffolding.json |
no but the template does by design not do that. You have to pick standalone version to include the package.json |
|
Then you pick the standalone option. If it were to generate the package.json for that template it would result in people including it in the spec repo |
When I run
tsp init tsp init https://aka.ms/typespec/azure-init
, then choose(rest-api-spec repo) Azure Resource Manager Service Project min compiler ver: 0.45.2
. After files generated, I openmain.tsp
but find that import error hint from vscode:I think
tsp init
shall also generate a pacakge.json which contains all the necessary packages (including@typespec/http / ...
so that users could install them more conveniently.The text was updated successfully, but these errors were encountered: