You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Originally posted by bdm-k June 20, 2024
When you create a TypeSpec emitter with the template, @typespec/compiler is added as a dependency instead of a peer dependency. However, according to the document, you should
Use peerDependencies for all TypeSpec libraries (and the compiler) that you use in your own library or emitter.
Is this intended behavior or not?
How to reproduce
Install @typespec/compiler@0.57.0
Run tsp init --template emitter-ts
In the generated "package.json", @typespec/compiler is added as a dependency.
The text was updated successfully, but these errors were encountered:
Per the requirement in Issue:
#3632, the dependency of
`@typespec/compiler` has to be moved from `dependencies` to
`peerDependencies`. This PR moves the dependency.
Discussed in #3625
Originally posted by bdm-k June 20, 2024
When you create a TypeSpec emitter with the template,
@typespec/compiler
is added as a dependency instead of a peer dependency. However, according to the document, you shouldIs this intended behavior or not?
How to reproduce
@typespec/compiler@0.57.0
tsp init --template emitter-ts
In the generated "package.json",
@typespec/compiler
is added as a dependency.The text was updated successfully, but these errors were encountered: