Skip to content

Commit 7b162e8

Browse files
authored
protect local tspconfig.yaml (#1539)
1 parent 291875d commit 7b162e8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

powershell/utils/tsp-generator.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ async function clearOutputFiles(state: ModelState<PwshModel>) {
3131
const readme = './README.md';
3232
const tempTypeSpecFiles = './TempTypeSpecFiles';
3333
const tspLocation = './tsp-location.yaml';
34+
const tspconfig = './tspconfig.yaml';
3435

3536
const protectFiles = new Set<string>();
3637
protectFiles.add(psd1);
@@ -43,6 +44,7 @@ async function clearOutputFiles(state: ModelState<PwshModel>) {
4344
protectFiles.add(readme);
4445
protectFiles.add(tempTypeSpecFiles);
4546
protectFiles.add(tspLocation);
47+
protectFiles.add(tspconfig);
4648
await clearFolder(outputFolder, [...protectFiles].map((each) => resolveUri(outputFolder, each)));
4749
}
4850
return;

0 commit comments

Comments
 (0)