@react-native-community/cli-platform-android
Advanced tools
Comparing version 13.5.1 to 13.5.2
@@ -21,5 +21,5 @@ "use strict"; | ||
} | ||
function _glob() { | ||
const data = _interopRequireDefault(require("glob")); | ||
_glob = function () { | ||
function _fastGlob() { | ||
const data = _interopRequireDefault(require("fast-glob")); | ||
_fastGlob = function () { | ||
return data; | ||
@@ -30,8 +30,15 @@ }; | ||
var _extractComponentDescriptors = require("./extractComponentDescriptors"); | ||
function _cliTools() { | ||
const data = require("@react-native-community/cli-tools"); | ||
_cliTools = function () { | ||
return data; | ||
}; | ||
return data; | ||
} | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
function findComponentDescriptors(packageRoot) { | ||
const files = _glob().default.sync('**/+(*.js|*.jsx|*.ts|*.tsx)', { | ||
cwd: packageRoot, | ||
nodir: true, | ||
ignore: '**/node_modules/**' | ||
const files = _fastGlob().default.sync('**/+(*.js|*.jsx|*.ts|*.tsx)', { | ||
cwd: (0, _cliTools().unixifyPaths)(packageRoot), | ||
onlyFiles: true, | ||
ignore: ['**/node_modules/**'] | ||
}); | ||
@@ -38,0 +45,0 @@ const codegenComponent = files.map(filePath => _fs().default.readFileSync(_path().default.join(packageRoot, filePath), 'utf8')).map(_extractComponentDescriptors.extractComponentDescriptors).filter(Boolean); |
@@ -7,5 +7,5 @@ "use strict"; | ||
exports.default = findManifest; | ||
function _glob() { | ||
const data = _interopRequireDefault(require("glob")); | ||
_glob = function () { | ||
function _fastGlob() { | ||
const data = _interopRequireDefault(require("fast-glob")); | ||
_fastGlob = function () { | ||
return data; | ||
@@ -22,2 +22,9 @@ }; | ||
} | ||
function _cliTools() { | ||
const data = require("@react-native-community/cli-tools"); | ||
_cliTools = function () { | ||
return data; | ||
}; | ||
return data; | ||
} | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
@@ -33,4 +40,4 @@ /** | ||
function findManifest(folder) { | ||
let manifestPaths = _glob().default.sync(_path().default.join('**', 'AndroidManifest.xml'), { | ||
cwd: folder, | ||
let manifestPaths = _fastGlob().default.sync(_path().default.join('**', 'AndroidManifest.xml'), { | ||
cwd: (0, _cliTools().unixifyPaths)(folder), | ||
ignore: ['node_modules/**', '**/build/**', '**/debug/**', 'Examples/**', 'examples/**', '**/Pods/**', '**/sdks/hermes/android/**', '**/src/androidTest/**', '**/src/test/**'] | ||
@@ -37,0 +44,0 @@ }); |
@@ -15,5 +15,5 @@ "use strict"; | ||
} | ||
function _glob() { | ||
const data = _interopRequireDefault(require("glob")); | ||
_glob = function () { | ||
function _fastGlob() { | ||
const data = _interopRequireDefault(require("fast-glob")); | ||
_fastGlob = function () { | ||
return data; | ||
@@ -30,2 +30,9 @@ }; | ||
} | ||
function _cliTools() { | ||
const data = require("@react-native-community/cli-tools"); | ||
_cliTools = function () { | ||
return data; | ||
}; | ||
return data; | ||
} | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
@@ -41,4 +48,4 @@ /** | ||
function getPackageClassName(folder) { | ||
const files = _glob().default.sync('**/+(*.java|*.kt)', { | ||
cwd: folder | ||
const files = _fastGlob().default.sync('**/+(*.java|*.kt)', { | ||
cwd: (0, _cliTools().unixifyPaths)(folder) | ||
}); | ||
@@ -45,0 +52,0 @@ const packages = files.map(filePath => _fs().default.readFileSync(_path().default.join(folder, filePath), 'utf8')).map(matchClassName).filter(match => match); |
{ | ||
"name": "@react-native-community/cli-platform-android", | ||
"version": "13.5.1", | ||
"version": "13.5.2", | ||
"license": "MIT", | ||
@@ -10,7 +10,7 @@ "main": "build/index.js", | ||
"dependencies": { | ||
"@react-native-community/cli-tools": "13.5.1", | ||
"@react-native-community/cli-tools": "13.5.2", | ||
"chalk": "^4.1.2", | ||
"execa": "^5.0.0", | ||
"fast-glob": "^3.3.2", | ||
"fast-xml-parser": "^4.2.4", | ||
"glob": "^7.1.3", | ||
"logkitty": "^0.7.1" | ||
@@ -25,5 +25,4 @@ }, | ||
"devDependencies": { | ||
"@react-native-community/cli-types": "13.5.1", | ||
"@types/fs-extra": "^8.1.0", | ||
"@types/glob": "^7.1.1" | ||
"@react-native-community/cli-types": "13.5.2", | ||
"@types/fs-extra": "^8.1.0" | ||
}, | ||
@@ -36,3 +35,3 @@ "homepage": "https://github.com/react-native-community/cli/tree/main/packages/cli-platform-android", | ||
}, | ||
"gitHead": "f9d8a74b76995ad92d5a0fa78f09a0b8dc44fbfe" | ||
"gitHead": "2602f83860f7f834b38d1a51bcafbae3e89bb40b" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
229837
2
2430
+ Addedfast-glob@^3.3.2
+ Added@nodelib/fs.scandir@2.1.5(transitive)
+ Added@nodelib/fs.stat@2.0.5(transitive)
+ Added@nodelib/fs.walk@1.2.8(transitive)
+ Added@react-native-community/cli-tools@13.5.2(transitive)
+ Addedbraces@3.0.3(transitive)
+ Addedfast-glob@3.3.2(transitive)
+ Addedfastq@1.17.1(transitive)
+ Addedfill-range@7.1.1(transitive)
+ Addedglob-parent@5.1.2(transitive)
+ Addedis-extglob@2.1.1(transitive)
+ Addedis-glob@4.0.3(transitive)
+ Addedis-number@7.0.0(transitive)
+ Addedmerge2@1.4.1(transitive)
+ Addedmicromatch@4.0.8(transitive)
+ Addedpicomatch@2.3.1(transitive)
+ Addedqueue-microtask@1.2.3(transitive)
+ Addedreusify@1.0.4(transitive)
+ Addedrun-parallel@1.2.0(transitive)
+ Addedto-regex-range@5.0.1(transitive)
- Removedglob@^7.1.3
- Removed@react-native-community/cli-tools@13.5.1(transitive)
- Removedbalanced-match@1.0.2(transitive)
- Removedbrace-expansion@1.1.11(transitive)
- Removedconcat-map@0.0.1(transitive)
- Removedfs.realpath@1.0.0(transitive)
- Removedglob@7.2.3(transitive)
- Removedinflight@1.0.6(transitive)
- Removedminimatch@3.1.2(transitive)
- Removedonce@1.4.0(transitive)
- Removedpath-is-absolute@1.0.1(transitive)
- Removedwrappy@1.0.2(transitive)