Skip to content

Commit 9e7860c

Browse files
authored
H-6047, H-6048: Move sort-package-json and sync-turborepo into repo-chores (#8291)
1 parent 4ac5c57 commit 9e7860c

File tree

66 files changed

+1090
-945
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

66 files changed

+1090
-945
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/usr/bin/env bash
2+
#MISE description="Sort package.json files to ensure consistent key ordering"
3+
set -euo pipefail
4+
5+
#USAGE arg "[arguments]..." double_dash="required" default="" help="Additional arguments that are directly passed to the sort-package-json command"
6+
7+
declare -a "ARGUMENTS=($usage_arguments)" # We're using "declare -a" here to allow for quoted arguments to be properly parsed as single array elements
8+
9+
10+
cargo run --package hash-repo-chores --bin repo-chores-cli -- sort-package-json ${ARGUMENTS[@]:+"${ARGUMENTS[@]}"}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/usr/bin/env bash
2+
#MISE description="Check that package.json files are sorted"
3+
set -euo pipefail
4+
5+
#USAGE arg "[arguments]..." double_dash="required" default="" help="Additional arguments that are directly passed to the sort-package-json command"
6+
7+
declare -a "ARGUMENTS=($usage_arguments)" # We're using "declare -a" here to allow for quoted arguments to be properly parsed as single array elements
8+
9+
10+
cargo run --package hash-repo-chores --bin repo-chores-cli -- sort-package-json --check ${ARGUMENTS[@]:+"${ARGUMENTS[@]}"}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/usr/bin/env bash
2+
#MISE description="Generate package.json files from Cargo.toml metadata"
3+
set -euo pipefail
4+
5+
#USAGE arg "[arguments]..." double_dash="required" default="" help="Additional arguments that are directly passed to the sync-turborepo command"
6+
7+
declare -a "ARGUMENTS=($usage_arguments)" # We're using "declare -a" here to allow for quoted arguments to be properly parsed as single array elements
8+
9+
10+
cargo run --package hash-repo-chores --bin repo-chores-cli -- sync-turborepo ${ARGUMENTS[@]:+"${ARGUMENTS[@]}"}

0 commit comments

Comments
 (0)