Skip to content
This repository was archived by the owner on Jun 30, 2026. It is now read-only.

Commit 7bd92b4

Browse files
Copilotkazrael2119
andauthored
Align Azure monorepo package.json metadata with new repository schema across codegen packages (#3950)
* Initial plan * fix(rlc-common): generate monorepo repository object in package.json Agent-Logs-Url: https://github.com/Azure/autorest.typescript/sessions/10e05a29-d381-412f-b5b1-44634dbc6430 Co-authored-by: kazrael2119 <98569699+kazrael2119@users.noreply.github.com> * fix(autorest): align monorepo package.json repository metadata schema Agent-Logs-Url: https://github.com/Azure/autorest.typescript/sessions/64160978-6f76-4b21-af17-6c02edf6d04d Co-authored-by: kazrael2119 <98569699+kazrael2119@users.noreply.github.com> * fix(ci): regenerate autorest package.json fixtures for repository schema Agent-Logs-Url: https://github.com/Azure/autorest.typescript/sessions/9eea05d2-ac81-426c-8f85-0d75e54eb188 Co-authored-by: kazrael2119 <98569699+kazrael2119@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
1 parent 86c6cea commit 7bd92b4

90 files changed

Lines changed: 605 additions & 93 deletions

File tree

Some content is hidden

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

packages/autorest.typescript/src/generators/static/packageFileGenerator.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,13 @@ function regularAutorestPackage(
115115
rimraf: "^5.0.0",
116116
dotenv: azureSdkForJs ? "catalog:testing" : "^16.0.0"
117117
},
118-
repository: "github:Azure/azure-sdk-for-js",
118+
repository: azureSdkForJs
119+
? {
120+
type: "git",
121+
url: "git+https://github.com/Azure/azure-sdk-for-js",
122+
directory: azureOutputDirectory ?? "sdk/"
123+
}
124+
: "github:Azure/azure-sdk-for-js",
119125
bugs: {
120126
url: "https://github.com/Azure/azure-sdk-for-js/issues"
121127
},
@@ -160,7 +166,7 @@ function regularAutorestPackage(
160166
"react-native": "./dist/react-native/index.js",
161167
};
162168
if (azureOutputDirectory) {
163-
packageInfo.homepage = `https://github.com/Azure/azure-sdk-for-js/tree/main/${azureOutputDirectory}`;
169+
packageInfo.homepage = `https://github.com/Azure/azure-sdk-for-js/tree/main/${azureOutputDirectory}/README.md`;
164170
}
165171
if (azureSdkForJs) {
166172
// Azure monorepo packages use warp (via dev-tool run build-package) instead of tshy

packages/autorest.typescript/test/integration/generated/appconfiguration/package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,11 @@
2626
"eslint": "catalog:",
2727
"prettier": "catalog:"
2828
},
29-
"repository": "github:Azure/azure-sdk-for-js",
29+
"repository": {
30+
"type": "git",
31+
"url": "git+https://github.com/Azure/azure-sdk-for-js",
32+
"directory": "sdk/"
33+
},
3034
"bugs": { "url": "https://github.com/Azure/azure-sdk-for-js/issues" },
3135
"files": ["dist/", "README.md", "LICENSE"],
3236
"scripts": {

packages/autorest.typescript/test/integration/generated/appconfigurationexport/package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,11 @@
2626
"eslint": "catalog:",
2727
"prettier": "catalog:"
2828
},
29-
"repository": "github:Azure/azure-sdk-for-js",
29+
"repository": {
30+
"type": "git",
31+
"url": "git+https://github.com/Azure/azure-sdk-for-js",
32+
"directory": "sdk/"
33+
},
3034
"bugs": { "url": "https://github.com/Azure/azure-sdk-for-js/issues" },
3135
"files": ["dist/", "README.md", "LICENSE"],
3236
"scripts": {

packages/autorest.typescript/test/integration/generated/arrayConstraints/package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,11 @@
2525
"eslint": "catalog:",
2626
"prettier": "catalog:"
2727
},
28-
"repository": "github:Azure/azure-sdk-for-js",
28+
"repository": {
29+
"type": "git",
30+
"url": "git+https://github.com/Azure/azure-sdk-for-js",
31+
"directory": "sdk/"
32+
},
2933
"bugs": { "url": "https://github.com/Azure/azure-sdk-for-js/issues" },
3034
"files": ["dist/", "README.md", "LICENSE"],
3135
"scripts": {

packages/autorest.typescript/test/integration/generated/attestation/package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,11 @@
2525
"eslint": "catalog:",
2626
"prettier": "catalog:"
2727
},
28-
"repository": "github:Azure/azure-sdk-for-js",
28+
"repository": {
29+
"type": "git",
30+
"url": "git+https://github.com/Azure/azure-sdk-for-js",
31+
"directory": "sdk/"
32+
},
2933
"bugs": { "url": "https://github.com/Azure/azure-sdk-for-js/issues" },
3034
"files": ["dist/", "README.md", "LICENSE"],
3135
"scripts": {

packages/autorest.typescript/test/integration/generated/azureParameterGrouping/package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,11 @@
2525
"eslint": "catalog:",
2626
"prettier": "catalog:"
2727
},
28-
"repository": "github:Azure/azure-sdk-for-js",
28+
"repository": {
29+
"type": "git",
30+
"url": "git+https://github.com/Azure/azure-sdk-for-js",
31+
"directory": "sdk/"
32+
},
2933
"bugs": { "url": "https://github.com/Azure/azure-sdk-for-js/issues" },
3034
"files": ["dist/", "README.md", "LICENSE"],
3135
"scripts": {

packages/autorest.typescript/test/integration/generated/azureReport/package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,11 @@
2525
"eslint": "catalog:",
2626
"prettier": "catalog:"
2727
},
28-
"repository": "github:Azure/azure-sdk-for-js",
28+
"repository": {
29+
"type": "git",
30+
"url": "git+https://github.com/Azure/azure-sdk-for-js",
31+
"directory": "sdk/"
32+
},
2933
"bugs": { "url": "https://github.com/Azure/azure-sdk-for-js/issues" },
3034
"files": ["dist/", "README.md", "LICENSE"],
3135
"scripts": {

packages/autorest.typescript/test/integration/generated/azureSpecialProperties/package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,11 @@
2626
"eslint": "catalog:",
2727
"prettier": "catalog:"
2828
},
29-
"repository": "github:Azure/azure-sdk-for-js",
29+
"repository": {
30+
"type": "git",
31+
"url": "git+https://github.com/Azure/azure-sdk-for-js",
32+
"directory": "sdk/"
33+
},
3034
"bugs": { "url": "https://github.com/Azure/azure-sdk-for-js/issues" },
3135
"files": ["dist/", "README.md", "LICENSE"],
3236
"scripts": {

packages/autorest.typescript/test/integration/generated/bodyArray/package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,11 @@
2525
"eslint": "catalog:",
2626
"prettier": "catalog:"
2727
},
28-
"repository": "github:Azure/azure-sdk-for-js",
28+
"repository": {
29+
"type": "git",
30+
"url": "git+https://github.com/Azure/azure-sdk-for-js",
31+
"directory": "sdk/"
32+
},
2933
"bugs": { "url": "https://github.com/Azure/azure-sdk-for-js/issues" },
3034
"files": ["dist/", "README.md", "LICENSE"],
3135
"scripts": {

packages/autorest.typescript/test/integration/generated/bodyBoolean/package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,11 @@
2525
"eslint": "catalog:",
2626
"prettier": "catalog:"
2727
},
28-
"repository": "github:Azure/azure-sdk-for-js",
28+
"repository": {
29+
"type": "git",
30+
"url": "git+https://github.com/Azure/azure-sdk-for-js",
31+
"directory": "sdk/"
32+
},
2933
"bugs": { "url": "https://github.com/Azure/azure-sdk-for-js/issues" },
3034
"files": ["dist/", "README.md", "LICENSE"],
3135
"scripts": {

0 commit comments

Comments
 (0)