Skip to content
Open
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
2 changes: 1 addition & 1 deletion packages/typespec-ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,9 @@
"@typespec/xml": "^0.82.0"
},
"dependencies": {
"@azure-tools/rlc-common": "workspace:^0.53.1",
"fast-xml-parser": "^4.5.0",
"fs-extra": "^11.1.0",
"handlebars": "^4.7.7",
"lodash": "^4.17.21",
"prettier": "^3.3.3",
"ts-morph": "^23.0.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/typespec-ts/src/framework/hooks/sdkTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import {
} from "../../modular/helpers/operationHelpers.js";
import { normalizeModelPropertyName } from "../../modular/type-expressions/get-type-expression.js";
import { reportDiagnostic } from "../../lib.js";
import { NameType, normalizeName } from "@azure-tools/rlc-common";
import { NameType, normalizeName } from "../../rlc-common/index.js";
Comment thread
timovv marked this conversation as resolved.

export const emitQueue: Set<SdkType> = new Set<SdkType>();
export const flattenPropertyModelMap: Map<SdkModelPropertyType, SdkModelType> =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {
} from "ts-morph";
import { refkey } from "./refkey.js";
import { resolveProjectRoot } from "../utils/resolve-project-root.js";
import { isAzurePackage } from "@azure-tools/rlc-common";
import { isAzurePackage } from "../rlc-common/index.js";
import { ModularEmitterOptions } from "../modular/interfaces.js";
import { NoTarget, Program } from "@typespec/compiler";
import { reportDiagnostic } from "../lib.js";
Expand Down
2 changes: 1 addition & 1 deletion packages/typespec-ts/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ import {
buildSampleEnvFile,
buildSnippets,
buildTsSampleConfig
} from "@azure-tools/rlc-common";
} from "./rlc-common/index.js";
import {
buildRootIndex,
buildSubClientIndexFile
Expand Down
2 changes: 1 addition & 1 deletion packages/typespec-ts/src/lib.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
DependencyInfo,
ServiceInfo,
PackageFlavor
} from "@azure-tools/rlc-common";
} from "./rlc-common/index.js";
import {
createTypeSpecLibrary,
JSONSchemaType,
Expand Down
2 changes: 1 addition & 1 deletion packages/typespec-ts/src/metaTree.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Schema as RlcType } from "@azure-tools/rlc-common";
import { Schema as RlcType } from "./rlc-common/index.js";
import { Type } from "@typespec/compiler";

