Skip to content

Commit af91416

Browse files
chore: add repository data to package.json files in a consistent way (#3275)
Co-authored-by: Zack Jackson <[email protected]>
1 parent f817674 commit af91416

File tree

24 files changed

+120
-7
lines changed

24 files changed

+120
-7
lines changed

packages/assemble-release-plan/package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,11 @@
3030
"release": "yarn build && changeset publish"
3131
},
3232
"license": "MIT",
33-
"repository": "https://github.com/changesets/changesets/tree/main/packages/assemble-release-plan",
33+
"repository": {
34+
"type": "git",
35+
"url": "https://github.com/module-federation/core/",
36+
"directory": "packages/assemble-release-plan"
37+
},
3438
"dependencies": {
3539
"@changesets/errors": "^0.2.0",
3640
"@changesets/get-dependents-graph": "^2.1.2",

packages/core/package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,11 @@
1212
"publishConfig": {
1313
"access": "public"
1414
},
15-
"repository": "https://github.com/module-federation/core/tree/main/packages/core",
15+
"repository": {
16+
"type": "git",
17+
"url": "https://github.com/module-federation/core/",
18+
"directory": "tree/main/packages/core"
19+
},
1620
"peerDependencies": {
1721
"webpack": "^5.40.0"
1822
}

packages/data-prefetch/package.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@
55
"author": "nieyan <[email protected]>",
66
"homepage": "https://github.com/module-federation/core",
77
"license": "MIT",
8+
"repository": {
9+
"type": "git",
10+
"url": "https://github.com/module-federation/core/",
11+
"directory": "packages/data-prefetch"
12+
},
813
"scripts": {
914
"test": "jest"
1015
},

packages/dts-plugin/package.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@
66
"module": "./dist/index.js",
77
"types": "./dist/index.d.ts",
88
"license": "MIT",
9+
"repository": {
10+
"type": "git",
11+
"url": "https://github.com/module-federation/core/",
12+
"directory": "packages/dts-plugin"
13+
},
914
"publishConfig": {
1015
"access": "public"
1116
},

packages/enhanced/package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,11 @@
33
"version": "0.8.2",
44
"main": "./dist/src/index.js",
55
"types": "./dist/src/index.d.ts",
6-
"repository": "https://github.com/module-federation/core/tree/main/packages/enhanced",
6+
"repository": {
7+
"type": "git",
8+
"url": "https://github.com/module-federation/core/",
9+
"directory": "packages/enhanced"
10+
},
711
"files": [
812
"dist/",
913
"README.md"

packages/error-codes/package.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@
66
"sideEffects": false,
77
"version": "0.8.2",
88
"license": "MIT",
9+
"repository": {
10+
"type": "git",
11+
"url": "https://github.com/module-federation/core/",
12+
"directory": "packages/error-codes"
13+
},
914
"keywords": [
1015
"Module Federation",
1116
"error codes"

packages/esbuild/package.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@
66
"module": "./dist/index.esm.js",
77
"types": "./dist/index.cjs.d.ts",
88
"license": "MIT",
9+
"repository": {
10+
"type": "git",
11+
"url": "https://github.com/module-federation/core/",
12+
"directory": "packages/esbuild"
13+
},
914
"publishConfig": {
1015
"access": "public"
1116
},

packages/managers/package.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@
1414
"access": "public"
1515
},
1616
"author": "hanric <[email protected]>",
17+
"repository": {
18+
"type": "git",
19+
"url": "https://github.com/module-federation/core/",
20+
"directory": "packages/managers"
21+
},
1722
"sideEffects": false,
1823
"main": "./dist/index.cjs.js",
1924
"module": "./dist/index.esm.js",

packages/manifest/package.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@
1717
"access": "public"
1818
},
1919
"author": "hanric <[email protected]>",
20+
"repository": {
21+
"type": "git",
22+
"url": "https://github.com/module-federation/core/",
23+
"directory": "packages/manifest"
24+
},
2025
"sideEffects": false,
2126
"main": "./dist/index.cjs.js",
2227
"module": "./dist/index.esm.js",

packages/modernjs/package.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@
1212
"scripts": {
1313
"build": "modern build"
1414
},
15+
"repository": {
16+
"type": "git",
17+
"url": "https://github.com/module-federation/core/",
18+
"directory": "packages/repository"
19+
},
1520
"exports": {
1621
".": {
1722
"import": "./dist/esm/cli/index.js",

0 commit comments

Comments
 (0)