Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: v bumper #2865

Merged
merged 2 commits into from
Nov 1, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions apps/wallet-mobile/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@
"release:ios:nightly": "bundle exec fastlane ios release --env nightly",
"prerelease:ios:production": "bundle install && ./scripts/update-commit.sh && npx pod-install",
"release:ios:production": "bundle exec fastlane ios release --env production",
"reset": "yarn reset:android && yarn reset:ios",
"reset:android": "cd android && ./gradlew clean && cd ..",
"reset:ios": "yarn pod-install",
"reset": "yarn reset:android && yarn reset:ios",
"run:android:dev:debug": "ENVFILE=.env react-native run-android --mode=devDebug --appIdSuffix=dev --verbose",
"run:android:nightly:debug": "ENVFILE=.env.nightly react-native run-android --mode=nightlyDebug --appIdSuffix=nightly --verbose",
"run:android:nightly:release": "ENVFILE=.env.nightly react-native run-android --mode=nightlyRelease --appIdSuffix=nightly --verbose",
Expand Down Expand Up @@ -56,11 +56,11 @@
},
"jest": {
"cacheDirectory": ".jest/cache",
"collectCoverage": true,
"collectCoverageFrom": [
"src/**/*.{js,jsx,ts,tsx}",
"!src/**/*.d.ts"
],
"collectCoverage": true,
"coverageReporters": [
"text-summary",
"html"
Expand Down Expand Up @@ -119,10 +119,10 @@
"@sentry/react-native": "^5.8.0",
"@shopify/flash-list": "^1.4.1",
"@unstoppabledomains/resolution": "6.0.3",
"@yoroi/banxa": "1.2.0",
"@yoroi/api": "1.2.0",
"@yoroi/common": "1.2.0",
"@yoroi/swap": "1.2.0",
"@yoroi/api": "1.3.0",
"@yoroi/banxa": "1.3.0",
"@yoroi/common": "1.3.0",
"@yoroi/swap": "1.3.0",
"add": "2.0.6",
"assert": "^2.0.0",
"base-64": "^1.0.0",
Expand Down Expand Up @@ -236,7 +236,7 @@
"@wdio/mocha-framework": "^7.16.6",
"@wdio/selenium-standalone-service": "^7.25.1",
"@wdio/spec-reporter": "^7.16.4",
"@yoroi/types": "1.2.0",
"@yoroi/types": "1.3.0",
"babel-eslint": "^10.1.0",
"babel-jest": "^29.2.1",
"babel-loader": "8.2.2",
Expand Down Expand Up @@ -287,4 +287,4 @@
"module": "commonjs"
}
}
}
}
6 changes: 3 additions & 3 deletions packages/api/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@yoroi/api",
"version": "1.2.0",
"version": "1.3.0",
"description": "The API package of Yoroi SDK",
"keywords": [
"yoroi",
Expand Down Expand Up @@ -133,7 +133,7 @@
},
"dependencies": {
"@emurgo/cip14-js": "^3.0.1",
"@yoroi/common": "1.2.0",
"@yoroi/common": "1.3.0",
"axios": "^1.5.0",
"zod": "^3.22.1"
},
Expand All @@ -149,7 +149,7 @@
"@types/jest": "^28.1.2",
"@types/react": "18.2.0",
"@types/react-native": "0.71.6",
"@yoroi/types": "1.2.0",
"@yoroi/types": "1.3.0",
"axios-mock-adapter": "^1.21.5",
"commitlint": "^17.0.2",
"del-cli": "^5.0.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/banxa/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@yoroi/banxa",
"version": "1.2.0",
"version": "1.3.0",
"description": "The Banxa integration package of Yoroi SDK",
"keywords": [
"yoroi",
Expand Down
4 changes: 2 additions & 2 deletions packages/common/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@yoroi/common",
"version": "1.2.0",
"version": "1.3.0",
"description": "The Common package of Yoroi SDK",
"keywords": [
"yoroi",
Expand Down Expand Up @@ -147,7 +147,7 @@
"@types/jest": "^28.1.2",
"@types/react": "18.2.0",
"@types/react-native": "0.71.6",
"@yoroi/types": "1.2.0",
"@yoroi/types": "1.3.0",
"axios-mock-adapter": "^1.21.5",
"commitlint": "^17.0.2",
"del-cli": "^5.0.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/openswap/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@yoroi/openswap",
"version": "1.2.0",
"version": "1.3.0",
"repository": {
"type": "github",
"url": "https://github.com/Emurgo/yoroi.git",
Expand Down
8 changes: 4 additions & 4 deletions packages/swap/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@yoroi/swap",
"version": "1.2.0",
"version": "1.3.0",
"description": "The Swap package of Yoroi SDK",
"keywords": [
"yoroi",
Expand Down Expand Up @@ -135,8 +135,8 @@
},
"dependencies": {
"@emurgo/cip14-js": "^3.0.1",
"@yoroi/api": "1.2.0",
"@yoroi/openswap": "1.2.0",
"@yoroi/api": "1.3.0",
"@yoroi/openswap": "1.3.0",
"immer": "^10.0.2"
},
"devDependencies": {
Expand All @@ -149,7 +149,7 @@
"@types/jest": "^28.1.2",
"@types/react": "18.2.0",
"@types/react-native": "0.71.6",
"@yoroi/types": "1.2.0",
"@yoroi/types": "1.3.0",
"commitlint": "^17.0.2",
"del-cli": "^5.0.0",
"dependency-cruiser": "^13.1.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/types/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@yoroi/types",
"version": "1.2.0",
"version": "1.3.0",
"description": "The Yoroi Types package of Yoroi SDK",
"keywords": [
"yoroi",
Expand Down
26 changes: 26 additions & 0 deletions scripts/bump-pkgs.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#!/bin/bash

# Verify the presence of the packages directory in the current path
if [[ ! -d "packages" ]]; then
echo "Error: 'packages' directory not found in the current path."
return 1
fi

# Verify argument
if [[ "$1" != "--patch" && "$1" != "--minor" && "$1" != "--major" ]]; then
echo "Usage: $0 [--patch | --minor | --major]"
return 1
fi

# Iterate over each package and bump its version
for pkg in packages/*; do
if [[ -d "$pkg" && ! -L "$pkg" && -f "$pkg/package.json" ]]; then
echo "Bumping version for $pkg..."
(
cd "$pkg"
yarn version "$1"
)
fi
done

echo "Version bump complete."
34 changes: 34 additions & 0 deletions scripts/install-pkgs.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
#!/bin/bash

# Verify the presence of the packages directory in the current path
if [[ ! -d "packages" ]]; then
echo "Error: 'packages' directory not found in the current path."
return 1
fi

# Verify argument
if [[ -z "$1" ]]; then
echo "Usage: $0 1.20.0"
return 1
fi

# common
yarn workspace @yoroi/common add -D @yoroi/types@"$1"

# api
yarn workspace @yoroi/api add -D @yoroi/types@"$1"
yarn workspace @yoroi/api add @yoroi/common@"$1"

# swap
yarn workspace @yoroi/swap add -D @yoroi/types@"$1"
yarn workspace @yoroi/swap add @yoroi/api@"$1"
yarn workspace @yoroi/swap add @yoroi/openswap@"$1"

# wallet-mobile
yarn workspace @yoroi/wallet-mobile add -D @yoroi/types@"$1"
yarn workspace @yoroi/wallet-mobile add @yoroi/banxa@"$1"
yarn workspace @yoroi/wallet-mobile add @yoroi/api@"$1"
yarn workspace @yoroi/wallet-mobile add @yoroi/common@"$1"
yarn workspace @yoroi/wallet-mobile add @yoroi/swap@"$1"

echo "Using new packages..."