Skip to content

Commit 08c7c7d

Browse files
[tsp-client] Revert exit after compile (#8556)
* revert exit(1) after compile * update changelog date --------- Co-authored-by: Catalina Peralta <caperal@microsoft.com>
1 parent 1ef874c commit 08c7c7d

4 files changed

Lines changed: 8 additions & 7 deletions

File tree

tools/tsp-client/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Release
22

3+
## 2024-07-04 - 0.9.2
4+
5+
- Revert `exit(1)` on tsp compile diagnostics.
6+
37
## 2024-07-02 - 0.9.1
48

59
- Fix error logging after the `compile()` call and exit if diagnostics are encountered.

tools/tsp-client/package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tools/tsp-client/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@azure-tools/typespec-client-generator-cli",
3-
"version": "0.9.1",
3+
"version": "0.9.2",
44
"description": "A tool to generate Azure SDKs from TypeSpec",
55
"main": "dist/index.js",
66
"homepage": "https://github.com/Azure/azure-sdk-tools/tree/main/tools/tsp-client#readme",

tools/tsp-client/src/index.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -219,17 +219,14 @@ async function generate({
219219
args.push("--force");
220220
}
221221
await npmCommand(srcDir, args);
222-
const succeeded = await compileTsp({ emitterPackage: emitter, outputPath: rootUrl, resolvedMainFilePath, saveInputs: noCleanup, additionalEmitterOptions });
222+
await compileTsp({ emitterPackage: emitter, outputPath: rootUrl, resolvedMainFilePath, saveInputs: noCleanup, additionalEmitterOptions });
223223

224224
if (noCleanup) {
225225
Logger.debug(`Skipping cleanup of temp directory: ${tempRoot}`);
226226
} else {
227227
Logger.debug("Cleaning up temp directory");
228228
await removeDirectory(tempRoot);
229229
}
230-
if (!succeeded) {
231-
process.exit(1);
232-
}
233230
}
234231

235232

0 commit comments

Comments
 (0)