Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[mgmt] migrate mgmt package to esm 6 #32361

Merged
merged 66 commits into from
Jan 9, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
66 commits
Select commit Hold shift + click to select a range
889312c
Migration: Update package.json, tsconfig.json, and api-extractor.json
kazrael2119 Dec 26, 2024
1497bca
Migration: Update test config
kazrael2119 Dec 26, 2024
2d82f10
Migration: Clean up files
kazrael2119 Dec 26, 2024
fc21e7a
Migration: Apply codemod: "fixSourceFile"
kazrael2119 Dec 26, 2024
d1717f6
Migration: Apply codemod: "fixTestingImports"
kazrael2119 Dec 26, 2024
329bd0f
Migration: Apply codemod: "replaceAssertIsRejected"
kazrael2119 Dec 26, 2024
3b8aeae
Migration: Apply codemod: "replaceSinonStub"
kazrael2119 Dec 26, 2024
ca6c076
Migration: Apply codemod: "addViHelper"
kazrael2119 Dec 26, 2024
ed19e74
Migration: Apply codemod: "replaceSupportTracing"
kazrael2119 Dec 26, 2024
c97f67f
Migration: Apply codemod: "replaceTestUtils"
kazrael2119 Dec 26, 2024
f4ec1f2
Migration: rushx format
kazrael2119 Dec 26, 2024
79ca4dc
update
kazrael2119 Dec 26, 2024
ac68c55
Migration: Update package.json, tsconfig.json, and api-extractor.json
kazrael2119 Dec 26, 2024
67ae08c
Migration: Update test config
kazrael2119 Dec 26, 2024
be42abb
Migration: Clean up files
kazrael2119 Dec 26, 2024
74a94cc
Migration: Apply codemod: "fixSourceFile"
kazrael2119 Dec 26, 2024
65a156c
Migration: Apply codemod: "fixTestingImports"
kazrael2119 Dec 26, 2024
f53356a
Migration: Apply codemod: "replaceAssertIsRejected"
kazrael2119 Dec 26, 2024
24f1df9
Migration: Apply codemod: "replaceSinonStub"
kazrael2119 Dec 26, 2024
541da9e
Migration: Apply codemod: "addViHelper"
kazrael2119 Dec 26, 2024
0ad4bfb
Migration: Apply codemod: "replaceSupportTracing"
kazrael2119 Dec 26, 2024
20b7d6b
Migration: Apply codemod: "replaceTestUtils"
kazrael2119 Dec 26, 2024
9aa129e
Migration: rushx format
kazrael2119 Dec 26, 2024
ac9cd91
update
kazrael2119 Dec 26, 2024
b70dee2
Migration: Update package.json, tsconfig.json, and api-extractor.json
kazrael2119 Dec 26, 2024
9ec97bd
Migration: Update test config
kazrael2119 Dec 26, 2024
302ec62
Migration: Clean up files
kazrael2119 Dec 26, 2024
93b84ff
Migration: Apply codemod: "fixSourceFile"
kazrael2119 Dec 26, 2024
f61b502
Migration: Apply codemod: "fixTestingImports"
kazrael2119 Dec 26, 2024
5f0f3e7
Migration: Apply codemod: "replaceAssertIsRejected"
kazrael2119 Dec 26, 2024
d6a2117
Migration: Apply codemod: "replaceSinonStub"
kazrael2119 Dec 26, 2024
ab1ab20
Migration: Apply codemod: "addViHelper"
kazrael2119 Dec 26, 2024
ded5d73
Migration: Apply codemod: "replaceSupportTracing"
kazrael2119 Dec 26, 2024
4ae6a72
Migration: Apply codemod: "replaceTestUtils"
kazrael2119 Dec 26, 2024
bc5e817
Migration: rushx format
kazrael2119 Dec 26, 2024
aae2805
update
kazrael2119 Dec 26, 2024
08402d7
Migration: Update package.json, tsconfig.json, and api-extractor.json
kazrael2119 Dec 26, 2024
fa1dabe
Migration: Update test config
kazrael2119 Dec 26, 2024
907f94e
Migration: Clean up files
kazrael2119 Dec 26, 2024
9629746
Migration: Apply codemod: "fixSourceFile"
kazrael2119 Dec 26, 2024
eb5fc1c
Migration: Apply codemod: "fixTestingImports"
kazrael2119 Dec 26, 2024
c74d03f
Migration: Apply codemod: "replaceAssertIsRejected"
kazrael2119 Dec 26, 2024
c207bd3
Migration: Apply codemod: "replaceSinonStub"
kazrael2119 Dec 26, 2024
dfb5a9d
Migration: Apply codemod: "addViHelper"
kazrael2119 Dec 26, 2024
b2cac36
Migration: Apply codemod: "replaceSupportTracing"
kazrael2119 Dec 26, 2024
1b47adf
Migration: Apply codemod: "replaceTestUtils"
kazrael2119 Dec 26, 2024
bf02e9f
Migration: rushx format
kazrael2119 Dec 26, 2024
bce0a72
update
kazrael2119 Dec 26, 2024
09bcc96
Migration: Update package.json, tsconfig.json, and api-extractor.json
kazrael2119 Dec 26, 2024
d970706
Migration: Update test config
kazrael2119 Dec 26, 2024
475cea9
Migration: Clean up files
kazrael2119 Dec 26, 2024
bb43a61
Migration: Apply codemod: "fixSourceFile"
kazrael2119 Dec 26, 2024
f72d389
Migration: Apply codemod: "fixTestingImports"
kazrael2119 Dec 26, 2024
a59c4ea
Migration: Apply codemod: "replaceAssertIsRejected"
kazrael2119 Dec 26, 2024
e66e9f0
Migration: Apply codemod: "replaceSinonStub"
kazrael2119 Dec 26, 2024
b78d21d
Migration: Apply codemod: "addViHelper"
kazrael2119 Dec 26, 2024
5fb2134
Migration: Apply codemod: "replaceSupportTracing"
kazrael2119 Dec 26, 2024
cd9ad18
Migration: Apply codemod: "replaceTestUtils"
kazrael2119 Dec 26, 2024
84b8f27
Migration: rushx format
kazrael2119 Dec 26, 2024
3f90d7d
update
kazrael2119 Dec 26, 2024
b7c0578
update
kazrael2119 Dec 27, 2024
eedf3a1
update
kazrael2119 Jan 3, 2025
b3f2b0c
update
kazrael2119 Jan 3, 2025
0361b47
revert compute
kazrael2119 Jan 9, 2025
dab486e
Merge branch 'main' into migrate-mgmt6
kazrael2119 Jan 9, 2025
467a1f7
Update pnpm-lock.yaml
kazrael2119 Jan 9, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1,360 changes: 731 additions & 629 deletions common/config/rush/pnpm-lock.yaml

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json",
"mainEntryPointFilePath": "./dist-esm/src/index.d.ts",
"mainEntryPointFilePath": "dist/esm/index.d.ts",
"docModel": {
"enabled": true
},
Expand All @@ -11,7 +11,7 @@
"dtsRollup": {
"enabled": true,
"untrimmedFilePath": "",
"publicTrimmedFilePath": "./types/arm-compute-profile-2020-09-01-hybrid.d.ts"
"publicTrimmedFilePath": "dist/arm-compute-profile-2020-09-01-hybrid.d.ts"
},
"messages": {
"tsdocMessageReporting": {
Expand All @@ -28,4 +28,4 @@
}
}
}
}
}
84 changes: 57 additions & 27 deletions sdk/compute/arm-compute-profile-2020-09-01-hybrid/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,22 +24,22 @@
"isomorphic"
],
"license": "MIT",
"main": "./dist/index.js",
"module": "./dist-esm/src/index.js",
"types": "./types/arm-compute-profile-2020-09-01-hybrid.d.ts",
"main": "./dist/commonjs/index.js",
"module": "./dist/esm/index.js",
"types": "./dist/commonjs/index.d.ts",
"devDependencies": {
"@azure-tools/test-credential": "^1.0.0",
"@azure-tools/test-recorder": "^3.0.0",
"@azure-tools/test-credential": "^2.0.0",
"@azure-tools/test-recorder": "^4.1.0",
"@azure-tools/test-utils-vitest": "^1.0.0",
"@azure/dev-tool": "^1.0.0",
"@azure/identity": "^4.0.1",
"@types/chai": "^4.2.8",
"@types/mocha": "^10.0.0",
"@types/node": "^18.0.0",
"chai": "^4.2.0",
"@vitest/browser": "^2.1.8",
"@vitest/coverage-istanbul": "^2.1.8",
"dotenv": "^16.0.0",
"mocha": "^11.0.2",
"ts-node": "^10.0.0",
"typescript": "~5.7.2"
"playwright": "^1.49.1",
"typescript": "~5.7.2",
"vitest": "^2.1.8"
},
"repository": {
"type": "git",
Expand All @@ -49,24 +49,14 @@
"url": "https://github.com/Azure/azure-sdk-for-js/issues"
},
"files": [
"dist/**/*.js",
"dist/**/*.js.map",
"dist/**/*.d.ts",
"dist/**/*.d.ts.map",
"dist-esm/**/*.js",
"dist-esm/**/*.js.map",
"dist-esm/**/*.d.ts",
"dist-esm/**/*.d.ts.map",
"src/**/*.ts",
"dist/",
"README.md",
"LICENSE",
"tsconfig.json",
"review/*",
"CHANGELOG.md",
"types/*"
"review/",
"CHANGELOG.md"
],
"scripts": {
"build": "npm run clean && tsc && dev-tool run bundle && npm run minify && dev-tool run vendored mkdirp ./review && npm run extract-api",
"build": "npm run clean && dev-tool run build-package && dev-tool run vendored mkdirp ./review && dev-tool run extract-api",
"build:browser": "echo skipped",
"build:node": "echo skipped",
"build:samples": "echo skipped.",
Expand All @@ -78,7 +68,7 @@
"format": "echo skipped",
"integration-test": "npm run integration-test:node && npm run integration-test:browser",
"integration-test:browser": "echo skipped",
"integration-test:node": "dev-tool run test:node-ts-input -- --timeout 1200000 'test/*.ts'",
"integration-test:node": "dev-tool run test:vitest --esm",
"lint": "echo skipped",
"minify": "dev-tool run vendored uglifyjs -c -m --comments --source-map \"content='./dist/index.js.map'\" -o ./dist/index.min.js ./dist/index.js",
"pack": "npm pack 2>&1",
Expand All @@ -88,7 +78,7 @@
"test:node": "echo skipped",
"unit-test": "npm run unit-test:node && npm run unit-test:browser",
"unit-test:browser": "echo skipped",
"unit-test:node": "dev-tool run vendored cross-env TEST_MODE=playback npm run integration-test:node",
"unit-test:node": "dev-tool run test:vitest",
"update-snippets": "echo skipped"
},
"sideEffects": false,
Expand All @@ -109,5 +99,45 @@
],
"disableDocsMs": true,
"apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-compute-profile-2020-09-01-hybrid?view=azure-node-preview"
},
"type": "module",
"tshy": {
"project": "./tsconfig.src.json",
"exports": {
"./package.json": "./package.json",
".": "./src/index.ts"
},
"dialects": [
"esm",
"commonjs"
],
"esmDialects": [
qiaozha marked this conversation as resolved.
Show resolved Hide resolved
"browser",
"react-native"
],
"selfLink": false
},
"browser": "./dist/browser/index.js",
"react-native": "./dist/react-native/index.js",
"exports": {
"./package.json": "./package.json",
".": {
"browser": {
"types": "./dist/browser/index.d.ts",
"default": "./dist/browser/index.js"
},
"react-native": {
"types": "./dist/react-native/index.d.ts",
"default": "./dist/react-native/index.js"
},
"import": {
"types": "./dist/esm/index.d.ts",
"default": "./dist/esm/index.js"
},
"require": {
"types": "./dist/commonjs/index.d.ts",
"default": "./dist/commonjs/index.js"
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,7 @@ import {
ComputeManagementClient
} from "@azure/arm-compute-profile-2020-09-01-hybrid";
import { DefaultAzureCredential } from "@azure/identity";
import * as dotenv from "dotenv";

dotenv.config();
import "dotenv/config";

/**
* This sample demonstrates how to Create or update an availability set.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,7 @@ import {
ComputeManagementClient
} from "@azure/arm-compute-profile-2020-09-01-hybrid";
import { DefaultAzureCredential } from "@azure/identity";
import * as dotenv from "dotenv";

dotenv.config();
import "dotenv/config";

/**
* This sample demonstrates how to Lists all availability sets in a subscription.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,7 @@ import {
ComputeManagementClient
} from "@azure/arm-compute-profile-2020-09-01-hybrid";
import { DefaultAzureCredential } from "@azure/identity";
import * as dotenv from "dotenv";

dotenv.config();
import "dotenv/config";

/**
* This sample demonstrates how to Create or update a dedicated host group. For details of Dedicated Host and Dedicated Host Groups please see [Dedicated Host Documentation] (https://go.microsoft.com/fwlink/?linkid=2082596)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ComputeManagementClient } from "@azure/arm-compute-profile-2020-09-01-hybrid";
import { DefaultAzureCredential } from "@azure/identity";
import * as dotenv from "dotenv";

dotenv.config();
import "dotenv/config";

/**
* This sample demonstrates how to Retrieves information about a dedicated host group.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,7 @@ import {
ComputeManagementClient
} from "@azure/arm-compute-profile-2020-09-01-hybrid";
import { DefaultAzureCredential } from "@azure/identity";
import * as dotenv from "dotenv";

dotenv.config();
import "dotenv/config";

/**
* This sample demonstrates how to Create or update a dedicated host .
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ComputeManagementClient } from "@azure/arm-compute-profile-2020-09-01-hybrid";
import { DefaultAzureCredential } from "@azure/identity";
import * as dotenv from "dotenv";

dotenv.config();
import "dotenv/config";

/**
* This sample demonstrates how to Retrieves information about a dedicated host.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,7 @@ import {
ComputeManagementClient
} from "@azure/arm-compute-profile-2020-09-01-hybrid";
import { DefaultAzureCredential } from "@azure/identity";
import * as dotenv from "dotenv";

dotenv.config();
import "dotenv/config";

/**
* This sample demonstrates how to Creates or updates a disk encryption set
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ComputeManagementClient } from "@azure/arm-compute-profile-2020-09-01-hybrid";
import { DefaultAzureCredential } from "@azure/identity";
import * as dotenv from "dotenv";

dotenv.config();
import "dotenv/config";

/**
* This sample demonstrates how to Deletes a disk encryption set.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ComputeManagementClient } from "@azure/arm-compute-profile-2020-09-01-hybrid";
import { DefaultAzureCredential } from "@azure/identity";
import * as dotenv from "dotenv";

dotenv.config();
import "dotenv/config";

/**
* This sample demonstrates how to Gets information about a disk encryption set.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ComputeManagementClient } from "@azure/arm-compute-profile-2020-09-01-hybrid";
import { DefaultAzureCredential } from "@azure/identity";
import * as dotenv from "dotenv";

dotenv.config();
import "dotenv/config";

/**
* This sample demonstrates how to Lists all the disk encryption sets under a resource group.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ComputeManagementClient } from "@azure/arm-compute-profile-2020-09-01-hybrid";
import { DefaultAzureCredential } from "@azure/identity";
import * as dotenv from "dotenv";

dotenv.config();
import "dotenv/config";

/**
* This sample demonstrates how to Lists all the disk encryption sets under a subscription.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,7 @@ import {
ComputeManagementClient
} from "@azure/arm-compute-profile-2020-09-01-hybrid";
import { DefaultAzureCredential } from "@azure/identity";
import * as dotenv from "dotenv";

dotenv.config();
import "dotenv/config";

/**
* This sample demonstrates how to Updates (patches) a disk encryption set.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,7 @@ import {
ComputeManagementClient
} from "@azure/arm-compute-profile-2020-09-01-hybrid";
import { DefaultAzureCredential } from "@azure/identity";
import * as dotenv from "dotenv";

dotenv.config();
import "dotenv/config";

/**
* This sample demonstrates how to Creates or updates a disk.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ComputeManagementClient } from "@azure/arm-compute-profile-2020-09-01-hybrid";
import { DefaultAzureCredential } from "@azure/identity";
import * as dotenv from "dotenv";

dotenv.config();
import "dotenv/config";

/**
* This sample demonstrates how to Gets information about a disk.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ComputeManagementClient } from "@azure/arm-compute-profile-2020-09-01-hybrid";
import { DefaultAzureCredential } from "@azure/identity";
import * as dotenv from "dotenv";

dotenv.config();
import "dotenv/config";

/**
* This sample demonstrates how to Lists all the disks under a resource group.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ComputeManagementClient } from "@azure/arm-compute-profile-2020-09-01-hybrid";
import { DefaultAzureCredential } from "@azure/identity";
import * as dotenv from "dotenv";

dotenv.config();
import "dotenv/config";

/**
* This sample demonstrates how to Lists all the disks under a subscription.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,7 @@ import {
ComputeManagementClient
} from "@azure/arm-compute-profile-2020-09-01-hybrid";
import { DefaultAzureCredential } from "@azure/identity";
import * as dotenv from "dotenv";

dotenv.config();
import "dotenv/config";

/**
* This sample demonstrates how to Create or update an image.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ComputeManagementClient } from "@azure/arm-compute-profile-2020-09-01-hybrid";
import { DefaultAzureCredential } from "@azure/identity";
import * as dotenv from "dotenv";

dotenv.config();
import "dotenv/config";

/**
* This sample demonstrates how to Gets an image.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ComputeManagementClient } from "@azure/arm-compute-profile-2020-09-01-hybrid";
import { DefaultAzureCredential } from "@azure/identity";
import * as dotenv from "dotenv";

dotenv.config();
import "dotenv/config";

/**
* This sample demonstrates how to Gets the list of images under a resource group.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ComputeManagementClient } from "@azure/arm-compute-profile-2020-09-01-hybrid";
import { DefaultAzureCredential } from "@azure/identity";
import * as dotenv from "dotenv";

dotenv.config();
import "dotenv/config";

/**
* This sample demonstrates how to Gets the list of Images in the subscription. Use nextLink property in the response to get the next page of Images. Do this till nextLink is null to fetch all the Images.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,7 @@ import {
ComputeManagementClient
} from "@azure/arm-compute-profile-2020-09-01-hybrid";
import { DefaultAzureCredential } from "@azure/identity";
import * as dotenv from "dotenv";

dotenv.config();
import "dotenv/config";

/**
* This sample demonstrates how to Update an image.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,7 @@ import {
ComputeManagementClient
} from "@azure/arm-compute-profile-2020-09-01-hybrid";
import { DefaultAzureCredential } from "@azure/identity";
import * as dotenv from "dotenv";

dotenv.config();
import "dotenv/config";

/**
* This sample demonstrates how to Export logs that show Api requests made by this subscription in the given time window to show throttling activities.
Expand Down
Loading
Loading