🔨 Add repository field to package.json files#438
Merged
Robdel12 merged 1 commit intopercy:masterfrom Jul 26, 2021
ybiquitous:add-repository-to-package.json
Merged
🔨 Add repository field to package.json files#438Robdel12 merged 1 commit intopercy:masterfrom ybiquitous:add-repository-to-package.json
repository field to package.json files#438Robdel12 merged 1 commit intopercy:masterfrom
ybiquitous:add-repository-to-package.json
Conversation
Contributor
Author
|
The repository of Jest is an example using the |
This change is created by the following Bash script:
```bash
#!/usr/bin/env bash
set -eu -o pipefail
files=$(git ls-files | grep package.json)
pwd=$PWD
for file in $files; do
echo "Adding repository to ${file} ..."
dir=$(dirname $file)
if [[ $dir == "." ]]; then
npm pkg set repository.type="git" repository.url="https://github.com/percy/cli"
else
npm pkg set repository.type="git" repository.url="https://github.com/percy/cli" repository.directory="$dir" --workspace="$dir"
fi
done
```
Also, the changed `package.json` files can be verified by the following command:
```console
$ cat .npmpackagejsonlintrc.json
{
"rules": {
"require-repository": "error"
}
}
$ npx npm-package-json-lint .
```
See also:
- https://docs.npmjs.com/cli/v7/configuring-npm/package-json#repository
- https://npmpackagejsonlint.org
Robdel12
approved these changes
Jul 26, 2021
Contributor
Robdel12
left a comment
There was a problem hiding this comment.
🏁 Nice, thanks for the PR!
Contributor
Author
|
@Robdel12 Thank you for the merge! 😄 |
samarsault
pushed a commit
that referenced
this pull request
Mar 3, 2023
Bumps [cypress](https://github.com/cypress-io/cypress) from 9.1.0 to 9.1.1. - [Release notes](https://github.com/cypress-io/cypress/releases) - [Changelog](https://github.com/cypress-io/cypress/blob/develop/.releaserc.base.js) - [Commits](cypress-io/cypress@v9.1.0...v9.1.1) --- updated-dependencies: - dependency-name: cypress dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Close #435
This change is created by the following Bash script:
(Note:
npm pkgis available since npm@7.20.0)Also, the changed
package.jsonfiles can be verified by the following command:See also: