Home
last modified time | relevance | path

Searched refs:packageJsonPath (Results 1 – 25 of 41) sorted by relevance

12

/expo/packages/@expo/config/src/
H A DresolvePackageJson.ts7 const packageJsonPath = join(projectRoot, 'package.json'); constant
8 if (!existsSync(packageJsonPath)) {
10 `The expected package.json path: ${packageJsonPath} does not exist`,
14 return packageJsonPath;
H A DgetExpoSDKVersion.ts23 const packageJsonPath = resolveFrom.silent(projectRoot, 'expo/package.json'); constant
24 if (!packageJsonPath) {
30 const expoPackageJson = JsonFile.read(packageJsonPath, { json5: true });
H A DConfig.ts98 const [packageJson, packageJsonPath] = getPackageJsonAndPath(projectRoot); constant
108 packageJsonPath,
164 packageJsonPath,
175 packageJsonPath,
195 const packageJsonPath = getRootPackageJsonPath(projectRoot); constant
196 return [JsonFile.read(packageJsonPath), packageJsonPath];
302 packageJsonPath,
310 packageJsonPath?: string;
318 packageJsonPath,
/expo/packages/@expo/config/build/
H A DresolvePackageJson.js29 const packageJsonPath = (0, _path().join)(projectRoot, 'package.json');
30 if (!(0, _fs().existsSync)(packageJsonPath)) {
31 …throw new (_Errors().ConfigError)(`The expected package.json path: ${packageJsonPath} does not exi…
33 return packageJsonPath;
H A DresolvePackageJson.js.map1packageJsonPath","join","existsSync","ConfigError"],"sources":["../src/resolvePackageJson.ts"],"so…
H A DgetExpoSDKVersion.js43 const packageJsonPath = _resolveFrom().default.silent(projectRoot, 'expo/package.json');
44 if (!packageJsonPath) {
47 const expoPackageJson = _jsonFile().default.read(packageJsonPath, {
H A DConfig.js193 const [packageJson, packageJsonPath] = getPackageJsonAndPath(projectRoot);
202 packageJsonPath
251 packageJsonPath
262 packageJsonPath,
279 const packageJsonPath = (0, _resolvePackageJson().getRootPackageJsonPath)(projectRoot);
280 return [_jsonFile().default.read(packageJsonPath), packageJsonPath];
384 packageJsonPath,
394 packageJsonPath
/expo/tools/src/publish-packages/tasks/
H A DpublishPackages.ts32 const packageJsonPath = path.join(pkg.path, 'package.json');
41 await JsonFile.setAsync(packageJsonPath, 'gitHead', gitHead);
49 await JsonFile.deleteKeyAsync(packageJsonPath, 'gitHead');
H A DupdateModuleTemplate.ts54 const packageJsonPath = path.join(templatePkg.path, TEMPLATE_PACKAGE_JSON_FILENAME); constant
55 const packageJson = await JsonFile.readAsync(packageJsonPath);
78 await JsonFile.writeAsync(packageJsonPath, packageJson);
/expo/tools/src/commands/
H A DCreateUnimodule.ts17 const packageJsonPath = path.join(unimoduleDirectory, 'package.json'); constant
18 const packageJson = new JsonFile(packageJsonPath);
31 console.log(`Setting up ${chalk.magenta(path.relative(EXPO_DIR, packageJsonPath))}...`);
H A DUpdateVendoredModule.ts134 const packageJsonPath = path.join( constant
136 moduleConfig.packageJsonPath ?? 'package.json'
138 const packageJson = require(packageJsonPath) as PackageJson;
269 const packageJsonPath = path.join( constant
271 moduleConfig.packageJsonPath ?? 'package.json'
273 const packageJson = require(packageJsonPath) as PackageJson;
H A DUpdateProjectTemplates.ts55 const packageJsonPath = path.join(template.path, 'package.json'); constant
56 const packageJson = require(packageJsonPath);
92 await JsonFile.writeAsync(packageJsonPath, packageJson);
/expo/packages/expo-modules-autolinking/src/autolinking/
H A DmergeLinkingOptions.ts95 const packageJsonPath = await findUp('package.json', { cwd }); constant
96 const projectRoot = packageJsonPath != null ? path.join(packageJsonPath, '..') : cwd;
H A DfindModules.ts219 function visitPackage(packageJsonPath: string) {
220 const packageJson = require(packageJsonPath);
244 const projectRequire = createRequire(packageJsonPath);
/expo/packages/@expo/cli/src/start/doctor/dependencies/
H A DvalidateDependenciesVersions.ts177 let packageJsonPath: string | undefined;
179 packageJsonPath = resolveFrom(projectRoot, `${packageName}/package.json`);
184 packageJsonPath = error.message.match(/("exports"|defined) in (.*)$/i)?.[2];
187 if (!packageJsonPath) {
192 const packageJson = await JsonFile.readAsync<BundledNativeModules>(packageJsonPath);
/expo/packages/expo-updates/e2e/setup/
H A Dproject.js55 const packageJsonPath = path.resolve(dependencyPath, 'package.json');
56 const packageJsonCopyPath = `${packageJsonPath}-original`;
57 await fs.copyFile(packageJsonPath, packageJsonCopyPath);
59 const packageJson = require(packageJsonPath);
64 packageJsonPath,
92 await fs.copyFile(packageJsonCopyPath, packageJsonPath);
522 const packageJsonPath = path.resolve(projectRoot, 'package.json');
523 let packageJsonString = await fs.readFile(packageJsonPath, 'utf-8');
528 await fs.rm(packageJsonPath);
529 await fs.writeFile(packageJsonPath, packageJsonString, 'utf-8');
/expo/packages/expo-modules-autolinking/build/autolinking/
H A DmergeLinkingOptions.js74 const packageJsonPath = await (0, find_up_1.default)('package.json', { cwd });
75 const projectRoot = packageJsonPath != null ? path_1.default.join(packageJsonPath, '..') : cwd;
H A DfindModules.js178 function visitPackage(packageJsonPath) { argument
179 const packageJson = require(packageJsonPath);
200 const projectRequire = (0, module_1.createRequire)(packageJsonPath);
/expo/packages/create-expo-module/src/
H A DcreateExampleApp.ts131 const packageJsonPath = path.join(appPath, 'package.json'); constant
132 const packageJson = await fs.readJson(packageJsonPath);
149 await fs.writeJson(packageJsonPath, packageJson, {
/expo/packages/@expo/cli/src/start/doctor/ngrok/
H A DExternalModule.ts176 const packageJsonPath = resolver(`${this.pkg.name}/package.json`); constant
177 const packageJson = this._require(packageJsonPath);
191 …packageJson.version}' does not satisfy ${this.pkg.versionRange}. Installed at: ${packageJsonPath}`,
/expo/packages/@expo/config/build/plugins/
H A DwithInternal.d.ts12 packageJsonPath?: string;
/expo/packages/@expo/cli/src/start/doctor/dependencies/__tests__/
H A DvalidateDependenciesVersions-test.ts146 const packageJsonPath = path.join(projectRoot, 'node_modules/firebase/package.json'); constant
149 [packageJsonPath]: JSON.stringify({
167 …nst message = `Package subpath './package.json' is not defined by "exports" in ${packageJsonPath}`;
/expo/tools/src/
H A DPackages.ts366 const packageJsonPath = pathToLocalPackageJson(packageName); constant
368 const packageJson = require(packageJsonPath);
369 return new Package(path.dirname(packageJsonPath), packageJson);
385 .map((packageJsonPath) => {
386 const fullPackageJsonPath = path.join(PACKAGES_DIR, packageJsonPath);
/expo/packages/create-expo-module/build/
H A DcreateExampleApp.js106 const packageJsonPath = path_1.default.join(appPath, 'package.json');
107 const packageJson = await fs_extra_1.default.readJson(packageJsonPath);
120 await fs_extra_1.default.writeJson(packageJsonPath, packageJson, {
/expo/packages/@expo/config/src/plugins/
H A DwithInternal.ts15 { projectRoot: string; packageJsonPath?: string } & Partial<ConfigFilePaths>

12