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
1 change: 0 additions & 1 deletion packages/typespec-test/test/ai/tspconfig.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ emit:
options:
"@azure-tools/typespec-ts":
emitter-output-dir: "{project-root}/generated/typespec-ts"
is-modular-library: true
generate-test: false
azure-sdk-for-js: false
generate-metadata: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ options:
generate-metadata: true
azure-sdk-for-js: false
enable-model-namespace: true
is-modular-library: true
emitter-output-dir: "{project-root}/generated/typespec-ts"
package-details:
name: "@msinternal/ai-anomaly-detector"
Expand Down
1 change: 1 addition & 0 deletions packages/typespec-test/test/authoring/tspconfig.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ options:
emitter-output-dir: "{project-root}/generated/openapi"
"@azure-tools/typespec-ts":
azure-sdk-for-js: false
is-modular-library: false
generate-sample: true
emitter-output-dir: "{project-root}/generated/typespec-ts"
package-details:
Expand Down
1 change: 0 additions & 1 deletion packages/typespec-test/test/batch_modular/tspconfig.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ options:
generate-metadata: true
generate-test: true
azure-sdk-for-js: false
is-modular-library: true
hierarchy-client: false
emitter-output-dir: "{project-root}/generated/typespec-ts"
package-details:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ emit:
options:
"@azure-tools/typespec-ts":
azure-sdk-for-js: false
is-modular-library: true
emitter-output-dir: "{project-root}/generated/typespec-ts"
hierarchy-client: false
package-details:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ emit:
options:
"@azure-tools/typespec-ts":
azure-sdk-for-js: false
is-modular-library: false
generate-metadata: true
generate-test: false
emitter-output-dir: "{project-root}/generated/typespec-ts"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ options:
generate-metadata: true
generate-test: false
azure-sdk-for-js: false
is-modular-library: true
hierarchy-client: false
emitter-output-dir: "{project-root}/generated/typespec-ts"
package-details:
Expand Down
1 change: 1 addition & 0 deletions packages/typespec-test/test/contoso/tspconfig.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ options:
"@azure-tools/typespec-ts":
emitter-output-dir: "{project-root}/generated/typespec-ts"
azure-sdk-for-js: false
is-modular-library: false
package-details:
name: "@azure-rest/contosowidgetmanager-rest"
description: "Contoso WidgetManager Service"
1 change: 1 addition & 0 deletions packages/typespec-test/test/customWrapper/tspconfig.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ options:
"@azure-tools/typespec-ts":
azure-sdk-for-js: false
emitter-output-dir: "{project-root}/generated/typespec-ts"
is-modular-library: false
package-details:
name: "@msinternal/customWrapper"
description: "Custom Wrapper Service"
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ options:
title: EventGrid Service
generate-metadata: true
azure-sdk-for-js: false
is-modular-library: true
emitter-output-dir: "{project-root}/generated/typespec-ts"
package-details:
name: "@msinternal/eventgrid"
Expand Down
1 change: 1 addition & 0 deletions packages/typespec-test/test/faceai/tspconfig.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ options:
generate-metadata: true
generate-test: true
azure-sdk-for-js: false
is-modular-library: false
emitter-output-dir: "{project-root}/generated/typespec-ts"
package-details:
name: "@azure-rest/ai-face-rest"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ options:
generate-test: true
generate-sample: true
azure-sdk-for-js: false
is-modular-library: true
emitter-output-dir: "{project-root}/generated/typespec-ts"
package-details:
name: "@azure-rest/health-insights-radiologyinsights"
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ options:
generate-test: true
generate-sample: true
azure-sdk-for-js: false
is-modular-library: false
emitter-output-dir: "{project-root}/generated/typespec-ts"
package-details:
name: "@azure-rest/health-insights-clinicalmatching"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ emit:
options:
"@azure-tools/typespec-ts":
azure-sdk-for-js: false
is-modular-library: true
emitter-output-dir: "{project-root}/generated/typespec-ts"
package-details:
name: "@msinternal/hierarchy-generic"
Expand Down
1 change: 1 addition & 0 deletions packages/typespec-test/test/loadTest/tspconfig.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ options:
generate-test: true
generate-sample: true
azure-sdk-for-js: false
is-modular-library: false
enable-operation-group: true
package-details:
name: "@azure-rest/load-testing"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ options:
description: Azure Load Testing Client
azure-sdk-for-js: false
enable-operation-group: true
is-modular-library: true
hierarchy-client: false
experimental-extensible-enums: true
package-details:
Expand Down
1 change: 0 additions & 1 deletion packages/typespec-test/test/nestedClient/tspconfig.yaml
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":
generate-metadata: true
is-modular-library: true
azure-sdk-for-js: false
emitter-output-dir: "{project-root}/generated/typespec-ts"
package-details:
Expand Down
1 change: 1 addition & 0 deletions packages/typespec-test/test/openai/tspconfig.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ options:
generate-test: true
generate-sample: true
azure-sdk-for-js: false
is-modular-library: false
emitter-output-dir: "{project-root}/generated/typespec-ts"
package-details:
name: "@msinternal/openai"
Expand Down
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":
is-modular-library: true
azure-sdk-for-js: false
emitter-output-dir: "{project-root}/generated/typespec-ts"
ignore-property-name-normalize: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ emit:
options:
"@azure-tools/typespec-ts":
azure-sdk-for-js: false
is-modular-library: true
hierarchy-client: false
emitter-output-dir: "{project-root}/generated/typespec-ts"
package-details:
Expand Down
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":
is-modular-library: true
generate-metadata: true
branded: false
emitter-output-dir: "{project-root}/../generated/typespec-ts"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ emit:
options:
"@azure-tools/typespec-ts":
azure-sdk-for-js: false
is-modular-library: true
emitter-output-dir: "{project-root}/generated/typespec-ts"
package-details:
name: "@msinternal/overload_modular"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ options:
generate-metadata: true
generate-test: false
azure-sdk-for-js: false
is-modular-library: true
emitter-output-dir: "{project-root}/generated/typespec-ts"
package-details:
name: "@msinternal/parametrized-host"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ options:
generate-metadata: true
generate-test: false
azure-sdk-for-js: false
is-modular-library: true
emitter-output-dir: "{project-root}/generated/typespec-ts"
package-details:
name: "@msinternal/schema-registry"
Expand Down
1 change: 0 additions & 1 deletion packages/typespec-test/test/spread/tspconfig.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ emit:
- "@typespec/openapi3"
options:
"@azure-tools/typespec-ts":
is-modular-library: true
generate-metadata: true
azure-sdk-for-js: false
emitter-output-dir: "{project-root}/generated/typespec-ts"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ emit:
- "@typespec/openapi3"
options:
"@azure-tools/typespec-ts":
is-modular-library: true
generate-metadata: true
azure-sdk-for-js: false
generate-sample: true
Expand Down
1 change: 1 addition & 0 deletions packages/typespec-test/test/translator/tspconfig.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ options:
generate-metadata: true
generate-test: true
azure-sdk-for-js: false
is-modular-library: false
compatibility-query-multi-format: true
package-details:
name: "@azure-rest/cognitiveservices-translator"
Expand Down
1 change: 0 additions & 1 deletion packages/typespec-test/test/widget_dpg/tspconfig.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ options:
"@azure-tools/typespec-ts":
multi-client: false
azure-sdk-for-js: false
is-modular-library: true
generate-metadata: true
emitter-output-dir: "{project-root}/generated/typespec-ts"
package-details:
Expand Down
11 changes: 2 additions & 9 deletions packages/typespec-ts/src/transform/transfromRLCOptions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ import {
PackageDetails,
PackageFlavor,
RLCOptions,
ServiceInfo,
isAzurePackage
ServiceInfo
} from "@azure-tools/rlc-common";
import { getHttpOperationWithCache } from "@azure-tools/typespec-client-generator-core";
import { getDoc, NoTarget, Program } from "@typespec/compiler";
Expand Down Expand Up @@ -34,13 +33,7 @@ export function transformRLCOptions(
emitterOptions,
dpgContext.generationPathDetail?.rootDir ?? ""
);
if (
!isAzurePackage({ options }) &&
emitterOptions["is-modular-library"] !== false
) {
options.isModularLibrary = true;
}
if (dpgContext.arm && emitterOptions["is-modular-library"] !== false) {
if (emitterOptions["is-modular-library"] !== false) {
options.isModularLibrary = true;
}
const batch = getRLCClients(dpgContext);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ options:
flavor: azure
azure-sdk-for-js: false
is-typespec-test: true
is-modular-library: false
title: AuthApiKeyClient
package-details:
name: "@msinternal/auth-apikey"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ options:
flavor: azure
azure-sdk-for-js: false
is-typespec-test: true
is-modular-library: false
title: AuthHttpCustomClient
package-details:
name: "@msinternal/auth-httpcustom"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ options:
flavor: azure
azure-sdk-for-js: false
is-typespec-test: true
is-modular-library: false
title: AuthOauth2Client
package-details:
name: "@msinternal/auth-oauth2"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ options:
generate-test: true
flavor: azure
azure-sdk-for-js: false
is-modular-library: false
is-typespec-test: true
title: AuthUnionClient
package-details:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ options:
add-credentials: false
flavor: azure
azure-sdk-for-js: false
is-modular-library: false
is-typespec-test: true
generate-sample: true
package-details:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ options:
emitter-output-dir: "{project-root}"
add-credentials: false
azure-sdk-for-js: false
is-modular-library: false
package-details:
name: "@azure/client-generator-core-initialization"
version: "1.0.0"
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ options:
emitter-output-dir: "{project-root}"
add-credentials: false
azure-sdk-for-js: false
is-modular-library: false
package-details:
name: "@azure/client-generator-core-location"
version: "1.0.0"
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ options:
emitter-output-dir: "{project-root}"
add-credentials: false
azure-sdk-for-js: false
is-modular-library: false
package-details:
name: "@azure/client-generator-core-deserialize-empty-string-as-null"
version: "1.0.0"
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ options:
add-credentials: false
flavor: azure
azure-sdk-for-js: false
is-modular-library: false
is-typespec-test: true
package-details:
name: "@msinternal/flatten-property"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ options:
generate-test: false
add-credentials: false
flavor: azure
is-modular-library: false
azure-sdk-for-js: false
is-typespec-test: true
package-details:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ options:
add-credentials: false
flavor: azure
azure-sdk-for-js: false
is-modular-library: false
is-typespec-test: true
generate-sample: true
package-details:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ options:
add-credentials: false
flavor: azure
azure-sdk-for-js: false
is-modular-library: false
is-typespec-test: true
generate-sample: true
title: AzureCoreClient
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ options:
add-credentials: false
flavor: azure
azure-sdk-for-js: false
is-modular-library: false
is-typespec-test: true
package-details:
name: "@msinternal/lro-rpc"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ options:
add-credentials: false
flavor: azure
azure-sdk-for-js: false
is-modular-library: false
is-typespec-test: true
package-details:
name: "@msinternal/lro-core"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ options:
add-credentials: false
flavor: azure
azure-sdk-for-js: false
is-modular-library: false
is-typespec-test: true
title: AzureCoreModelClient
package-details:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ options:
add-credentials: false
flavor: azure
azure-sdk-for-js: false
is-modular-library: false
is-typespec-test: true
title: AzureCorePageClient
package-details:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ options:
add-credentials: false
flavor: azure
azure-sdk-for-js: false
is-modular-library: false
is-typespec-test: true
title: AzureCoreScalarClient
package-details:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ options:
add-credentials: false
flavor: azure
azure-sdk-for-js: false
is-modular-library: false
is-typespec-test: true
title: AzureCoreTraitsClient
package-details:
Expand Down
Loading
Loading