Home
last modified time | relevance | path

Searched refs:JsonFile (Results 1 – 25 of 68) sorted by relevance

123

/expo/packages/@expo/cli/src/api/user/
H A DUserSettings.ts2 import JsonFile from '@expo/json-file';
32 function userSettingsJsonFile(): JsonFile<UserSettingsData> {
33 return new JsonFile<UserSettingsData>(getFilePath(), {
49 return JsonFile.read<UserSettingsData>(getUserStatePath())?.auth ?? null;
/expo/packages/@expo/cli/src/start/doctor/typescript/
H A DupdateTSConfig.ts1 import JsonFile from '@expo/json-file';
16 await JsonFile.writeAsync(tsConfigPath, { compilerOptions: {} });
19 const projectTSConfig = JsonFile.read(tsConfigPath, {
41 await JsonFile.writeAsync(tsConfigPath, projectTSConfig);
/expo/tools/src/
H A DProjectVersions.ts1 import JsonFile from '@expo/json-file';
18 const packageJson = await JsonFile.readAsync(path.join(EXPO_DIR, 'packages/expo/package.json'));
46 const appJson = (await JsonFile.readAsync(homeAppJsonPath, { json5: true })) as any;
64 const { sdkVersions } = (await JsonFile.readAsync(sdkVersionsPath)) as SDKVersionsObject;
120 await JsonFile.mergeAsync(BUNDLED_NATIVE_MODULES_PATH, patch);
H A DProjectTemplates.ts1 import JsonFile from '@expo/json-file';
18 const packageJson = await JsonFile.readAsync<Template>(
/expo/packages/@expo/cli/e2e/__tests__/
H A Dinstall-test.ts2 import JsonFile from '@expo/json-file';
89 const pkg = await JsonFile.readAsync(path.resolve(projectRoot, 'package.json'));
118 let pkg = await JsonFile.readAsync(path.resolve(projectRoot, 'package.json'));
138 pkg = await JsonFile.readAsync(path.resolve(projectRoot, 'package.json'));
161 let pkg = await JsonFile.readAsync(path.resolve(projectRoot, 'package.json'));
173 pkg = await JsonFile.readAsync(path.resolve(projectRoot, 'package.json'));
H A Dexport-web-test.ts2 import JsonFile from '@expo/json-file';
84 const assetsManifest = await JsonFile.readAsync(path.resolve(outputDir, 'asset-manifest.json'));
110 expect(await JsonFile.readAsync(path.resolve(outputDir, 'manifest.json'))).toEqual({
129 expect(await JsonFile.readAsync(path.resolve(outputDir, 'serve.json'))).toEqual({
/expo/packages/@expo/cli/src/start/server/type-generation/
H A Dtsconfig.ts1 import JsonFile, { JSONObject } from '@expo/json-file';
14 JsonFile.read(tsConfigPath, {
47 JsonFile.read(tsConfigPath, {
75 await JsonFile.writeAsync(tsConfigPath, tsConfig);
/expo/tools/src/publish-packages/tasks/
H A DupdateBundledNativeModulesFile.ts1 import JsonFile from '@expo/json-file';
25 const bundledNativeModules = await JsonFile.readAsync<Record<string, string>>(
49 await JsonFile.writeAsync(bundledNativeModulesPath, bundledNativeModules);
H A DpublishPackages.ts1 import JsonFile from '@expo/json-file';
41 await JsonFile.setAsync(packageJsonPath, 'gitHead', gitHead);
49 await JsonFile.deleteKeyAsync(packageJsonPath, 'gitHead');
H A DupdateModuleTemplate.ts1 import JsonFile from '@expo/json-file';
55 const packageJson = await JsonFile.readAsync(packageJsonPath);
78 await JsonFile.writeAsync(packageJsonPath, packageJson);
H A DupdatePackageVersions.ts1 import JsonFile from '@expo/json-file';
26 await JsonFile.setAsync(
H A DupdateWorkspaceProjects.ts1 import JsonFile from '@expo/json-file';
54 const projectPackageJson = await JsonFile.readAsync(projectPackageJsonPath);
93 await JsonFile.writeAsync(projectPackageJsonPath, projectPackageJson);
/expo/packages/create-expo/src/
H A DsessionStorage.ts1 import JsonFile from '@expo/json-file';
22 return JsonFile.read<UserSettingsData>(getStateJsonPath())?.auth ?? null;
/expo/packages/@expo/config/build/
H A DgetUserState.d.ts1 import JsonFile from '@expo/json-file';
23 export declare function getUserState(): JsonFile<UserSettingsData>;
/expo/packages/@expo/cli/src/start/project/
H A DdotExpo.ts1 import JsonFile, { JSONObject } from '@expo/json-file';
7 function getFile(projectRoot: string): JsonFile<T> {
9 return new JsonFile<T>(path.join(dotExpoDir, fileName));
/expo/tools/src/commands/
H A DCreateUnimodule.ts2 import JsonFile from '@expo/json-file';
18 const packageJson = new JsonFile(packageJsonPath);
19 const moduleScriptsVersion = (await JsonFile.getAsync(
H A DPublishDevExpoHomeCommand.ts2 import JsonFile from '@expo/json-file';
77 return JsonFile.readAsync<ExpoCliStateObject>(getExpoCliStatePath());
84 await JsonFile.writeAsync<ExpoCliStateObject>(getExpoCliStatePath(), newState);
126 const devManifestsFile = new JsonFile(devHomeConfigPath);
149 const appJsonFile = new JsonFile<AppConfig>(appJsonFilePath);
/expo/packages/@expo/config/src/
H A DgetExpoSDKVersion.ts1 import JsonFile from '@expo/json-file';
30 const expoPackageJson = JsonFile.read(packageJsonPath, { json5: true });
H A DgetConfig.ts1 import JsonFile from '@expo/json-file';
37 const config = JsonFile.read(configPath, { json5: true });
H A DgetUserState.ts1 import JsonFile from '@expo/json-file';
53 return new JsonFile<UserSettingsData>(getUserStatePath(), {
/expo/packages/@expo/cli/src/export/
H A DgetResolvedLocales.ts2 import JsonFile, { JSONObject } from '@expo/json-file';
22 locales[lang] = await JsonFile.readAsync(path.join(projectRoot, localeJsonPath));
/expo/tools/src/dynamic-macros/
H A DgenerateDynamicMacros.ts1 import JsonFile from '@expo/json-file';
19 return await new JsonFile<TemplateSubstitutions>(
27 return await new JsonFile<TemplateSubstitutions>(
38 const privateKeys = await new JsonFile(path.join(EXPO_DIR, 'private-keys.json')).readAsync();
166 const templatePathsFile = (await new JsonFile(
/expo/packages/@expo/cli/src/start/doctor/dependencies/
H A DbundledNativeModules.ts1 import JsonFile from '@expo/json-file';
62 return await JsonFile.readAsync<BundledNativeModules>(bundledNativeModulesPath);
/expo/packages/jest-expo/src/preset/
H A DwithTypescriptMapping.js1 const JsonFile = require('@expo/json-file'); constant
50 const readJsonFile = JsonFile.default?.read || JsonFile.read;
/expo/packages/@expo/cli/src/prebuild/
H A DensureConfigAsync.ts3 import JsonFile, { JSONObject } from '@expo/json-file';
27 await JsonFile.writeAsync(

123