-
Notifications
You must be signed in to change notification settings - Fork 230
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix #2357 Fix template that provided a programatic config If a template doesn't provide a config it will still create an empty one ``` # extends: ../tspconfig.yaml # Extend another config file # emit: # Emitter name # - "<emitter-name" # options: # Emitter options # <emitter-name>: # "<option-name>": "<option-value>" # 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 # <param-name>: # default: "<param-default>" # 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 ```
- Loading branch information
1 parent
a096823
commit ead3b3e
Showing
2 changed files
with
37 additions
and
5 deletions.
There are no files selected for viewing
15 changes: 15 additions & 0 deletions
15
common/changes/@typespec/compiler/fix-init-config_2023-09-28-18-02.json
This file contains 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,15 @@ | ||
{ | ||
"changes": [ | ||
{ | ||
"packageName": "@typespec/compiler", | ||
"comment": "Fix: `tsp init` was not creating the `tspconfig.yaml` file for templates that specified it", | ||
"type": "none" | ||
}, | ||
{ | ||
"packageName": "@typespec/compiler", | ||
"comment": "Fix: `tsp init` will create a placeholder `tspconfig.yaml` file for templates that don't specify an explicit one.", | ||
"type": "none" | ||
} | ||
], | ||
"packageName": "@typespec/compiler" | ||
} |
This file contains 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