We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ecf9c47 commit 0b998d3Copy full SHA for 0b998d3
lib/android.js
@@ -49,8 +49,9 @@ const dirs = process.platform === 'win32'
49
50
// need to find the android module and its package.json
51
let androidPackageJson = {};
52
+const { root } = path.parse(__dirname);
53
(function findPackageJson(dir) {
- if (dir !== '/') {
54
+ if (dir !== root) {
55
const file = path.join(dir, 'android', 'package.json');
56
if (fs.existsSync(file)) {
57
androidPackageJson = require(file);
0 commit comments