Skip to content
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
Binary file modified bun.lockb
Binary file not shown.
1 change: 1 addition & 0 deletions example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"scripts": {
"android": "react-native run-android",
"ios": "react-native run-ios",
"bundle-install": "bundle install",
"clean": "del-cli android/build android/app/build ios/build lib",
"tsc": "tsc --noEmit",
"typescript": "tsc --noEmit",
Expand Down
51 changes: 44 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,12 @@
"format": "bun --filter='*' format",
"format:fix": "bun --filter='*' format:fix",
"prepare": "bun --filter=\"react-native-quick-crypto\" prepare",
"pre-release": "./scripts/prepare-release.sh",
"release": "bun pre-release && release-it --github.release=false"
"release": "./scripts/release.sh"
},
"devDependencies": {
"@release-it/bumper": "^6.0.1",
"@release-it/conventional-changelog": "^8.0.1",
"release-it": "^17.6.0"
"@release-it/conventional-changelog": "^9.0.3",
"release-it": "^17.10.0"
},
"packageManager": "bun@1.1.26",
"release-it": {
Expand All @@ -34,13 +33,51 @@
"github": {
"release": true
},
"hooks": {
"before:release": "bun example bundle-install && bun example pods && git add example/ios/Podfile.lock"
},
"plugins": {
"@release-it/bumper": {
"out": "package.json"
"out": [
{
"file": "packages/react-native-nitro-image/package.json",
"path": "version"
},
{
"file": "example/package.json",
"path": "version"
}
]
},
"@release-it/conventional-changelog": {
"preset": {
"name": "conventionalcommits",
"types": [
{
"type": "feat",
"section": "✨ Features"
},
{
"type": "perf",
"section": "💨 Performance Improvements"
},
{
"type": "fix",
"section": "🐛 Bug Fixes"
},
{
"type": "chore(deps)",
"section": "🛠️ Dependency Upgrades"
},
{
"type": "docs",
"section": "📚 Documentation"
}
]
}
}
}
},
"workspaces": [
}, "workspaces": [
"packages/react-native-quick-crypto",
"example"
]
Expand Down
42 changes: 21 additions & 21 deletions packages/react-native-quick-crypto/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,19 @@
"types": "lib/typescript/index.d.ts",
"react-native": "src/index",
"source": "src/index",
"scripts": {
"clean": "del-cli android/build lib",
"tsc": "tsc --noEmit",
"typescript": "tsc --noEmit",
"lint": "eslint \"**/*.{js,ts,tsx}\"",
"lint:fix": "eslint \"**/*.{js,ts,tsx}\" --fix",
"format": "prettier --check \"**/*.{js,ts,tsx}\"",
"format:fix": "prettier --write \"**/*.{js,ts,tsx}\"",
"prepare": "bun clean && bun tsc && bob build",
"release": "release-it",
"specs": "nitro-codegen",
"test": "jest"
},
"files": [
"src",
"lib",
Expand All @@ -27,19 +40,6 @@
"!**/__fixtures__",
"!**/__mocks__"
],
"scripts": {
"clean": "del-cli android/build lib",
"tsc": "tsc --noEmit",
"typescript": "tsc --noEmit",
"lint": "eslint \"**/*.{js,ts,tsx}\"",
"lint:fix": "eslint \"**/*.{js,ts,tsx}\" --fix",
"format": "prettier --check \"**/*.{js,ts,tsx}\"",
"format:fix": "prettier --write \"**/*.{js,ts,tsx}\"",
"prepare": "bun clean && bob build",
"release": "release-it",
"specs": "nitro-codegen",
"test": "jest"
},
"keywords": [
"react-native",
"ios",
Expand All @@ -56,7 +56,8 @@
},
"authors": [
"Szymon Kapała <szymon20000@gmail.com>",
"Marc Rousavy <me@mrousavy.com> (https://github.com/mrousavy)"
"Marc Rousavy <me@mrousavy.com> (https://github.com/mrousavy)",
"Brad Anderson <brad@sankatygroup.com> (https://github.com/boorad)"
],
"license": "MIT",
"bugs": {
Expand All @@ -77,19 +78,19 @@
},
"devDependencies": {
"@eslint/compat": "^1.1.1",
"@eslint/js": "10.0.0",
"@eslint/js": "9.16.0",
"@release-it/bumper": "6.0.1",
"@types/jest": "29.5.11",
"@types/node": "22.0.0",
"@types/react": "18.3.3",
"@types/readable-stream": "4.0.11",
"del-cli": "5.1.0",
"del-cli": "6.0.0",
"eslint": "9.9.0",
"eslint-plugin-react-native": "^4.1.0",
"jest": "29.7.0",
"nitro-codegen": "0.18.1",
"prettier": "3.3.3",
"react-native-builder-bob": "0.30.0",
"react-native-builder-bob": "0.33.3",
"release-it": "17.6.0",
"typescript": "5.1.6",
"typescript-eslint": "^8.1.0"
Expand All @@ -106,10 +107,9 @@
"github": {
"release": false
},
"plugins": {
"@release-it/bumper": {
"out": "package.json"
}
"hooks": {
"before:init": "bun tsc && bun lint && bun format",
"after:bump": "bun prepare"
}
},
"react-native-builder-bob": {
Expand Down
3 changes: 0 additions & 3 deletions scripts/prepare-release.sh

This file was deleted.

19 changes: 19 additions & 0 deletions scripts/release.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/bin/bash

echo "Starting the release process..."
echo "Provided options: $@"

echo "Publishing 'react-native-quick-crypto' to NPM"
cp README.md packages/react-native-quick-crypto/README.md
cd packages/react-native-quick-crypto
bun release $@

echo "Bumping version on example app"
cd ../../example
bun release $@

echo "Creating a Git bump commit and GitHub release"
cd ../
bun run release-it $@

echo "Successfully released QuickCrypto!"
Loading