Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ emit:
- "@azure-tools/typespec-ts"
options:
"@azure-tools/typespec-ts":
azureSdkForJs: false
isModularLibrary: true
"emitter-output-dir": "{project-root}/generated/typespec-ts"
ignorePropertyNameNormalize: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ options:
"@azure-tools/typespec-ts":
isModularLibrary: true
generateMetadata: true
azureSdkForJs: false
branded: false
"emitter-output-dir": "{project-root}/../generated/typespec-ts"
packageDetails:
Expand Down
10 changes: 6 additions & 4 deletions packages/typespec-ts/src/transform/transfromRLCOptions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -317,10 +317,12 @@ function getServiceInfo(program: Program): ServiceInfo {
}

function getAzureSdkForJs(emitterOptions: EmitterOptions) {
return emitterOptions.azureSdkForJs === undefined ||
emitterOptions.azureSdkForJs === null
? true
: Boolean(emitterOptions.azureSdkForJs);
return emitterOptions.flavor !== "azure"
? false
: emitterOptions.azureSdkForJs === undefined ||
emitterOptions.azureSdkForJs === null
? true
: Boolean(emitterOptions.azureSdkForJs);
}

function getGenerateMetadata(emitterOptions: EmitterOptions) {
Expand Down