Skip to content

Commit d635c4e

Browse files
authored
[mgmt] migrate mgmt package to esm 6 (#32361)
#32184 @azure/arm-compute-profile-2020-09-01-hybrid @azure/arm-confidentialledger @azure/arm-confluent @azure/arm-connectedvmware
1 parent ced505e commit d635c4e

File tree

497 files changed

+2122
-2388
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

497 files changed

+2122
-2388
lines changed

common/config/rush/pnpm-lock.yaml

+731-629
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/compute/arm-compute-profile-2020-09-01-hybrid/api-extractor.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json",
3-
"mainEntryPointFilePath": "./dist-esm/src/index.d.ts",
3+
"mainEntryPointFilePath": "dist/esm/index.d.ts",
44
"docModel": {
55
"enabled": true
66
},
@@ -11,7 +11,7 @@
1111
"dtsRollup": {
1212
"enabled": true,
1313
"untrimmedFilePath": "",
14-
"publicTrimmedFilePath": "./types/arm-compute-profile-2020-09-01-hybrid.d.ts"
14+
"publicTrimmedFilePath": "dist/arm-compute-profile-2020-09-01-hybrid.d.ts"
1515
},
1616
"messages": {
1717
"tsdocMessageReporting": {
@@ -28,4 +28,4 @@
2828
}
2929
}
3030
}
31-
}
31+
}

sdk/compute/arm-compute-profile-2020-09-01-hybrid/package.json

+57-27
Original file line numberDiff line numberDiff line change
@@ -24,22 +24,22 @@
2424
"isomorphic"
2525
],
2626
"license": "MIT",
27-
"main": "./dist/index.js",
28-
"module": "./dist-esm/src/index.js",
29-
"types": "./types/arm-compute-profile-2020-09-01-hybrid.d.ts",
27+
"main": "./dist/commonjs/index.js",
28+
"module": "./dist/esm/index.js",
29+
"types": "./dist/commonjs/index.d.ts",
3030
"devDependencies": {
31-
"@azure-tools/test-credential": "^1.0.0",
32-
"@azure-tools/test-recorder": "^3.0.0",
31+
"@azure-tools/test-credential": "^2.0.0",
32+
"@azure-tools/test-recorder": "^4.1.0",
33+
"@azure-tools/test-utils-vitest": "^1.0.0",
3334
"@azure/dev-tool": "^1.0.0",
3435
"@azure/identity": "^4.0.1",
35-
"@types/chai": "^4.2.8",
36-
"@types/mocha": "^10.0.0",
3736
"@types/node": "^18.0.0",
38-
"chai": "^4.2.0",
37+
"@vitest/browser": "^2.1.8",
38+
"@vitest/coverage-istanbul": "^2.1.8",
3939
"dotenv": "^16.0.0",
40-
"mocha": "^11.0.2",
41-
"ts-node": "^10.0.0",
42-
"typescript": "~5.7.2"
40+
"playwright": "^1.49.1",
41+
"typescript": "~5.7.2",
42+
"vitest": "^2.1.8"
4343
},
4444
"repository": {
4545
"type": "git",
@@ -49,24 +49,14 @@
4949
"url": "https://github.com/Azure/azure-sdk-for-js/issues"
5050
},
5151
"files": [
52-
"dist/**/*.js",
53-
"dist/**/*.js.map",
54-
"dist/**/*.d.ts",
55-
"dist/**/*.d.ts.map",
56-
"dist-esm/**/*.js",
57-
"dist-esm/**/*.js.map",
58-
"dist-esm/**/*.d.ts",
59-
"dist-esm/**/*.d.ts.map",
60-
"src/**/*.ts",
52+
"dist/",
6153
"README.md",
6254
"LICENSE",
63-
"tsconfig.json",
64-
"review/*",
65-
"CHANGELOG.md",
66-
"types/*"
55+
"review/",
56+
"CHANGELOG.md"
6757
],
6858
"scripts": {
69-
"build": "npm run clean && tsc && dev-tool run bundle && npm run minify && dev-tool run vendored mkdirp ./review && npm run extract-api",
59+
"build": "npm run clean && dev-tool run build-package && dev-tool run vendored mkdirp ./review && dev-tool run extract-api",
7060
"build:browser": "echo skipped",
7161
"build:node": "echo skipped",
7262
"build:samples": "echo skipped.",
@@ -78,7 +68,7 @@
7868
"format": "echo skipped",
7969
"integration-test": "npm run integration-test:node && npm run integration-test:browser",
8070
"integration-test:browser": "echo skipped",
81-
"integration-test:node": "dev-tool run test:node-ts-input -- --timeout 1200000 'test/*.ts'",
71+
"integration-test:node": "dev-tool run test:vitest --esm",
8272
"lint": "echo skipped",
8373
"minify": "dev-tool run vendored uglifyjs -c -m --comments --source-map \"content='./dist/index.js.map'\" -o ./dist/index.min.js ./dist/index.js",
8474
"pack": "npm pack 2>&1",
@@ -88,7 +78,7 @@
8878
"test:node": "echo skipped",
8979
"unit-test": "npm run unit-test:node && npm run unit-test:browser",
9080
"unit-test:browser": "echo skipped",
91-
"unit-test:node": "dev-tool run vendored cross-env TEST_MODE=playback npm run integration-test:node",
81+
"unit-test:node": "dev-tool run test:vitest",
9282
"update-snippets": "echo skipped"
9383
},
9484
"sideEffects": false,
@@ -109,5 +99,45 @@
10999
],
110100
"disableDocsMs": true,
111101
"apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-compute-profile-2020-09-01-hybrid?view=azure-node-preview"
102+
},
103+
"type": "module",
104+
"tshy": {
105+
"project": "./tsconfig.src.json",
106+
"exports": {
107+
"./package.json": "./package.json",
108+
".": "./src/index.ts"
109+
},
110+
"dialects": [
111+
"esm",
112+
"commonjs"
113+
],
114+
"esmDialects": [
115+
"browser",
116+
"react-native"
117+
],
118+
"selfLink": false
119+
},
120+
"browser": "./dist/browser/index.js",
121+
"react-native": "./dist/react-native/index.js",
122+
"exports": {
123+
"./package.json": "./package.json",
124+
".": {
125+
"browser": {
126+
"types": "./dist/browser/index.d.ts",
127+
"default": "./dist/browser/index.js"
128+
},
129+
"react-native": {
130+
"types": "./dist/react-native/index.d.ts",
131+
"default": "./dist/react-native/index.js"
132+
},
133+
"import": {
134+
"types": "./dist/esm/index.d.ts",
135+
"default": "./dist/esm/index.js"
136+
},
137+
"require": {
138+
"types": "./dist/commonjs/index.d.ts",
139+
"default": "./dist/commonjs/index.js"
140+
}
141+
}
112142
}
113143
}

