mirror of
https://github.com/pezkuwichain/pezkuwi-dev.git
synced 2026-04-21 23:48:03 +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
61 lines
3.2 KiB
Bash
Executable File
61 lines
3.2 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
# Pezkuwi Dev Rebrand Script
|
|
# Converts @pezkuwi/* packages to @pezkuwi/*
|
|
|
|
set -e
|
|
|
|
echo "🔄 Starting Pezkuwi Dev rebrand..."
|
|
|
|
# 1. Update all package.json files
|
|
echo "📦 Updating package.json files..."
|
|
find . -type f -name "package.json" -not -path "*/node_modules/*" -exec sed -i 's/@pezkuwi/@pezkuwi/g' {} +
|
|
find . -type f -name "package.json" -not -path "*/node_modules/*" -exec sed -i 's/polkadot-js\/common/pezkuwichain\/pezkuwi-dev/g' {} +
|
|
find . -type f -name "package.json" -not -path "*/node_modules/*" -exec sed -i 's/polkadot-js/pezkuwi/g' {} +
|
|
|
|
# 2. Update TypeScript imports
|
|
echo "📝 Updating TypeScript imports..."
|
|
find . -type f \( -name "*.ts" -o -name "*.tsx" \) -not -path "*/node_modules/*" -not -path "*/build/*" -exec sed -i 's/from "@pezkuwi/from "@pezkuwi/g' {} +
|
|
find . -type f \( -name "*.ts" -o -name "*.tsx" \) -not -path "*/node_modules/*" -not -path "*/build/*" -exec sed -i "s/from '@pezkuwi/from '@pezkuwi/g" {} +
|
|
find . -type f \( -name "*.ts" -o -name "*.tsx" \) -not -path "*/node_modules/*" -not -path "*/build/*" -exec sed -i 's/import("@pezkuwi/import("@pezkuwi/g' {} +
|
|
|
|
# 3. Update JavaScript files
|
|
echo "📜 Updating JavaScript files..."
|
|
find . -type f \( -name "*.js" -o -name "*.cjs" -o -name "*.mjs" \) -not -path "*/node_modules/*" -not -path "*/build/*" -exec sed -i 's/from "@pezkuwi/from "@pezkuwi/g' {} +
|
|
find . -type f \( -name "*.js" -o -name "*.cjs" -o -name "*.mjs" \) -not -path "*/node_modules/*" -not -path "*/build/*" -exec sed -i "s/from '@pezkuwi/from '@pezkuwi/g" {} +
|
|
|
|
# 4. Update README and docs
|
|
echo "📚 Updating documentation..."
|
|
find . -type f -name "*.md" -not -path "*/node_modules/*" -exec sed -i 's/@pezkuwi/@pezkuwi/g' {} +
|
|
find . -type f -name "*.md" -not -path "*/node_modules/*" -exec sed -i 's/polkadot-js\/common/pezkuwichain\/pezkuwi-dev/g' {} +
|
|
find . -type f -name "*.md" -not -path "*/node_modules/*" -exec sed -i 's/polkadot\.js/pezkuwi.js/g' {} +
|
|
find . -type f -name "*.md" -not -path "*/node_modules/*" -exec sed -i 's/Polkadot\.js/Pezkuwi.js/g' {} +
|
|
find . -type f -name "*.md" -not -path "*/node_modules/*" -exec sed -i 's/Polkadot/Pezkuwi/g' {} +
|
|
|
|
# 5. Update config files
|
|
echo "⚙️ Updating config files..."
|
|
sed -i 's/@pezkuwi/@pezkuwi/g' tsconfig*.json 2>/dev/null || true
|
|
sed -i 's/@pezkuwi/@pezkuwi/g' eslint.config.js 2>/dev/null || true
|
|
sed -i 's/@pezkuwi/@pezkuwi/g' rollup.config.js 2>/dev/null || true
|
|
|
|
# 6. Update GitHub workflows
|
|
echo "🔧 Updating GitHub workflows..."
|
|
find .github -type f -name "*.yml" -exec sed -i 's/polkadot-js\/common/pezkuwichain\/pezkuwi-dev/g' {} + 2>/dev/null || true
|
|
|
|
# 7. Update author info
|
|
echo "👤 Updating author info..."
|
|
sed -i 's/"author": "Jaco Greeff.*"/"author": "Pezkuwi Team <team@pezkuwichain.io>"/g' package.json
|
|
sed -i 's/"homepage":.*/"homepage": "https:\/\/github.com\/pezkuwichain\/pezkuwi-dev#readme",/g' package.json
|
|
|
|
echo "✅ Rebrand complete!"
|
|
echo ""
|
|
echo "📊 Summary:"
|
|
echo " - Package namespace: @pezkuwi → @pezkuwi"
|
|
echo " - Repository: polkadot-js/common → pezkuwichain/pezkuwi-dev"
|
|
echo " - Packages: 3 (util, util-crypto, keyring, networks, + 10 helpers)"
|
|
echo ""
|
|
echo "Next steps:"
|
|
echo " 1. Review: git diff"
|
|
echo " 2. Commit: git add . && git commit -m 'Rebrand to Pezkuwi Dev'"
|
|
echo " 3. Create GitHub repo and push"
|