-
Notifications
You must be signed in to change notification settings - Fork 363
Feature: tspconfig project with entrypoint #10548
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
Open
timotheeguerin
wants to merge
10
commits into
microsoft:main
Choose a base branch
from
timotheeguerin:feature/project-config
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
6df027a
Add new project tspconfig
timotheeguerin fa06569
ide entrypoint tests
timotheeguerin 22a705a
add validaiton to only use project option with project and file name …
timotheeguerin 233b1aa
format and changelog
timotheeguerin bf34001
fix cspell
timotheeguerin 8f3085f
skip e2e test relying on last published version
timotheeguerin b7dac91
regen template
timotheeguerin 4bea19e
fix missing placeholders
timotheeguerin fa8e0fe
fmt
timotheeguerin 6353917
Merge branch 'main' of https://github.com/Microsoft/typespec into fea…
timotheeguerin File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
14 changes: 14 additions & 0 deletions
14
.chronus/changes/feature-project-config-2026-3-29-10-7-4.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| --- | ||
| changeKind: feature | ||
| packages: | ||
| - "@typespec/compiler" | ||
| --- | ||
|
|
||
| Add `kind: project` and `entrypoint` support to `tspconfig.yaml` for defining project boundaries and entrypoint resolution. See [Project Configuration](https://typespec.io/docs/handbook/configuration/configuration#project-configuration) for more details. | ||
|
|
||
| ```yaml title=tspconfig.yaml | ||
| kind: project | ||
| entrypoint: src/service.tsp | ||
| emit: | ||
| - "@typespec/openapi3" | ||
| ``` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 10 additions & 8 deletions
18
packages/compiler/templates/__snapshots__/rest/tspconfig.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,16 +1,18 @@ | ||
| # extends: ../tspconfig.yaml # Extend another config file | ||
| # emit: # Emitter name | ||
| kind: project | ||
| # entrypoint: main.tsp # Main TypeSpec file (default: main.tsp) | ||
| # extends: ../tspconfig.yaml # Extend another config file | ||
| # emit: # Emitter name | ||
| # - "<emitter-name" | ||
| # options: # Emitter options | ||
| # options: # Emitter options | ||
| # <emitter-name>: | ||
| # "<option-name>": "<option-value>" | ||
| # environment-variables: # Environment variables which can be used to interpolate emitter options | ||
| # environment-variables: # Environment variables which can be used to interpolate emitter options | ||
| # <variable-name>: | ||
| # default: "<variable-default>" | ||
| # parameters: # Parameters which can be used to interpolate emitter options | ||
| # parameters: # Parameters which can be used to interpolate emitter options | ||
| # <param-name>: | ||
| # default: "<param-default>" | ||
| # trace: # Trace areas to enable tracing | ||
| # trace: # Trace areas to enable tracing | ||
| # - "<trace-name>" | ||
| # warn-as-error: true # Treat warnings as errors | ||
| # output-dir: "{project-root}/_generated" # Configure the base output directory for all emitters | ||
| # warn-as-error: true # Treat warnings as errors | ||
| # output-dir: "{project-root}/_generated" # Configure the base output directory for all emitters |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.