chore: import upstream snapshot with attribution
This commit is contained in:
Executable
+9
@@ -0,0 +1,9 @@
|
||||
#!/bin/sh
|
||||
|
||||
# This script checks if the current commit contains changesets.
|
||||
|
||||
set -eu
|
||||
|
||||
CHANGES=$(node -e "require('@changesets/read').default(process.cwd()).then(result => console.log(!!result.length))")
|
||||
|
||||
echo "${CHANGES}"
|
||||
Executable
+15
@@ -0,0 +1,15 @@
|
||||
#!/bin/sh
|
||||
|
||||
# This script checks if the specified package has changesets in the current commit.
|
||||
|
||||
set -eu
|
||||
|
||||
if [ $# -lt 1 ]; then
|
||||
echo "Error: Package name is required as the first argument." >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
PACKAGE_NAME=$1
|
||||
PACKAGE_CHANGES=$(node -e "require('@changesets/read').default(process.cwd()).then(result => console.log(result.flatMap(changeset => changeset.releases.flatMap(release => release.name)).includes('${PACKAGE_NAME}')))")
|
||||
|
||||
echo "${PACKAGE_CHANGES}"
|
||||
Reference in New Issue
Block a user