mirror of
https://github.com/selfxyz/self.git
synced 2026-02-19 02:24:25 -05:00
* Update dependency versions * Fix gesture handler Android dependency (#1611) * Patch screens codegen type (#1609) * Downgrade Sentry React Native (#1612) * fix patches and packages * downgrade versions for gesture handler and screens * agent feedback * fix ios building * allow ios tets to pass * formatting * make cache more resilient * Address CodeRabbitAI review comments This commit addresses all 7 unresolved CodeRabbitAI comments on PR #1606: Patch-package error handling (comments #1, #2, #3): - stderr capture already implemented in both root and workspace patch runs - Add CI warning when patches fail silently instead of exiting with 0 - Log completion status in CI mode for visibility Critical Mixpanel dependency fix (comment #5): - Add explicit Mixpanel-swift pod declaration to fix E2E build failures - Ensures Mixpanel is available even when NFCPassportReader is skipped during E2E testing React-native-web validation (comment #4): - Verified no usage of deprecated findNodeHandle, pointerEvents: 'box-none', or createPortal - Safe to upgrade from 0.19 to 0.21.2 CI workflow improvements (comments #6, #7): - Create cache-sdk-build composite action for consistent SDK build artifact caching - Replace all direct actions/cache@v4 usage with cache-yarn composite action - Replace all direct actions/cache/restore@v4 and save@v4 with cache-sdk-build - Add nested require() validation step before tests to fail fast on problematic patterns All changes follow repository coding guidelines for CI caching and test memory optimization. * Extend cache composite actions to all SDK workflows This commit extends the caching standardization from PR #1606 to include mobile-sdk-ci.yml and core-sdk-ci.yml workflows. New composite actions created: - cache-mobile-sdk-build: For mobile SDK build artifacts - cache-core-sdk-build: For core SDK build artifacts Workflow updates: - mobile-sdk-ci.yml: Replaced 5 instances of direct actions/cache with cache-mobile-sdk-build - core-sdk-ci.yml: Replaced 4 instances of direct actions/cache with cache-core-sdk-build All SDK CI workflows now use consistent caching patterns via composite actions, following the AGENTS.md guideline: "Use shared composite actions from .github/actions for CI caching instead of calling actions/cache directly." Benefits: - Consistent caching across all SDK workflows (qrcode, mobile, core) - Centralized cache configuration - easier to maintain - Follows established patterns from qrcode-sdk-ci.yml * downgrade react-native-svg * update pod lock file * sort
82 lines
4.0 KiB
JSON
82 lines
4.0 KiB
JSON
{
|
|
"name": "self-workspace-root",
|
|
"workspaces": {
|
|
"packages": [
|
|
"app",
|
|
"circuits",
|
|
"common",
|
|
"contracts",
|
|
"packages/*",
|
|
"prover/tests",
|
|
"scripts/tests",
|
|
"sdk/*"
|
|
]
|
|
},
|
|
"scripts": {
|
|
"build": "yarn workspaces foreach --topological-dev --parallel --exclude @selfxyz/contracts --exclude @selfxyz/circuits --exclude mobile-sdk-demo -i --all run build",
|
|
"build:demo": "yarn workspace mobile-sdk-demo build",
|
|
"build:mobile-sdk": "yarn workspace @selfxyz/mobile-sdk-alpha build",
|
|
"check:versions": "node scripts/check-package-versions.mjs",
|
|
"demo:mobile": "yarn build:mobile-sdk && yarn build:demo && yarn workspace mobile-sdk-demo start",
|
|
"docstrings": "yarn docstrings:app && yarn docstrings:sdk",
|
|
"docstrings:app": "yarn tsx scripts/docstring-report.ts \"app/src/**/*.{ts,tsx}\" --label \"Mobile App\" --write-report docs/coverage/app.json",
|
|
"docstrings:sdk": "yarn tsx scripts/docstring-report.ts \"packages/mobile-sdk-alpha/src/**/*.{ts,tsx}\" --label \"Mobile SDK Alpha\" --write-report docs/coverage/sdk.json",
|
|
"format": "SKIP_BUILD_DEPS=1 yarn format:root && yarn format:github && SKIP_BUILD_DEPS=1 yarn workspaces foreach --parallel -i --all --exclude self-workspace-root run format",
|
|
"format:github": "yarn prettier --parser yaml --write .github/**/*.yml --single-quote false",
|
|
"format:root": "echo 'format markdown' && yarn prettier --parser markdown --write *.md && echo 'format yaml' && yarn prettier --parser yaml --write .*.{yml,yaml} --single-quote false && yarn prettier --write scripts/**/*.{js,mjs,ts} && yarn prettier --parser json --write scripts/**/*.json",
|
|
"gitleaks": "gitleaks protect --staged --redact --config=gitleaks-override.toml",
|
|
"postinstall": "node scripts/run-patch-package.cjs",
|
|
"lint": "yarn lint:headers && yarn workspaces foreach --parallel -i --all --exclude self-workspace-root run lint",
|
|
"lint:headers": "node scripts/check-duplicate-headers.cjs . && node scripts/check-license-headers.mjs . --check",
|
|
"lint:headers:fix": "node scripts/check-duplicate-headers.cjs . && node scripts/check-license-headers.mjs . --fix",
|
|
"prepare": "husky",
|
|
"reinstall-app": "yarn install && (cd app && yarn clean:watchman && yarn clean:build && yarn clean:ios && yarn clean:xcode && yarn clean:pod-cache && yarn clean:android-deps && rm -rf app/node_modules) && yarn install && yarn workspace @selfxyz/mobile-app run install-app",
|
|
"sort-package-jsons": "find . -name 'package.json' -not -path './node_modules/*' -not -path './*/node_modules/*' | xargs npx sort-package-json",
|
|
"test": "yarn workspaces foreach --parallel -i --all run test",
|
|
"test:license-headers": "cd scripts/tests && node check-license-headers.test.mjs",
|
|
"types": "yarn workspaces foreach --topological-dev --parallel --exclude @selfxyz/contracts --exclude @selfxyz/common --exclude @selfxyz/mobile-app -i --all run types"
|
|
},
|
|
"resolutions": {
|
|
"@babel/core": "^7.28.6",
|
|
"@babel/runtime": "^7.28.6",
|
|
"@noble/curves": "1.9.7",
|
|
"@noble/hashes": "1.8.0",
|
|
"@swc/core": "1.7.36",
|
|
"@tamagui/animations-react-native": "1.126.14",
|
|
"@tamagui/toast": "1.126.14",
|
|
"@types/node": "^22.18.3",
|
|
"@types/react": "^18.3.4",
|
|
"@types/react-dom": "^18.3.0",
|
|
"ethereum-cryptography": "3.2.0",
|
|
"punycode": "npm:punycode.js@^2.3.1",
|
|
"react": "^18.3.1",
|
|
"react-dom": "^18.3.1",
|
|
"react-native": "0.76.9",
|
|
"react-native-blur-effect": "1.1.3",
|
|
"react-native-passkey": "3.3.1",
|
|
"react-native-webview": "13.16.0"
|
|
},
|
|
"dependencies": {
|
|
"@babel/runtime": "^7.28.6",
|
|
"js-sha1": "^0.7.0",
|
|
"react": "^18.3.1",
|
|
"react-native": "0.76.9",
|
|
"uuid": "^13.0.0"
|
|
},
|
|
"devDependencies": {
|
|
"@react-native-community/cli-server-api": "^16.0.3",
|
|
"@types/node": "^22.18.3",
|
|
"gitleaks": "1.0.0",
|
|
"husky": "9.1.7",
|
|
"knip": "^5.63.1",
|
|
"patch-package": "^8.0.0",
|
|
"prettier": "^3.6.2",
|
|
"tsx": "^4.21.0",
|
|
"typescript": "^5.9.3"
|
|
},
|
|
"packageManager": "yarn@4.12.0",
|
|
"engines": {
|
|
"node": ">=22 <23"
|
|
}
|
|
}
|