sdk/compute/arm-compute-profile-2020-09-01-hybrid/samples-dev/availabilitySetsCreateOrUpdateSample.ts

+1-3
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,7 @@ import {
1313
ComputeManagementClient
1414
} from "@azure/arm-compute-profile-2020-09-01-hybrid";
1515
import { DefaultAzureCredential } from "@azure/identity";
16-
import * as dotenv from "dotenv";
17-
18-
dotenv.config();
16+
import "dotenv/config";
1917

2018
/**
2119
* This sample demonstrates how to Create or update an availability set.

sdk/compute/arm-compute-profile-2020-09-01-hybrid/samples-dev/availabilitySetsListBySubscriptionSample.ts

+1-3
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,7 @@ import {
1313
ComputeManagementClient
1414
} from "@azure/arm-compute-profile-2020-09-01-hybrid";
1515
import { DefaultAzureCredential } from "@azure/identity";
16-
import * as dotenv from "dotenv";
17-
18-
dotenv.config();
16+
import "dotenv/config";
1917

2018
/**
2119
* This sample demonstrates how to Lists all availability sets in a subscription.

sdk/compute/arm-compute-profile-2020-09-01-hybrid/samples-dev/dedicatedHostGroupsCreateOrUpdateSample.ts

+1-3
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,7 @@ import {
1313
ComputeManagementClient
1414
} from "@azure/arm-compute-profile-2020-09-01-hybrid";
1515
import { DefaultAzureCredential } from "@azure/identity";
16-
import * as dotenv from "dotenv";
17-
18-
dotenv.config();
16+
import "dotenv/config";
1917

2018
/**
2119
* 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)

sdk/compute/arm-compute-profile-2020-09-01-hybrid/samples-dev/dedicatedHostGroupsGetSample.ts

+1-3
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,7 @@
1010
// Licensed under the MIT License.
1111
import { ComputeManagementClient } from "@azure/arm-compute-profile-2020-09-01-hybrid";
1212
import { DefaultAzureCredential } from "@azure/identity";
13-
import * as dotenv from "dotenv";
14-
15-
dotenv.config();
13+
import "dotenv/config";
1614

1715
/**
1816
* This sample demonstrates how to Retrieves information about a dedicated host group.

sdk/compute/arm-compute-profile-2020-09-01-hybrid/samples-dev/dedicatedHostsCreateOrUpdateSample.ts

+1-3
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,7 @@ import {
1313
ComputeManagementClient
1414
} from "@azure/arm-compute-profile-2020-09-01-hybrid";
1515
import { DefaultAzureCredential } from "@azure/identity";
16-
import * as dotenv from "dotenv";
17-
18-
dotenv.config();
16+
import "dotenv/config";
1917

2018
/**
2119
* This sample demonstrates how to Create or update a dedicated host .

sdk/compute/arm-compute-profile-2020-09-01-hybrid/samples-dev/dedicatedHostsGetSample.ts

+1-3
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,7 @@
1010
// Licensed under the MIT License.
1111
import { ComputeManagementClient } from "@azure/arm-compute-profile-2020-09-01-hybrid";
1212
import { DefaultAzureCredential } from "@azure/identity";
13-
import * as dotenv from "dotenv";
14-
15-
dotenv.config();
13+
import "dotenv/config";
1614

1715
/**
1816
* This sample demonstrates how to Retrieves information about a dedicated host.

sdk/compute/arm-compute-profile-2020-09-01-hybrid/samples-dev/diskEncryptionSetsCreateOrUpdateSample.ts

+1-3
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,7 @@ import {
1313
ComputeManagementClient
1414
} from "@azure/arm-compute-profile-2020-09-01-hybrid";
1515
import { DefaultAzureCredential } from "@azure/identity";
16-
import * as dotenv from "dotenv";
17-
18-
dotenv.config();
16+
import "dotenv/config";
1917

2018
/**
2119
* This sample demonstrates how to Creates or updates a disk encryption set

sdk/compute/arm-compute-profile-2020-09-01-hybrid/samples-dev/diskEncryptionSetsDeleteSample.ts

+1-3
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,7 @@
1010
// Licensed under the MIT License.
1111
import { ComputeManagementClient } from "@azure/arm-compute-profile-2020-09-01-hybrid";
1212
import { DefaultAzureCredential } from "@azure/identity";
13-
import * as dotenv from "dotenv";
14-
15-
dotenv.config();
13+
import "dotenv/config";
1614

1715
/**
1816
* This sample demonstrates how to Deletes a disk encryption set.

sdk/compute/arm-compute-profile-2020-09-01-hybrid/samples-dev/diskEncryptionSetsGetSample.ts

+1-3
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,7 @@
1010
// Licensed under the MIT License.
1111
import { ComputeManagementClient } from "@azure/arm-compute-profile-2020-09-01-hybrid";
1212
import { DefaultAzureCredential } from "@azure/identity";
13-
import * as dotenv from "dotenv";
14-
15-
dotenv.config();
13+
import "dotenv/config";
1614

1715
/**
1816
* This sample demonstrates how to Gets information about a disk encryption set.

sdk/compute/arm-compute-profile-2020-09-01-hybrid/samples-dev/diskEncryptionSetsListByResourceGroupSample.ts

+1-3
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,7 @@
1010
// Licensed under the MIT License.
1111
import { ComputeManagementClient } from "@azure/arm-compute-profile-2020-09-01-hybrid";
1212
import { DefaultAzureCredential } from "@azure/identity";
13-
import * as dotenv from "dotenv";
14-
15-
dotenv.config();
13+
import "dotenv/config";
1614

1715
/**
1816
* This sample demonstrates how to Lists all the disk encryption sets under a resource group.

sdk/compute/arm-compute-profile-2020-09-01-hybrid/samples-dev/diskEncryptionSetsListSample.ts

+1-3
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,7 @@
1010
// Licensed under the MIT License.
1111
import { ComputeManagementClient } from "@azure/arm-compute-profile-2020-09-01-hybrid";
1212
import { DefaultAzureCredential } from "@azure/identity";
13-
import * as dotenv from "dotenv";
14-
15-
dotenv.config();
13+
import "dotenv/config";
1614

1715
/**
1816
* This sample demonstrates how to Lists all the disk encryption sets under a subscription.

sdk/compute/arm-compute-profile-2020-09-01-hybrid/samples-dev/diskEncryptionSetsUpdateSample.ts

+1-3
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,7 @@ import {
1313
ComputeManagementClient
1414
} from "@azure/arm-compute-profile-2020-09-01-hybrid";
1515
import { DefaultAzureCredential } from "@azure/identity";
16-
import * as dotenv from "dotenv";
17-
18-
dotenv.config();
16+
import "dotenv/config";
1917

2018
/**
2119
* This sample demonstrates how to Updates (patches) a disk encryption set.

sdk/compute/arm-compute-profile-2020-09-01-hybrid/samples-dev/disksCreateOrUpdateSample.ts

+1-3
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,7 @@ import {
1313
ComputeManagementClient
1414
} from "@azure/arm-compute-profile-2020-09-01-hybrid";
1515
import { DefaultAzureCredential } from "@azure/identity";
16-
import * as dotenv from "dotenv";
17-
18-
dotenv.config();
16+
import "dotenv/config";
1917

2018
/**
2119
* This sample demonstrates how to Creates or updates a disk.

sdk/compute/arm-compute-profile-2020-09-01-hybrid/samples-dev/disksGetSample.ts

+1-3
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,7 @@
1010
// Licensed under the MIT License.
1111
import { ComputeManagementClient } from "@azure/arm-compute-profile-2020-09-01-hybrid";
1212
import { DefaultAzureCredential } from "@azure/identity";
13-
import * as dotenv from "dotenv";
14-
15-
dotenv.config();
13+
import "dotenv/config";
1614

1715
/**
1816
* This sample demonstrates how to Gets information about a disk.

sdk/compute/arm-compute-profile-2020-09-01-hybrid/samples-dev/disksListByResourceGroupSample.ts

+1-3
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,7 @@
1010
// Licensed under the MIT License.
1111
import { ComputeManagementClient } from "@azure/arm-compute-profile-2020-09-01-hybrid";
1212
import { DefaultAzureCredential } from "@azure/identity";
13-
import * as dotenv from "dotenv";
14-
15-
dotenv.config();
13+
import "dotenv/config";
1614

1715
/**
1816
* This sample demonstrates how to Lists all the disks under a resource group.

sdk/compute/arm-compute-profile-2020-09-01-hybrid/samples-dev/disksListSample.ts

+1-3
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,7 @@
1010
// Licensed under the MIT License.
1111
import { ComputeManagementClient } from "@azure/arm-compute-profile-2020-09-01-hybrid";
1212
import { DefaultAzureCredential } from "@azure/identity";
13-
import * as dotenv from "dotenv";
14-
15-
dotenv.config();
13+
import "dotenv/config";
1614

1715
/**
1816
* This sample demonstrates how to Lists all the disks under a subscription.

sdk/compute/arm-compute-profile-2020-09-01-hybrid/samples-dev/imagesCreateOrUpdateSample.ts

+1-3
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,7 @@ import {
1313
ComputeManagementClient
1414
} from "@azure/arm-compute-profile-2020-09-01-hybrid";
1515
import { DefaultAzureCredential } from "@azure/identity";
16-
import * as dotenv from "dotenv";
17-
18-
dotenv.config();
16+
import "dotenv/config";
1917

2018
/**
2119
* This sample demonstrates how to Create or update an image.

sdk/compute/arm-compute-profile-2020-09-01-hybrid/samples-dev/imagesGetSample.ts

+1-3
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,7 @@
1010
// Licensed under the MIT License.
1111
import { ComputeManagementClient } from "@azure/arm-compute-profile-2020-09-01-hybrid";
1212
import { DefaultAzureCredential } from "@azure/identity";
13-
import * as dotenv from "dotenv";
14-
15-
dotenv.config();
13+
import "dotenv/config";
1614

1715
/**
1816
* This sample demonstrates how to Gets an image.

sdk/compute/arm-compute-profile-2020-09-01-hybrid/samples-dev/imagesListByResourceGroupSample.ts

+1-3
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,7 @@
1010
// Licensed under the MIT License.
1111
import { ComputeManagementClient } from "@azure/arm-compute-profile-2020-09-01-hybrid";
1212
import { DefaultAzureCredential } from "@azure/identity";
13-
import * as dotenv from "dotenv";
14-
15-
dotenv.config();
13+
import "dotenv/config";
1614

1715
/**
1816
* This sample demonstrates how to Gets the list of images under a resource group.

sdk/compute/arm-compute-profile-2020-09-01-hybrid/samples-dev/imagesListSample.ts

+1-3
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,7 @@
1010
// Licensed under the MIT License.
1111
import { ComputeManagementClient } from "@azure/arm-compute-profile-2020-09-01-hybrid";
1212
import { DefaultAzureCredential } from "@azure/identity";
13-
import * as dotenv from "dotenv";
14-
15-
dotenv.config();
13+
import "dotenv/config";
1614

1715
/**
1816
* 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.

sdk/compute/arm-compute-profile-2020-09-01-hybrid/samples-dev/imagesUpdateSample.ts

+1-3
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,7 @@ import {
1313
ComputeManagementClient
1414
} from "@azure/arm-compute-profile-2020-09-01-hybrid";
1515
import { DefaultAzureCredential } from "@azure/identity";
16-
import * as dotenv from "dotenv";
17-
18-
dotenv.config();
16+
import "dotenv/config";
1917

2018
/**
2119
* This sample demonstrates how to Update an image.

sdk/compute/arm-compute-profile-2020-09-01-hybrid/samples-dev/logAnalyticsExportRequestRateByIntervalSample.ts

+1-3
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,7 @@ import {
1313
ComputeManagementClient
1414
} from "@azure/arm-compute-profile-2020-09-01-hybrid";
1515
import { DefaultAzureCredential } from "@azure/identity";
16-
import * as dotenv from "dotenv";
17-
18-
dotenv.config();
16+
import "dotenv/config";
1917

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

0 commit comments

Comments
 (0)