chore: cleanup scripts
This commit is contained in:
@@ -20,8 +20,8 @@
|
||||
"lint-staged": "lint-staged",
|
||||
"pretest": "pnpm build",
|
||||
"reinstall": "pnpm clean:unix && pnpm install",
|
||||
"list:packages": "./scripts/list_published_packages.sh beta",
|
||||
"script:release:beta": "./scripts/release_beta.sh",
|
||||
"script:list-packages": "tsx ./scripts/list-packages.ts",
|
||||
"script:release": "tsx ./scripts/release.ts",
|
||||
"test": "pnpm test:int && pnpm test:components && pnpm test:e2e",
|
||||
"test:components": "cross-env jest --config=jest.components.config.js",
|
||||
"test:e2e": "npx playwright install --with-deps && ts-node -T ./test/runE2E.ts",
|
||||
|
||||
@@ -1,19 +0,0 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# List all published packages
|
||||
|
||||
packages=$(find packages -name package.json -type f -exec grep -L '"private": true' {} \; | xargs jq -r '.name')
|
||||
|
||||
# sort alphabetically
|
||||
packages=$(echo "$packages" | tr ' ' '\n' | sort -u | tr '\n' ' ')
|
||||
|
||||
# Loop through each package and print the name and version. Print as table
|
||||
|
||||
printf "%-30s %-20s %-20s\n" "package" "latest" "beta"
|
||||
|
||||
for package in $packages; do
|
||||
info=$(npm view "$package" dist-tags --json)
|
||||
latest=$(echo "$info" | jq -r '.latest')
|
||||
beta=$(echo "$info" | jq -r '.beta')
|
||||
printf "%-30s %-20s %-20s\n" "$package" "$latest" "$beta"
|
||||
done
|
||||
@@ -1,26 +0,0 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -ex
|
||||
|
||||
# Build packages/payload
|
||||
|
||||
package_name=$1
|
||||
package_dir="packages/$package_name"
|
||||
|
||||
if [ -z "$package_name" ]; then
|
||||
echo "Please specify a package to publish"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Check if packages/$package_name exists
|
||||
|
||||
if [ ! -d "$package_dir" ]; then
|
||||
echo "Package $package_name does not exist"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
npm --prefix "$package_dir" version pre --preid beta
|
||||
git add "$package_dir"/package.json
|
||||
new_version=$(node -p "require('./$package_dir/package.json').version")
|
||||
git commit -m "chore(release): $package_name@$new_version"
|
||||
pnpm publish -C "$package_dir" --tag beta --no-git-checks
|
||||
Reference in New Issue
Block a user