Skip to content

Commit

Permalink
fix(android): Stop infinite recursion on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
cb1kenobi authored Mar 30, 2023
1 parent ecf9c47 commit 0b998d3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/android.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,9 @@ const dirs = process.platform === 'win32'

// need to find the android module and its package.json
let androidPackageJson = {};
const { root } = path.parse(__dirname);
(function findPackageJson(dir) {
if (dir !== '/') {
if (dir !== root) {
const file = path.join(dir, 'android', 'package.json');
if (fs.existsSync(file)) {
androidPackageJson = require(file);
Expand Down

0 comments on commit 0b998d3

Please sign in to comment.