mirror of
https://github.com/pezkuwichain/pezkuwi-dev.git
synced 2026-04-22 02:08:01 +00:00
cb6801a3cc
- Updated all copyright headers from 2025 to 2026 (system date shows 2026)
- Added build output files to eslint ignore list in packages/dev/config/eslint.js
- Added build output patterns to .gitignore
- Ignored: packages/*/*.{d.ts,js,mjs,cjs}, packages/*/cjs/**, packages/*/env/**,
packages/*/rootJs/**, packages/*/rootStatic/**
- Successfully resolved 521 lint errors by properly ignoring generated files
- Build outputs should not be linted (source files are linted instead)
- Lint and build now pass successfully
75 lines
1.7 KiB
Bash
75 lines
1.7 KiB
Bash
#!/bin/sh
|
|
# Copyright 2017-2025 @pezkuwi/dev authors & contributors
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
# This scripts updates all the inter polkadot-js dependencies. To do so it
|
|
# creates a list of all the packages available and then loops through the
|
|
# package.json files in the various repos, upgrading the dependecies as found.
|
|
#
|
|
# In this upgrading step is uses the local all-deps.js script
|
|
#
|
|
# In addition it also cleans old stale local branches, and performs an overall
|
|
# dedupe - all maintenence operations.
|
|
|
|
DIRECTORIES=( "dev" "wasm" "common" "api" "docs" "ui" "phishing" "extension" "tools" "apps" )
|
|
|
|
for REPO in "${DIRECTORIES[@]}"; do
|
|
if [ "$REPO" != "" ] && [ -d "./$REPO/.git" ]; then
|
|
echo ""
|
|
echo "*** Removing branches in $REPO"
|
|
|
|
cd $REPO
|
|
|
|
CURRENT=$(git rev-parse --abbrev-ref HEAD)
|
|
BRANCHES=( $(git branch | awk -F ' +' '! /\(no branch\)/ {print $2}') )
|
|
|
|
if [ "$CURRENT" = "master" ]; then
|
|
git fetch
|
|
git pull
|
|
else
|
|
echo "$CURRENT !== master"
|
|
fi
|
|
|
|
for BRANCH in "${BRANCHES[@]}"; do
|
|
if [ "$BRANCH" != "$CURRENT" ] && [ "$BRANCH" != "master" ]; then
|
|
git branch -d -f $BRANCH
|
|
fi
|
|
done
|
|
|
|
git prune
|
|
git gc
|
|
|
|
cd ..
|
|
fi
|
|
done
|
|
|
|
echo ""
|
|
echo "*** Updating inter-package-deps"
|
|
|
|
./dev/scripts/all-deps.js
|
|
|
|
echo ""
|
|
echo "*** Installing updated packages"
|
|
|
|
for REPO in "${DIRECTORIES[@]}"; do
|
|
if [ "$REPO" != "" ] && [ -d "./$REPO/.git" ]; then
|
|
echo ""
|
|
cd $REPO
|
|
|
|
DETACHED=$(git status | grep "HEAD detached")
|
|
|
|
if [ "$DETACHED" != "" ]; then
|
|
echo "*** Resetting $REPO"
|
|
|
|
git reset --hard
|
|
else
|
|
echo "*** Installing $REPO"
|
|
|
|
yarn install
|
|
yarn dedupe
|
|
fi
|
|
|
|
cd ..
|
|
fi
|
|
done
|