Files
pezkuwichain cb6801a3cc Fix lint errors: Update copyright years to 2026 and ignore build outputs
- 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
2026-01-17 21:02:45 +03:00

35 lines
928 B
Bash

#!/bin/sh
# Copyright 2017-2025 @pezkuwi/dev authors & contributors
# SPDX-License-Identifier: Apache-2.0
# This scripts updates and aligns the version of yarn berry used. It follows
# the following approach -
#
# 1. Updates the version of yarn berry in the dev project
# 2. Performs an install in dev to upgrade the locks/plugins
# 3. Loops through each of the polkadot-js projects, copying the
# config from dev
DIRECTORIES=( "wasm" "common" "api" "docs" "ui" "phishing" "extension" "tools" "apps" )
# update to latest inside dev
cd dev
echo "*** Updating yarn in dev"
git pull
yarn set version latest
yarn
cd ..
# update all our existing polkadot-js projects
for PKG in "${DIRECTORIES[@]}"; do
echo "*** Updating yarn in $PKG"
cd $PKG
git pull
rm -rf .yarn/plugins .yarn/releases
cp -R ../dev/.yarn/plugins .yarn
cp -R ../dev/.yarn/releases .yarn
cat ../dev/.yarnrc.yml > .yarnrc.yml
yarn
cd ..
done