refactor: release

This commit is contained in:
Overtorment 2026-04-19 21:55:57 +01:00 committed by Ivan
parent a8535da0d3
commit 448cf1a9e0
3 changed files with 10 additions and 4 deletions

1
.gitignore vendored
View File

@ -85,6 +85,7 @@ example/.yarn/*
ios/build/
ios/DerivedData/
dist/
.codegen/
### Xcode ###
*.xcodeproj/*
!*.xcodeproj/project.pbxproj

View File

@ -1,4 +1,5 @@
node_modules/
.codegen/
old-example/
example/
example-js-code/

View File

@ -12,7 +12,8 @@
"nativePackage": true,
"scripts": {
"build": "tsc --project tsconfig.json",
"clean": "rm -rf dist/",
"clean": "rm -rf dist/ build/ .codegen/ android/app/build/",
"prepare": "tsc --project tsconfig.json",
"test": "jest",
"lint": "yarn eslint -c .eslintrc.js",
"check-ios": "scripts/check-ios.sh",
@ -20,7 +21,7 @@
"release:beta": "yarn clean && yarn build && yarn publish --tag beta --verbose",
"release:local": "yarn clean && yarn build && tmp=$(mktemp) && yarn pack --filename $tmp.tar.gz && open -R $tmp.tar.gz",
"start": "watchman watch-del-all && node node_modules/react-native/local-cli/cli.js start",
"codegen": "react-native codegen --verbose --path . --platform ios --source library && react-native codegen --verbose --path . --platform android --source library",
"codegen": "rm -rf .codegen/ && react-native codegen --verbose --path . --platform ios --outputPath .codegen --source library && react-native codegen --verbose --path . --platform android --outputPath .codegen --source library",
"bootstrap": "cd example/ && bundle install && yarn && cd ios/ && bundle exec pod install",
"bootstrap-linux": "cd example/ && yarn"
},
@ -30,8 +31,11 @@
"types": "dist/index.d.ts",
"react-native": "src/index",
"files": [
"android",
"build",
"android/build.gradle",
"android/gradle",
"android/gradlew",
"android/gradlew.bat",
"android/src",
"dist",
"ios",
"src",