@expo/config
Advanced tools
Comparing version 8.0.4 to 8.0.5
@@ -6,7 +6,7 @@ import { ProjectConfig } from '../Config.types'; | ||
platform: string; | ||
projectConfig?: Partial<ProjectConfig>; | ||
projectConfig?: ProjectConfig; | ||
}): string | null; | ||
export declare function getEntryPoint(projectRoot: string, entryFiles: string[], platforms: string[], projectConfig?: Partial<ProjectConfig>): string | null; | ||
export declare function getEntryPointWithExtensions(projectRoot: string, entryFiles: string[], extensions: string[], projectConfig?: Partial<ProjectConfig>): string; | ||
export declare function getEntryPoint(projectRoot: string, entryFiles: string[], platforms: string[], projectConfig?: ProjectConfig): string | null; | ||
export declare function getEntryPointWithExtensions(projectRoot: string, entryFiles: string[], extensions: string[], projectConfig?: ProjectConfig): string; | ||
export declare function resolveFromSilentWithExtensions(fromDirectory: string, moduleId: string, extensions: string[]): string | null; | ||
export declare function getFileWithExtensions(fromDirectory: string, moduleId: string, extensions: string[]): string | null; |
@@ -41,2 +41,9 @@ "use strict"; | ||
} | ||
function _Errors() { | ||
const data = require("../Errors"); | ||
_Errors = function () { | ||
return data; | ||
}; | ||
return data; | ||
} | ||
function _extensions() { | ||
@@ -92,4 +99,9 @@ const data = require("./extensions"); | ||
const { | ||
exp, | ||
pkg | ||
} = projectConfig; | ||
if (typeof (exp === null || exp === void 0 ? void 0 : exp.entryPoint) === 'string') { | ||
// We want to stop reading the app.json for determining the entry file in SDK +49 | ||
throw new (_Errors().ConfigError)('expo.entryPoint has been removed in favor of the main field in the package.json.', 'DEPRECATED'); | ||
} | ||
if (pkg) { | ||
@@ -96,0 +108,0 @@ // If the config doesn't define a custom entry then we want to look at the `package.json`s `main` field, and try again. |
{ | ||
"name": "@expo/config", | ||
"version": "8.0.4", | ||
"version": "8.0.5", | ||
"description": "A library for interacting with the app.json", | ||
@@ -36,4 +36,4 @@ "main": "build/index.js", | ||
"@babel/code-frame": "~7.10.4", | ||
"@expo/config-plugins": "~7.0.0", | ||
"@expo/config-types": "^49.0.0-alpha.1", | ||
"@expo/config-plugins": "~6.0.0", | ||
"@expo/config-types": "^48.0.0", | ||
"@expo/json-file": "^8.2.37", | ||
@@ -54,3 +54,3 @@ "getenv": "^1.0.0", | ||
}, | ||
"gitHead": "51f434ef271cece0aadf07f73912eaf11356865c" | ||
"gitHead": "7d75b6c7a0903e3f31e6ade6282f823408382f0d" | ||
} |
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
152777
1833
+ Added@expo/config-plugins@6.0.2(transitive)
+ Added@expo/config-types@48.0.0(transitive)
- Removed@expo/config-plugins@7.0.0(transitive)
- Removed@expo/config-types@49.0.0(transitive)
Updated@expo/config-plugins@~6.0.0
Updated@expo/config-types@^48.0.0