Skip to content

Commit e1853e4

Browse files
committed
fix(packages): add repository/homepage/bugs to every published package
npm publish with provenance (sigstore-signed attestation) checks that the package.json's repository.url matches the GitHub repo the CI is running in. Without this field, publishes against npmjs return: 422 Unprocessable Entity — Error verifying sigstore provenance bundle: package.json: "repository.url" is "", expected to match "https://github.com/abapify/adt-cli" from provenance Add the standard `repository` (git+https, with `directory` pointing to the package subpath), `homepage`, and `bugs` fields to every publishable package.json in the monorepo. One-shot jq patch — shape is identical across packages, only `directory` varies. Also fixes `@abapify/asjson-parser` which previously pointed at the old `abapify/js` repo.
1 parent ab0d30d commit e1853e4

30 files changed

Lines changed: 282 additions & 13 deletions

File tree

packages/abap-ast/package.json

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,14 @@
2323
"sap"
2424
],
2525
"author": "abapify",
26-
"license": "MIT"
26+
"license": "MIT",
27+
"repository": {
28+
"type": "git",
29+
"url": "git+https://github.com/abapify/adt-cli.git",
30+
"directory": "packages/abap-ast"
31+
},
32+
"homepage": "https://github.com/abapify/adt-cli/tree/main/packages/abap-ast#readme",
33+
"bugs": {
34+
"url": "https://github.com/abapify/adt-cli/issues"
35+
}
2736
}

packages/acds/package.json

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,14 @@
2727
"adt"
2828
],
2929
"author": "abapify",
30-
"license": "MIT"
30+
"license": "MIT",
31+
"repository": {
32+
"type": "git",
33+
"url": "git+https://github.com/abapify/adt-cli.git",
34+
"directory": "packages/acds"
35+
},
36+
"homepage": "https://github.com/abapify/adt-cli/tree/main/packages/acds#readme",
37+
"bugs": {
38+
"url": "https://github.com/abapify/adt-cli/issues"
39+
}
3140
}

packages/adk/package.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,14 @@
1919
"@abapify/adt-client": "workspace:*",
2020
"@abapify/adt-locks": "workspace:*",
2121
"@abapify/adt-schemas": "workspace:*"
22+
},
23+
"repository": {
24+
"type": "git",
25+
"url": "git+https://github.com/abapify/adt-cli.git",
26+
"directory": "packages/adk"
27+
},
28+
"homepage": "https://github.com/abapify/adt-cli/tree/main/packages/adk#readme",
29+
"bugs": {
30+
"url": "https://github.com/abapify/adt-cli/issues"
2231
}
2332
}

packages/adt-atc/package.json

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,14 @@
3131
"@abapify/adt-plugin": "workspace:*",
3232
"chalk": "^5.3.0"
3333
},
34-
"module": "./dist/index.mjs"
34+
"module": "./dist/index.mjs",
35+
"repository": {
36+
"type": "git",
37+
"url": "git+https://github.com/abapify/adt-cli.git",
38+
"directory": "packages/adt-atc"
39+
},
40+
"homepage": "https://github.com/abapify/adt-cli/tree/main/packages/adt-atc#readme",
41+
"bugs": {
42+
"url": "https://github.com/abapify/adt-cli/issues"
43+
}
3544
}

packages/adt-aunit/package.json

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,14 @@
3434
"@abapify/adt-contracts": "workspace:*",
3535
"@abapify/adt-plugin-abapgit": "workspace:*"
3636
},
37-
"module": "./dist/index.mjs"
37+
"module": "./dist/index.mjs",
38+
"repository": {
39+
"type": "git",
40+
"url": "git+https://github.com/abapify/adt-cli.git",
41+
"directory": "packages/adt-aunit"
42+
},
43+
"homepage": "https://github.com/abapify/adt-cli/tree/main/packages/adt-aunit#readme",
44+
"bugs": {
45+
"url": "https://github.com/abapify/adt-cli/issues"
46+
}
3847
}

packages/adt-auth/package.json

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,5 +33,14 @@
3333
"oauth"
3434
],
3535
"author": "Booking.com",
36-
"license": "MIT"
36+
"license": "MIT",
37+
"repository": {
38+
"type": "git",
39+
"url": "git+https://github.com/abapify/adt-cli.git",
40+
"directory": "packages/adt-auth"
41+
},
42+
"homepage": "https://github.com/abapify/adt-cli/tree/main/packages/adt-auth#readme",
43+
"bugs": {
44+
"url": "https://github.com/abapify/adt-cli/issues"
45+
}
3746
}

packages/adt-cli/package.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,5 +54,14 @@
5454
},
5555
"bin": {
5656
"adt": "./dist/bin/adt.mjs"
57+
},
58+
"repository": {
59+
"type": "git",
60+
"url": "git+https://github.com/abapify/adt-cli.git",
61+
"directory": "packages/adt-cli"
62+
},
63+
"homepage": "https://github.com/abapify/adt-cli/tree/main/packages/adt-cli#readme",
64+
"bugs": {
65+
"url": "https://github.com/abapify/adt-cli/issues"
5766
}
5867
}

packages/adt-client/package.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,14 @@
2020
"@abapify/logger": "workspace:*",
2121
"@abapify/adt-contracts": "workspace:*",
2222
"@abapify/adt-schemas": "workspace:*"
23+
},
24+
"repository": {
25+
"type": "git",
26+
"url": "git+https://github.com/abapify/adt-cli.git",
27+
"directory": "packages/adt-client"
28+
},
29+
"homepage": "https://github.com/abapify/adt-cli/tree/main/packages/adt-client#readme",
30+
"bugs": {
31+
"url": "https://github.com/abapify/adt-cli/issues"
2332
}
2433
}

packages/adt-codegen/package.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,5 +36,14 @@
3636
"fast-xml-parser": "^5.5.0",
3737
"commander": "^11.1.0",
3838
"chalk": "^5.3.0"
39+
},
40+
"repository": {
41+
"type": "git",
42+
"url": "git+https://github.com/abapify/adt-cli.git",
43+
"directory": "packages/adt-codegen"
44+
},
45+
"homepage": "https://github.com/abapify/adt-cli/tree/main/packages/adt-codegen#readme",
46+
"bugs": {
47+
"url": "https://github.com/abapify/adt-cli/issues"
3948
}
4049
}

packages/adt-config/package.json

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,14 @@
1515
"files": [
1616
"dist",
1717
"README.md"
18-
]
18+
],
19+
"repository": {
20+
"type": "git",
21+
"url": "git+https://github.com/abapify/adt-cli.git",
22+
"directory": "packages/adt-config"
23+
},
24+
"homepage": "https://github.com/abapify/adt-cli/tree/main/packages/adt-config#readme",
25+
"bugs": {
26+
"url": "https://github.com/abapify/adt-cli/issues"
27+
}
1928
}

0 commit comments

Comments
 (0)