Skip to content

Commit c747ea5

Browse files
authored
Include repository info in package.json for subpackages (required for trusted publishing) (#1663)
### Change summary Update the template of `package.json` created for the sub packages so that they include repository information. In particular, repository.url is a requirement for trusted publishing. All Submissions: * [x] Have you followed the guidelines in our Contributing document? * [x] Have you checked to ensure there aren't other open [Pull Requests](https://github.com/fastly/cli/pulls) for the same update/change? ### User Impact The published 14.0.0 doesn't have the corresponding subpackages. Anyone who installs specifically 14.0.0 using NPM will have problems. This will need to be merged and a 14.0.1 should be released promptly.
1 parent ccffdad commit c747ea5

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66

77
### Bug Fixes:
88

9+
- fix(npm): Include repository info in package.json of subpackages required for trusted publishing [#1663](https://github.com/fastly/cli/pull/1663)
10+
911
### Enhancements:
1012

1113
### Dependencies:

npm/@fastly/cli/update.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,14 @@ function packageJson(name, version, description, os, cpu, binaryAsset) {
178178
main: "index.js",
179179
description,
180180
license: "Apache-2.0",
181+
repository: {
182+
type: "git",
183+
url: "git+https://github.com/fastly/cli.git"
184+
},
185+
bugs: {
186+
url: "https://github.com/fastly/cli/issues"
187+
},
188+
homepage: "https://github.com/fastly/cli#readme",
181189
preferUnplugged: false,
182190
os: [os],
183191
cpu: [cpu],

0 commit comments

Comments
 (0)