Skip to content

Commit

Permalink
Rename @azure-tools/autorest-extension-base dependency to new @autore…
Browse files Browse the repository at this point in the history
…st/extension-base pkg (#857)
  • Loading branch information
timotheeguerin authored Feb 1, 2021
1 parent 0ee2670 commit 5d5535f
Show file tree
Hide file tree
Showing 7 changed files with 49 additions and 18 deletions.
52 changes: 42 additions & 10 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"LICENSE"
],
"dependencies": {
"@azure-tools/autorest-extension-base": "^3.1.246",
"@autorest/extension-base": "^3.1.0",
"@azure-tools/codegen": "^2.4.267",
"@azure-tools/codemodel": "^4.13.339",
"@azure/core-http": "^1.2.1-alpha.20201203.2",
Expand Down
2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {
AutoRestExtension,
Host,
startSession
} from "@azure-tools/autorest-extension-base";
} from "@autorest/extension-base";
import { generateTypeScriptLibrary } from "./typescriptGenerator";
import { CodeModel, codeModelSchema } from "@azure-tools/codemodel";

Expand Down
2 changes: 1 addition & 1 deletion src/transforms/optionsTransforms.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Channel, Host } from "@azure-tools/autorest-extension-base";
import { Channel, Host } from "@autorest/extension-base";
import { ClientOptions } from "../models/clientDetails";
import { OperationGroupDetails } from "../models/operationDetails";
import { KnownMediaType } from "@azure-tools/codegen";
Expand Down
2 changes: 1 addition & 1 deletion src/transforms/transforms.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import { transformOptions } from "./optionsTransforms";
import { transformParameters } from "./parameterTransforms";
import { transformObjects, transformObject } from "./objectTransforms";
import { ObjectDetails } from "../models/modelDetails";
import { Host } from "@azure-tools/autorest-extension-base";
import { Host } from "@autorest/extension-base";
import { transformBaseUrl } from "./urlTransforms";
import { normalizeModelWithExtensions } from "./extensions";
import { transformGroups } from "./groupTransforms";
Expand Down
5 changes: 2 additions & 3 deletions src/typescriptGenerator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import * as prettier from "prettier";
import { CodeModel } from "@azure-tools/codemodel";
import { Project, IndentationText } from "ts-morph";
import { Host } from "@azure-tools/autorest-extension-base";
import { Host } from "@autorest/extension-base";
import { PackageDetails } from "./models/packageDetails";
import { transformCodeModel } from "./transforms/transforms";

Expand Down Expand Up @@ -76,8 +76,7 @@ export async function generateTypeScriptLibrary(
const shouldGenerateLicense: boolean =
(await host.GetValue("license-header")) || false;

const hideClients: boolean =
(await host.GetValue("hide-clients")) || false;
const hideClients: boolean = (await host.GetValue("hide-clients")) || false;

// Skip metadata generation if `generate-metadata` is explicitly false
if ((await host.GetValue("generate-metadata")) !== false) {
Expand Down
2 changes: 1 addition & 1 deletion test/unit/transforms/optionsTransforms.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Channel, Host, Message } from "@azure-tools/autorest-extension-base";
import { Channel, Host, Message } from "@autorest/extension-base";
import { assert } from "chai";
import { getCredentialScopes } from "../../../src/transforms/optionsTransforms";

Expand Down

0 comments on commit 5d5535f

Please # to comment.