@expo/config-plugins
Advanced tools
Comparing version 8.0.8 to 8.0.9-canary-20240719-83ee47b
@@ -110,3 +110,3 @@ "use strict"; | ||
function getCurrentPackageForProjectFile(projectRoot, packageRoot, fileName, type) { | ||
const filePath = (0, _glob().sync)(_path().default.join(projectRoot, `android/app/src/${type}/java/**/${fileName}.@(java|kt)`))[0]; | ||
const filePath = (0, _glob().globSync)(_path().default.join(projectRoot, `android/app/src/${type}/java/**/${fileName}.@(java|kt)`))[0]; | ||
if (!filePath) { | ||
@@ -162,3 +162,3 @@ return null; | ||
const jniRoot = _path().default.join(projectRoot, 'android', 'app', 'src', type, 'jni'); | ||
const filesToUpdate = [...(0, _glob().sync)('**/*', { | ||
const filesToUpdate = [...(0, _glob().globSync)('**/*', { | ||
cwd: jniRoot, | ||
@@ -209,3 +209,3 @@ absolute: true | ||
// Move everything from the old directory over | ||
(0, _glob().sync)('**/*', { | ||
(0, _glob().globSync)('**/*', { | ||
cwd: currentPackagePath | ||
@@ -237,3 +237,3 @@ }).forEach(relativePath => { | ||
} | ||
const filesToUpdate = [...(0, _glob().sync)('**/*', { | ||
const filesToUpdate = [...(0, _glob().globSync)('**/*', { | ||
cwd: newPackagePath, | ||
@@ -240,0 +240,0 @@ absolute: true |
@@ -67,3 +67,3 @@ "use strict"; | ||
function getProjectFilePath(projectRoot, name) { | ||
const filePath = (0, _glob().sync)(path().join(projectRoot, `android/app/src/main/java/**/${name}.@(java|kt)`))[0]; | ||
const filePath = (0, _glob().globSync)(path().join(projectRoot, `android/app/src/main/java/**/${name}.@(java|kt)`))[0]; | ||
(0, _assert().default)(filePath, `Project file "${name}" does not exist in android project for root "${projectRoot}"`); | ||
@@ -70,0 +70,0 @@ return filePath; |
@@ -60,2 +60,9 @@ "use strict"; | ||
} | ||
function _glob2() { | ||
const data = require("../utils/glob"); | ||
_glob2 = function () { | ||
return data; | ||
}; | ||
return data; | ||
} | ||
function _warnings() { | ||
@@ -72,7 +79,7 @@ const data = require("../utils/warnings"); | ||
function getAppDelegateHeaderFilePath(projectRoot) { | ||
const [using, ...extra] = (0, _glob().sync)('ios/*/AppDelegate.h', { | ||
const [using, ...extra] = (0, _glob2().withSortedGlobResult)((0, _glob().globSync)('ios/*/AppDelegate.h', { | ||
absolute: true, | ||
cwd: projectRoot, | ||
ignore: ignoredPaths | ||
}); | ||
})); | ||
if (!using) { | ||
@@ -93,7 +100,7 @@ throw new (_errors().UnexpectedError)(`Could not locate a valid AppDelegate header at root: "${projectRoot}"`); | ||
function getAppDelegateFilePath(projectRoot) { | ||
const [using, ...extra] = (0, _glob().sync)('ios/*/AppDelegate.@(m|mm|swift)', { | ||
const [using, ...extra] = (0, _glob2().withSortedGlobResult)((0, _glob().globSync)('ios/*/AppDelegate.@(m|mm|swift)', { | ||
absolute: true, | ||
cwd: projectRoot, | ||
ignore: ignoredPaths | ||
}); | ||
})); | ||
if (!using) { | ||
@@ -114,7 +121,7 @@ throw new (_errors().UnexpectedError)(`Could not locate a valid AppDelegate at root: "${projectRoot}"`); | ||
function getAppDelegateObjcHeaderFilePath(projectRoot) { | ||
const [using, ...extra] = (0, _glob().sync)('ios/*/AppDelegate.h', { | ||
const [using, ...extra] = (0, _glob2().withSortedGlobResult)((0, _glob().globSync)('ios/*/AppDelegate.h', { | ||
absolute: true, | ||
cwd: projectRoot, | ||
ignore: ignoredPaths | ||
}); | ||
})); | ||
if (!using) { | ||
@@ -135,7 +142,7 @@ throw new (_errors().UnexpectedError)(`Could not locate a valid AppDelegate.h at root: "${projectRoot}"`); | ||
function getPodfilePath(projectRoot) { | ||
const [using, ...extra] = (0, _glob().sync)('ios/Podfile', { | ||
const [using, ...extra] = (0, _glob2().withSortedGlobResult)((0, _glob().globSync)('ios/Podfile', { | ||
absolute: true, | ||
cwd: projectRoot, | ||
ignore: ignoredPaths | ||
}); | ||
})); | ||
if (!using) { | ||
@@ -188,7 +195,7 @@ throw new (_errors().UnexpectedError)(`Could not locate a valid Podfile at root: "${projectRoot}"`); | ||
function findSchemePaths(projectRoot) { | ||
return (0, _glob().sync)('ios/*.xcodeproj/xcshareddata/xcschemes/*.xcscheme', { | ||
return (0, _glob2().withSortedGlobResult)((0, _glob().globSync)('ios/*.xcodeproj/xcshareddata/xcschemes/*.xcscheme', { | ||
absolute: true, | ||
cwd: projectRoot, | ||
ignore: ignoredPaths | ||
}); | ||
})); | ||
} | ||
@@ -201,8 +208,8 @@ function findSchemeNames(projectRoot) { | ||
const iosFolder = 'ios'; | ||
const pbxprojPaths = (0, _glob().sync)('ios/**/*.xcodeproj', { | ||
const pbxprojPaths = (0, _glob2().withSortedGlobResult)((0, _glob().globSync)('ios/**/*.xcodeproj', { | ||
cwd: projectRoot, | ||
ignore: ignoredPaths | ||
}).filter(project => !/test|example|sample/i.test(project) || path().dirname(project) === iosFolder) | ||
// sort alphabetically to ensure this works the same across different devices (Fail in CI (linux) without this) | ||
.sort().sort((a, b) => { | ||
}) | ||
// Drop leading `/` from glob results to mimick glob@<9 behavior | ||
.map(filePath => filePath.replace(/^\//, '')).filter(project => !/test|example|sample/i.test(project) || path().dirname(project) === iosFolder)).sort((a, b) => { | ||
const isAInIos = path().dirname(a) === iosFolder; | ||
@@ -260,7 +267,7 @@ const isBInIos = path().dirname(b) === iosFolder; | ||
function getAllInfoPlistPaths(projectRoot) { | ||
const paths = (0, _glob().sync)('ios/*/Info.plist', { | ||
const paths = (0, _glob2().withSortedGlobResult)((0, _glob().globSync)('ios/*/Info.plist', { | ||
absolute: true, | ||
cwd: projectRoot, | ||
ignore: ignoredPaths | ||
}).sort( | ||
})).sort( | ||
// longer name means more suffixes, we want the shortest possible one to be first. | ||
@@ -287,3 +294,3 @@ (a, b) => a.length - b.length); | ||
function getAllEntitlementsPaths(projectRoot) { | ||
const paths = (0, _glob().sync)('ios/*/*.entitlements', { | ||
const paths = (0, _glob().globSync)('ios/*/*.entitlements', { | ||
absolute: true, | ||
@@ -290,0 +297,0 @@ cwd: projectRoot, |
{ | ||
"name": "@expo/config-plugins", | ||
"version": "8.0.8", | ||
"version": "8.0.9-canary-20240719-83ee47b", | ||
"description": "A library for Expo config plugins", | ||
@@ -36,5 +36,5 @@ "main": "build/index.js", | ||
"dependencies": { | ||
"@expo/config-types": "^51.0.0-unreleased", | ||
"@expo/json-file": "~8.3.0", | ||
"@expo/plist": "^0.1.0", | ||
"@expo/config-types": "52.0.0-canary-20240719-83ee47b", | ||
"@expo/json-file": "8.3.4-canary-20240719-83ee47b", | ||
"@expo/plist": "0.1.4-canary-20240719-83ee47b", | ||
"@expo/sdk-runtime-versions": "^1.0.0", | ||
@@ -45,3 +45,3 @@ "chalk": "^4.1.2", | ||
"getenv": "^1.0.0", | ||
"glob": "7.1.6", | ||
"glob": "^10.4.2", | ||
"resolve-from": "^5.0.0", | ||
@@ -58,3 +58,3 @@ "semver": "^7.5.4", | ||
"@types/xml2js": "~0.4.11", | ||
"expo-module-scripts": "^3.3.0" | ||
"expo-module-scripts": "3.6.0-canary-20240719-83ee47b" | ||
}, | ||
@@ -64,3 +64,3 @@ "publishConfig": { | ||
}, | ||
"gitHead": "48f1ec9d91c5c38c7684cb98a314e443cbeb2185" | ||
"gitHead": "83ee47b5c89c7f1b1a5101189580eaf3555f5962" | ||
} |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
1103144
258
12898
1
+ Added@expo/config-types@52.0.0-canary-20240719-83ee47b(transitive)
+ Added@expo/json-file@8.3.4-canary-20240719-83ee47b(transitive)
+ Added@expo/plist@0.1.4-canary-20240719-83ee47b(transitive)
+ Added@isaacs/cliui@8.0.2(transitive)
+ Added@pkgjs/parseargs@0.11.0(transitive)
+ Addedansi-regex@5.0.16.1.0(transitive)
+ Addedansi-styles@6.2.1(transitive)
+ Addedbrace-expansion@2.0.1(transitive)
+ Addedcross-spawn@7.0.6(transitive)
+ Addedeastasianwidth@0.2.0(transitive)
+ Addedemoji-regex@8.0.09.2.2(transitive)
+ Addedforeground-child@3.3.0(transitive)
+ Addedglob@10.4.5(transitive)
+ Addedis-fullwidth-code-point@3.0.0(transitive)
+ Addedisexe@2.0.0(transitive)
+ Addedjackspeak@3.4.3(transitive)
+ Addedlru-cache@10.4.3(transitive)
+ Addedminimatch@9.0.5(transitive)
+ Addedminipass@7.1.2(transitive)
+ Addedpackage-json-from-dist@1.0.1(transitive)
+ Addedpath-key@3.1.1(transitive)
+ Addedpath-scurry@1.11.1(transitive)
+ Addedshebang-command@2.0.0(transitive)
+ Addedshebang-regex@3.0.0(transitive)
+ Addedsignal-exit@4.1.0(transitive)
+ Addedstring-width@4.2.35.1.2(transitive)
+ Addedstrip-ansi@6.0.17.1.0(transitive)
+ Addedwhich@2.0.2(transitive)
+ Addedwrap-ansi@7.0.08.1.0(transitive)
- Removed@expo/config-types@51.0.3(transitive)
- Removed@expo/json-file@8.3.3(transitive)
- Removed@expo/plist@0.1.3(transitive)
- Removedbrace-expansion@1.1.11(transitive)
- Removedconcat-map@0.0.1(transitive)
- Removedfs.realpath@1.0.0(transitive)
- Removedglob@7.1.6(transitive)
- Removedinflight@1.0.6(transitive)
- Removedinherits@2.0.4(transitive)
- Removedminimatch@3.1.2(transitive)
- Removedonce@1.4.0(transitive)
- Removedpath-is-absolute@1.0.1(transitive)
- Removedwrappy@1.0.2(transitive)
Updatedglob@^10.4.2