Skip to content

Commit

Permalink
Sort package.json in new Source packages (#1494)
Browse files Browse the repository at this point in the history
## What are you changing?

- Sorted `package.json` files in new Source packages by running
`sort-package-json`.

## Why?

- `sort-package-json` runs as a pre-commit hook. Merging from `main`
into branches that existed before these new packages were created may
cause these changes to be applied there depending on what files have
been touched. It makes sense to apply these changes in a single place
rather than an unrelated branch.
  • Loading branch information
jamesmockett committed May 28, 2024
2 parents fc0b002 + 50fba86 commit 546f021
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"//": "sub-package to match the `exports` field in the parent package.json",
"private": true,
"type": "module",
"main": "../dist/react-components.js"
"main": "../dist/react-components.js",
"//": "sub-package to match the `exports` field in the parent package.json"
}
4 changes: 2 additions & 2 deletions libs/@guardian/source/foundations/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"//": "sub-package to match the `exports` field in the parent package.json",
"private": true,
"type": "module",
"main": "../dist/foundations.js"
"main": "../dist/foundations.js",
"//": "sub-package to match the `exports` field in the parent package.json"
}
4 changes: 2 additions & 2 deletions libs/@guardian/source/react-components/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"//": "sub-package to match the `exports` field in the parent package.json",
"private": true,
"type": "module",
"main": "../dist/react-components.js"
"main": "../dist/react-components.js",
"//": "sub-package to match the `exports` field in the parent package.json"
}

0 comments on commit 546f021

Please sign in to comment.