react-native-ios-utilities
Version:
Utilities for react-native + iOS and wrappers for using swift together with fabric/paper + JSI
196 lines (195 loc) • 7.97 kB
JSON
{
"name": "react-native-ios-utilities",
"version": "5.1.5",
"description": "Utilities for react-native + iOS and wrappers for using swift together with fabric/paper + JSI",
"main": "lib/commonjs/index",
"module": "lib/module/index",
"types": "lib/typescript/src/index.d.ts",
"react-native": "src/index",
"source": "src/index",
"files": [
"src",
"lib",
"android",
"ios",
"cpp",
"*.podspec",
"!ios/build",
"!android/build",
"!android/gradle",
"!android/gradlew",
"!android/gradlew.bat",
"!android/local.properties",
"!**/__tests__",
"!**/__fixtures__",
"!**/__mocks__",
"!**/.*",
"ReactNativeIosUtilities.podspec",
"scripts"
],
"scripts": {
"example": "yarn workspace react-native-ios-utilities-example",
"typescript": "tsc --noEmit --project tsconfig.build.json",
"typescript:example": "cd example && tsc --noEmit --project tsconfig.json",
"typescript:all": "yarn run typescript && yarn run typescript-example",
"lint": "eslint \"**/*.{js,ts,tsx}\"",
"lint:circular-dep": "npx dpdm --no-warning --no-tree ./src/index.ts && npx madge --circular --extensions ts ./src",
"clean": "del-cli android/build example/android/build example/android/app/build example/ios/build lib",
"prepare": "bob build",
"release": "release-it --only-version",
"open:ios": "open -a \"Xcode\" example/ios",
"open:android": "open -a \"Android Studio\" example/android",
"open:docs": "open -a \"Typora\" ./README.md",
"close:ios": "killall Xcode",
"reopen:ios": "yarn run close:ios && yarn run open:ios",
"build:update-version": "PACKAGE_VERSION=$(cat package.json | grep version | head -1 | awk -F: '{ print $2 }' | sed 's/[\",]//g' | sed 's/-.*//') && cd example/ios && agvtool new-marketing-version $PACKAGE_VERSION && xcrun agvtool next-version -all && cd ../..",
"build": "yarn run build:js && yarn run build:ios",
"build:js": "yarn run lint && yarn run lint:circular-dep && yarn run typescript && yarn run bob build",
"build:ios": "sh ./scripts/build-ios.sh",
"build:ios-release": "sh ./scripts/build-ios.sh Release",
"build:ios-info": "cd ./example/ios && xcodebuild -project ./*.xcodeproj -showBuildSettings -list && xcodebuild -project ./*.xcodeproj -showBuildSettings",
"run:release": "cd example && npx react-native run-ios --configuration Release",
"run:debug": "cd example && npx react-native run-ios --configuration Debug",
"build-and-run": "yarn run build && yarn run run:debug && yarn run run:release",
"pod-install": "yarn run pod-install:new-static",
"pod-install:old": "yarn run pod-install:old-static",
"pod-install:new-static": "cd example/ios && bundle install && RCT_NEW_ARCH_ENABLED=1 USE_FRAMEWORKS='static' bundle exec pod install && cd ../.. && yarn run build:update-version && yarn run pod-install:set-env",
"pod-install:new-dynamic": "cd example/ios && bundle install && RCT_NEW_ARCH_ENABLED=1 USE_FRAMEWORKS='dynamic' bundle exec pod install && cd ../.. && yarn run build:update-version && yarn run pod-install:set-env",
"pod-install:old-static": "cd example/ios && RCT_NEW_ARCH_ENABLED=0 USE_FRAMEWORKS='static' pod install && cd ../.. && yarn run build:update-version && yarn run pod-install:set-env",
"pod-install:old-dynamic": "cd example/ios && RCT_NEW_ARCH_ENABLED=0 USE_FRAMEWORKS='dynamic' pod install && cd ../.. && yarn run build:update-version && yarn run pod-install:set-env",
"pod-install:set-env": "yarn run nuke:example-pods-env && sh ./scripts/set-node-env.sh",
"pod-install:reopen": "yarn run close:ios && yarn run pod-install && yarn run open:ios",
"pod-install:reopen-old": "yarn run close:ios && yarn run pod-install:old && yarn run open:ios",
"nuke:node-modules": "rm -rfv ./yarn.lock ./node_modules && cd example && rm -rfv ./node_modules ./yarn.lock && cd ../..",
"nuke:example-pods": "cd example/ios && pod cache clean --all && rm -rfv ./Pods ./build ./Podfile.lock && cd ../..",
"nuke:example-pods-env": "cd example/ios && rm -rfv ./.xcode.env.local ./.xcode.env",
"nuke:derived-data": "rm -rfv $HOME/Library/Developer/Xcode/DerivedData",
"nuke:cache-js": "watchman watch-del-all && rm -rfv $TMPDIR/react-* && rm -rfv $TMPDIR/react-native-packager-cache-* && rm -rfv $TMPDIR/metro-bundler-cache-* && rm -rfv $TMPDIR/haste-map-* && rm -rfv rm -rf $TMPDIR/metro-cache && npm cache clean --force && npm cache verify && yarn cache clean && rm -rfv ~/.yarn/berry/cache",
"nuke:all": "yarn run nuke:example-pods && yarn run nuke:cache-js && yarn run nuke:derived-data && npm run nuke:node-modules",
"update-dep": "yarn add react-native-ios-utilities --dev && cd example && yarn add react-native-ios-utilities && cd ..",
"update-dep:next": "yarn add react-native-ios-utilities@next --dev && cd example && yarn add react-native-ios-utilities@next && cd .. && yarn run build:update-version",
"update-dep:pods": "cd example/ios && bundle exec pod install --repo-update && bundle exec pod update DGSwiftUtilities ComputableLayout && cd ../.. && yarn run build:update-version",
"initialize": "yarn run initialize:js && yarn run pod-install",
"initialize:js": "yarn install && cd example && yarn install && cd ..",
"initialize:reset": "npm run nuke:all && yarn && npm run initialize",
"test-build:all": "sh ./scripts/test-builds.sh",
"test-build:all-quick": "sh ./scripts/test-builds.sh quick"
},
"keywords": [
"react-native",
"ios",
"utilities",
"utility",
"fabric",
"paper",
"JSI"
],
"repository": {
"type": "git",
"url": "git+https://github.com/dominicstop/react-native-ios-utilities.git"
},
"author": "Dominic Go <dominic@dominicgo.dev> (https://github.com/dominicstop)",
"license": "MIT",
"bugs": {
"url": "https://github.com/dominicstop/react-native-ios-utilities/issues"
},
"homepage": "https://github.com/dominicstop/react-native-ios-utilities#readme",
"publishConfig": {
"registry": "https://registry.npmjs.org/"
},
"devDependencies": {
"@react-native/eslint-config": "^0.78.0",
"@types/react": "^19.0.10",
"del-cli": "^5.1.0",
"eslint": "^8.51.0",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-prettier": "^5.0.1",
"jest": "^29.7.0",
"prettier": "^3.0.3",
"react": "19.0.0",
"react-native": "0.78.0",
"react-native-builder-bob": "^0.20.0",
"release-it": "^16.3.0",
"turbo": "^1.10.7",
"typescript": "^5.2.2"
},
"resolutions": {
"@types/react": "^18.2.44"
},
"peerDependencies": {
"react": "*",
"react-native": "*"
},
"workspaces": [
"example"
],
"packageManager": "yarn@3.6.1",
"release-it": {
"git": {
"commitMessage": "⚙️ Chore: Release ${version}",
"tagName": "v${version}"
},
"npm": {
"publish": true
},
"github": {
"release": true
}
},
"eslintConfig": {
"root": true,
"extends": [
"@react-native",
"prettier"
],
"rules": {
"prettier/prettier": 0
}
},
"eslintIgnore": [
"node_modules/",
"lib/"
],
"prettier": {
"quoteProps": "consistent",
"singleQuote": true,
"tabWidth": 2,
"trailingComma": "es5",
"useTabs": false
},
"react-native-builder-bob": {
"source": "src",
"output": "lib",
"targets": [
[
"commonjs",
{
"esm": true
}
],
[
"module",
{
"esm": true
}
],
[
"typescript",
{
"project": "tsconfig.build.json",
"esm": true
}
]
]
},
"codegenConfig": {
"name": "RNIUtilitiesSpec",
"type": "all",
"jsSrcsDir": "src",
"componentProvider": {
"RNIDetachedView": "RNIDetachedView",
"RNIDummyTestView": "RNIDummyTestView",
"RNIWrapperView": "RNIWrapperView"
}
}
}