microsoft / microsoft/typespec

Discuss adding a new known format/ emitter option type for `path`/`relativePath`

Open
#2,494 0 comments 0 reactions 0 assignees View on GitHub
design:needed triaged:core
Dominant language
Java
Stars
5.9k
Forks
394
Avg merge
1d 23h
Merged PRs (30d)
104

Description

From #2241

This https://github.com/microsoft/typespec/issues/2493 issue will add `absolute-path` as a new format for the options. But remains the question if we need a `relative-path` or generic `path`

```tsp
dir: Typespec.EmitterOptions.relativePath<"emitter-output-dir">
```
Arguments for:
- It would be some official documentation that an option is going to be resolved relative to what
- Would resolve the relative path automatically for the emitter

There is also the meaning of relative:
- from the cli, one would think it is relative to the `cwd`
- from the config, one would think it is relative to the config file itself

With those, do we even want to allow relative path at all. It is quite confusing otherwise.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.