| /expo/packages/@expo/config/src/ |
| H A D | resolvePackageJson.ts | 7 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 D | getExpoSDKVersion.ts | 23 const packageJsonPath = resolveFrom.silent(projectRoot, 'expo/package.json'); constant 24 if (!packageJsonPath) { 30 const expoPackageJson = JsonFile.read(packageJsonPath, { json5: true });
|
| H A D | Config.ts | 98 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 D | resolvePackageJson.js | 29 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 D | resolvePackageJson.js.map | 1 …packageJsonPath","join","existsSync","ConfigError"],"sources":["../src/resolvePackageJson.ts"],"so…
|
| H A D | getExpoSDKVersion.js | 43 const packageJsonPath = _resolveFrom().default.silent(projectRoot, 'expo/package.json'); 44 if (!packageJsonPath) { 47 const expoPackageJson = _jsonFile().default.read(packageJsonPath, {
|
| H A D | Config.js | 193 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 D | publishPackages.ts | 32 const packageJsonPath = path.join(pkg.path, 'package.json'); 41 await JsonFile.setAsync(packageJsonPath, 'gitHead', gitHead); 49 await JsonFile.deleteKeyAsync(packageJsonPath, 'gitHead');
|
| H A D | updateModuleTemplate.ts | 54 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 D | CreateUnimodule.ts | 17 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 D | UpdateVendoredModule.ts | 134 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 D | UpdateProjectTemplates.ts | 55 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 D | mergeLinkingOptions.ts | 95 const packageJsonPath = await findUp('package.json', { cwd }); constant 96 const projectRoot = packageJsonPath != null ? path.join(packageJsonPath, '..') : cwd;
|
| H A D | findModules.ts | 219 function visitPackage(packageJsonPath: string) { 220 const packageJson = require(packageJsonPath); 244 const projectRequire = createRequire(packageJsonPath);
|
| /expo/packages/@expo/cli/src/start/doctor/dependencies/ |
| H A D | validateDependenciesVersions.ts | 177 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 D | project.js | 55 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 D | mergeLinkingOptions.js | 74 const packageJsonPath = await (0, find_up_1.default)('package.json', { cwd }); 75 const projectRoot = packageJsonPath != null ? path_1.default.join(packageJsonPath, '..') : cwd;
|
| H A D | findModules.js | 178 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 D | createExampleApp.ts | 131 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 D | ExternalModule.ts | 176 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 D | withInternal.d.ts | 12 packageJsonPath?: string;
|
| /expo/packages/@expo/cli/src/start/doctor/dependencies/__tests__/ |
| H A D | validateDependenciesVersions-test.ts | 146 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 D | Packages.ts | 366 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 D | createExampleApp.js | 106 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 D | withInternal.ts | 15 { projectRoot: string; packageJsonPath?: string } & Partial<ConfigFilePaths>
|