Skip to content
Closed
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: 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
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
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"
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 @@ -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
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
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
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
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 @@ -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
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/media-types"
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/client-namespace"
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/client-naming"
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/client-operation-group"
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/client-structure-default"
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/client-structure-multiclient"
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/client-structure-renamed"
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/client-structure-twoopgroup"
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
enable-operation-group: 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
enable-operation-group: true
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
enable-operation-group: true
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
enable-operation-group: 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
title: MediaTypesClient
package-details:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@ options:
flavor: azure
azure-sdk-for-js: false
is-typespec-test: true
is-modular-library: false
package-details:
name: "@msinternal/media-types"
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
enable-operation-group: true
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
enable-operation-group: true
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
enable-operation-group: true
compatibility-query-multi-format: true
is-typespec-test: true
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
enable-operation-group: true
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
enable-operation-group: 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
enable-operation-group: 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
enable-operation-group: true
package-details:
Expand Down
Loading
Loading