Comparing version 1.6.4 to 1.6.5
# Changelog | ||
## 1.6.5 | ||
- fix: avoid infinite readdir loop w/symlink skip (great work, thanks @gaodeng!) | ||
- docs(README): clarify jetifier runs automatically in RN>=0.60 (thanks @taylorkline!) | ||
- chore(CI): make sure openjdk8 is used on linux CI instances (@mikehardy) | ||
## 1.6.4 | ||
@@ -4,0 +9,0 @@ - fix: link jetify to jetifier name, `npx jetifier` works (thanks @salakar for the assist) |
{ | ||
"name": "jetifier", | ||
"version": "1.6.4", | ||
"version": "1.6.5", | ||
"description": "jetifier from Android Studio, in npm package format", | ||
@@ -42,4 +42,4 @@ "main": "index.js", | ||
"devDependencies": { | ||
"np": "^5.0.3" | ||
"np": "^5.1.3" | ||
} | ||
} |
@@ -20,2 +20,4 @@ [![npm version](https://badge.fury.io/js/jetifier.svg)](http://badge.fury.io/js/jetifier) | ||
***Note that jetifier is included and ran automatically with [react-native-community/cli](https://github.com/react-native-community/cli) for React Native versions 0.60 and above, so you do not need to install and run jetifier manually.*** | ||
If you use React Native modules with native Java code that isn't converted to AndroidX, and your app is AndroidX, you probably need this. | ||
@@ -47,2 +49,4 @@ | ||
***As noted above, jetify is ran for you automatically in React Native versions 0.60 and above.*** | ||
Proof it works / how this is tested: <https://github.com/mikehardy/rn-androidx-demo>. You can clone that repo, run the script, and see it works. Please feel to make PRs to that repo, especially in App.js or in the dependencies included, if you would like to demonstrate success or failure for a specific module. | ||
@@ -49,0 +53,0 @@ |
@@ -1,2 +0,2 @@ | ||
const { existsSync, readFileSync, readdirSync, statSync } = require('fs'); | ||
const { existsSync, readFileSync, readdirSync, statSync, lstatSync } = require('fs'); | ||
const { join } = require('path'); | ||
@@ -17,3 +17,5 @@ | ||
const filePath = join(dir, file); | ||
if (lstatSync(filePath).isSymbolicLink()) { | ||
continue; | ||
} | ||
if (existsSync(filePath)) { | ||
@@ -20,0 +22,0 @@ if (statSync(filePath).isDirectory()) { |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2740793
91
115