export interface RlcTypeMetadata {
Expand Down
2 changes: 1 addition & 1 deletion packages/typespec-ts/src/modular/buildClassicalClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
StructureKind
} from "ts-morph";
import { ModularEmitterOptions } from "./interfaces.js";
import { NameType, normalizeName } from "@azure-tools/rlc-common";
import { NameType, normalizeName } from "../rlc-common/index.js";
import {
buildUserAgentOptions,
getClientParametersDeclaration
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { NameType } from "@azure-tools/rlc-common";
import { NameType } from "../rlc-common/index.js";
import { SourceFile } from "ts-morph";
import { getClassicalOperation } from "./helpers/classicalOperationHelpers.js";
import { getClassicalLayerPrefix } from "./helpers/namingHelpers.js";
Expand Down
2 changes: 1 addition & 1 deletion packages/typespec-ts/src/modular/buildClientContext.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {
NameType,
isAzurePackage,
normalizeName
} from "@azure-tools/rlc-common";
} from "../rlc-common/index.js";
import {
buildGetClientCredentialParam,
buildGetClientEndpointParam,
Expand Down
2 changes: 1 addition & 1 deletion packages/typespec-ts/src/modular/buildOperations.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { ModularEmitterOptions } from "./interfaces.js";
import { NameType, normalizeName } from "@azure-tools/rlc-common";
import { NameType, normalizeName } from "../rlc-common/index.js";
import {
SourceFile,
InterfaceDeclarationStructure,
Expand Down
2 changes: 1 addition & 1 deletion packages/typespec-ts/src/modular/buildProjectFiles.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { NameType } from "@azure-tools/rlc-common";
import { NameType } from "../rlc-common/index.js";

import { ModularEmitterOptions } from "./interfaces.js";
import { getClassicalLayerPrefix } from "./helpers/namingHelpers.js";
Expand Down
2 changes: 1 addition & 1 deletion packages/typespec-ts/src/modular/buildRestorePoller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { ModularEmitterOptions } from "./interfaces.js";
import path from "path";
import { buildLroDeserDetailMap } from "./buildOperations.js";
import { getClassicalClientName } from "./helpers/namingHelpers.js";
import { NameType, normalizeName } from "@azure-tools/rlc-common";
import { NameType, normalizeName } from "../rlc-common/index.js";
import { resolveReference } from "../framework/reference.js";
import { AzurePollingDependencies } from "./external-dependencies.js";
import { PollingHelpers } from "./static-helpers-metadata.js";
Expand Down
2 changes: 1 addition & 1 deletion packages/typespec-ts/src/modular/buildRootIndex.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {
NameType,
normalizeName,
isAzurePackage
} from "@azure-tools/rlc-common";
} from "../rlc-common/index.js";
import { Project, SourceFile } from "ts-morph";
import { getClassicalClientName } from "./helpers/namingHelpers.js";
import { ModularEmitterOptions } from "./interfaces.js";
Expand Down
2 changes: 1 addition & 1 deletion packages/typespec-ts/src/modular/emitModels.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {
fixLeadingNumber,
NameType,
normalizeName
} from "@azure-tools/rlc-common";
} from "../rlc-common/index.js";
import {
SdkArrayType,
SdkModelPropertyType,
Expand Down
2 changes: 1 addition & 1 deletion packages/typespec-ts/src/modular/emitModelsOptions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {
} from "@azure-tools/typespec-client-generator-core";
import { getMethodHierarchiesMap } from "../utils/operationUtil.js";
import { getModularClientOptions } from "../utils/clientUtils.js";
import { NameType, normalizeName } from "@azure-tools/rlc-common";
import { NameType, normalizeName } from "../rlc-common/index.js";
import { useContext } from "../contextManager.js";

// ====== UTILITIES ======
Expand Down
2 changes: 1 addition & 1 deletion packages/typespec-ts/src/modular/emitSamples.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import {
isAzurePackage,
NameType,
normalizeName
} from "@azure-tools/rlc-common";
} from "../rlc-common/index.js";
import { useContext } from "../contextManager.js";
import { join } from "path";
import { AzureIdentityDependencies } from "../modular/external-dependencies.js";
Expand Down
2 changes: 1 addition & 1 deletion packages/typespec-ts/src/modular/emitTests.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { SourceFile } from "ts-morph";
import { SdkContext } from "../utils/interfaces.js";
import { NameType, normalizeName } from "@azure-tools/rlc-common";
import { NameType, normalizeName } from "../rlc-common/index.js";
import { join } from "path";
import { existsSync, rmSync } from "fs";
import { getClassicalClientName } from "./helpers/namingHelpers.js";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { NameType, normalizeName } from "@azure-tools/rlc-common";
import { NameType, normalizeName } from "../../rlc-common/index.js";
import {
FunctionDeclarationStructure,
InterfaceDeclarationStructure,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import {
NameType,
normalizeName,
PackageFlavor
} from "@azure-tools/rlc-common";
} from "../../rlc-common/index.js";
import { SdkContext } from "../../utils/interfaces.js";
import { getClassicalClientName } from "./namingHelpers.js";
import { getTypeExpression } from "../type-expressions/get-type-expression.js";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {
isAzurePackage,
NameType,
normalizeName
} from "@azure-tools/rlc-common";
} from "../../rlc-common/index.js";
import { resolveReference } from "../../framework/reference.js";
import { SdkContext } from "../../utils/interfaces.js";
import {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {
NameType,
normalizeName,
ReservedModelNames
} from "@azure-tools/rlc-common";
} from "../../rlc-common/index.js";
import {
SdkClientType,
SdkServiceOperation
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ import {
getFixmeForMultilineDocs
} from "./docsHelpers.js";
import { AzurePollingDependencies } from "../external-dependencies.js";
import { NameType, normalizeName } from "@azure-tools/rlc-common";
import { NameType, normalizeName } from "../../rlc-common/index.js";
import {
buildModelDeserializer,
buildPropertyDeserializer
Expand Down
2 changes: 1 addition & 1 deletion packages/typespec-ts/src/modular/helpers/typeHelpers.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { NameType, normalizeName } from "@azure-tools/rlc-common";
import { NameType, normalizeName } from "../../rlc-common/index.js";
import {
SdkBodyParameter,
SdkCredentialParameter,
Expand Down
2 changes: 1 addition & 1 deletion packages/typespec-ts/src/modular/interfaces.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { RLCOptions } from "@azure-tools/rlc-common";
import { RLCOptions } from "../rlc-common/index.js";

export interface ModularOptions {
sourceRoot: string;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import {
getAdditionalPropertiesName,
normalizeModelName
} from "../emitModels.js";
import { NameType, normalizeName } from "@azure-tools/rlc-common";
import { NameType, normalizeName } from "../../rlc-common/index.js";
import { isAzureCoreErrorType } from "../../utils/modelUtils.js";
import {
getAllDiscriminatedValues,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import {
getAdditionalPropertiesName,
normalizeModelName
} from "../emitModels.js";
import { NameType, normalizeName } from "@azure-tools/rlc-common";
import { NameType, normalizeName } from "../../rlc-common/index.js";
import { isAzureCoreErrorType } from "../../utils/modelUtils.js";
import {
getAllDiscriminatedValues,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import {
normalizeModelName,
getAdditionalPropertiesName
} from "../emitModels.js";
import { NameType } from "@azure-tools/rlc-common";
import { NameType } from "../../rlc-common/index.js";
import { isAzureCoreErrorType } from "../../utils/modelUtils.js";
import {
isSupportedSerializeType,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { getCredentialExpression } from "./get-credential-expression.js";
import { getEnumExpression } from "./get-enum-expression.js";
import { getModelExpression } from "./get-model-expression.js";
import { getUnionExpression } from "./get-union-expression.js";
import { NameType, normalizeName } from "@azure-tools/rlc-common";
import { NameType, normalizeName } from "../../rlc-common/index.js";
import { SdkContext } from "../../utils/interfaces.js";
import { getNullableExpression } from "./get-nullable-expression.js";

Expand Down
Loading