Home
last modified time | relevance | path

Searched refs:fs (Results 1 – 25 of 456) sorted by relevance

12345678910>>...19

/expo/ios/versioned-react-native/ABI49_0_0/ReactNative/scripts/hermes/
H A Dhermes-utils.js12 const fs = require('fs'); constant
43 const data = fs
66 if (!fs.existsSync(SDKS_DIR)) {
137 if (!fs.existsSync(SDKS_DIR)) {
147 fs.copyFileSync(
151 fs.copyFileSync(
155 fs.copyFileSync(
172 fs.copyFileSync(
177 fs.copyFileSync(
287 !fs.existsSync(
[all …]
/expo/ios/versioned-react-native/ABI48_0_0/ReactNative/scripts/hermes/
H A Dhermes-utils.js12 const fs = require('fs'); constant
43 const data = fs
66 if (!fs.existsSync(SDKS_DIR)) {
137 if (!fs.existsSync(SDKS_DIR)) {
147 fs.copyFileSync(
151 fs.copyFileSync(
155 fs.copyFileSync(
172 fs.copyFileSync(
177 fs.copyFileSync(
287 !fs.existsSync(
[all …]
/expo/ios/versioned-react-native/ABI49_0_0/ReactNative/scripts/hermes/__tests__/
H A Dhermes-utils-test.js42 let fs; variable
98 fs.writeFileSync(
102 fs.writeFileSync(
106 fs.writeFileSync(
110 fs.writeFileSync(
114 fs.writeFileSync(
158 fs = require('fs');
159 fs.reset();
238 fs.writeFileSync(
251 fs.writeFileSync(
[all …]
/expo/ios/versioned-react-native/ABI48_0_0/ReactNative/scripts/hermes/__tests__/
H A Dhermes-utils-test.js42 let fs; variable
98 fs.writeFileSync(
102 fs.writeFileSync(
106 fs.writeFileSync(
110 fs.writeFileSync(
114 fs.writeFileSync(
158 fs = require('fs');
159 fs.reset();
238 fs.writeFileSync(
251 fs.writeFileSync(
[all …]
/expo/ios/versioned-react-native/ABI47_0_0/ReactNative/scripts/__tests__/
H A Dhermes-utils-test.js36 let fs; variable
41 fs.writeFileSync(
69 fs.writeFileSync(
79 fs.writeFileSync(
89 fs.writeFileSync(
99 fs.writeFileSync(
116 fs = require('fs');
117 fs.reset();
176 fs.writeFileSync(
188 fs.writeFileSync(
[all …]
/expo/ios/versioned-react-native/ABI47_0_0/ReactNative/scripts/hermes/
H A Dhermes-utils.js12 const fs = require('fs'); constant
31 const data = fs
54 if (!fs.existsSync(SDKS_DIR)) {
107 if (!fs.existsSync(HERMES_DIR)) {
121 if (!fs.existsSync(SDKS_DIR)) {
127 if (!fs.existsSync(HERMES_DIR)) {
131 fs.copyFileSync(
135 fs.copyFileSync(
139 fs.copyFileSync(
146 if (!fs.existsSync(SDKS_DIR)) {
[all …]
/expo/packages/@expo/cli/src/utils/
H A Ddir.ts1 import fs from 'fs-extra';
5 return fs.statSync(file)?.isDirectory() ?? false;
12 return (await fs.promises.stat(file).catch(() => null))?.isDirectory() ?? false;
16 return (await fs.promises.stat(file).catch(() => null))?.isFile() ?? false;
19 export const ensureDirectoryAsync = (path: string) => fs.promises.mkdir(path, { recursive: true });
21 export const ensureDirectory = (path: string) => fs.mkdirSync(path, { recursive: true });
23 export const copySync = fs.copySync;
25 export const copyAsync = fs.copy;
27 export const removeAsync = fs.remove;
H A DmergeGitIgnorePaths.ts2 import fs from 'fs';
27 if (!fs.existsSync(targetGitIgnorePath)) {
33 if (!fs.existsSync(sourceGitIgnorePath)) {
38 const targetGitIgnore = fs.readFileSync(targetGitIgnorePath).toString();
39 const sourceGitIgnore = fs.readFileSync(sourceGitIgnorePath).toString();
43 fs.writeFileSync(targetGitIgnorePath, merged.contents);
121 const targetGitIgnore = fs.readFileSync(targetGitIgnorePath, {
140 fs.writeFileSync(targetGitIgnorePath, merged.contents);
177 if (!fs.existsSync(targetGitIgnorePath)) {
181 let targetGitIgnore = fs.readFileSync(targetGitIgnorePath, 'utf-8');
[all …]
/expo/docs/scripts/
H A Dremove-version.js6 import fs from 'fs-extra';
19 if (fs.pathExistsSync(apiDataPath)) {
20 fs.rmSync(apiDataPath, { recursive: true });
24 if (fs.pathExistsSync(examplesPath)) {
25 fs.rmSync(examplesPath, { recursive: true });
29 if (fs.pathExistsSync(schemaPath)) {
30 fs.rmSync(schemaPath, { recursive: true });
34 if (fs.pathExistsSync(pagesPath)) {
35 fs.rmSync(pagesPath, { recursive: true });
/expo/packages/expo-updates/e2e/fixtures/project_files/scripts/
H A Dgenerate-test-update-bundles.js2 const fs = require('fs/promises'); constant
36 await fs.rm(testUpdateBundlesPath, { recursive: true, force: true });
37 await fs.mkdir(testUpdateBundlesPath);
39 const originalAppJs = await fs.readFile(appJsPath, 'utf-8');
47 await fs.rm(appJsPath);
48 await fs.writeFile(appJsPath, modifiedAppJs, 'utf-8');
50 const manifestJsonString = await fs.readFile(
62 await fs.copyFile(iosBundlePath, iosBundleDestPath);
63 await fs.copyFile(androidBundlePath, androidBundleDestPath);
71 await fs.rm(appJsPath);
[all …]
/expo/packages/@expo/config-plugins/src/android/__tests__/
H A DrenamePackageOnDisk-test.ts1 import { fs, vol } from 'memfs';
46 expect(fs.existsSync(mainActivityPath)).toBeTruthy();
47 expect(fs.readFileSync(mainActivityPath).toString()).toMatch('package xyz.bront.app');
51 expect(fs.existsSync(nestedClassPath)).toBeTruthy();
52 expect(fs.readFileSync(nestedClassPath).toString()).toMatch('package xyz.bront.app');
53 expect(fs.readFileSync(nestedClassPath).toString()).not.toMatch('com.lololol');
56 expect(fs.readFileSync(buckPath).toString()).toMatch('package = "xyz.bront.app"');
57 expect(fs.readFileSync(buckPath).toString()).not.toMatch('com.lololol');
63 expect(fs.existsSync(mainActivityPath)).toBeTruthy();
64 expect(fs.readFileSync(mainActivityPath).toString()).toMatch('package com.bront');
/expo/packages/expo-updates/e2e/setup/
H A Dproject.js2 const fs = require('fs/promises'); constant
63 await fs.writeFile(
153 await fs.rm(detoxRCPath);
292 await fs.copyFile(
296 await fs.copyFile(
536 await fs.appendFile(
543 await fs.appendFile(
561 await fs.copyFile(
571 await fs.copyFile(
580 await fs.copyFile(
[all …]
/expo/packages/@expo/cli/src/utils/__tests__/
H A DmergeGitIgnorePaths-test.ts1 import { fs } from 'memfs';
10 await fs.promises.mkdir(testRoot, { recursive: true });
13 await fs.promises.rm(testRoot, { recursive: true, force: true });
88 await fs.promises.mkdir(projectRoot, { recursive: true });
95 await fs.promises.writeFile(
107 expect(fs.existsSync(targetGitIgnorePath)).toBe(false);
115 await fs.promises.writeFile(
125 await fs.promises.writeFile(
168 await fs.promises.writeFile(
244 await fs.promises.writeFile(
[all …]
/expo/packages/@expo/prebuild-config/src/plugins/__tests__/fixtures/
H A Dreact-native-project.ts3 const fs = jest.requireActual('fs') as typeof import('fs'); constant
66 if (fs.statSync(p).isDirectory()) {
67 fs.readdirSync(p).forEach((f) => {
72 const contents = fs.readFileSync(p);
75 const contents = fs.readFileSync(p, 'utf-8');
81 fs.readdirSync(path.join(template, 'ios')).forEach((file) => {
84 fs.readdirSync(path.join(template, 'android')).forEach((file) => {
/expo/packages/@expo/config-plugins/src/plugins/__tests__/fixtures/
H A Dreact-native-project.ts3 const fs = jest.requireActual('fs') as typeof import('fs'); constant
65 if (fs.statSync(p).isDirectory()) {
66 fs.readdirSync(p).forEach((f) => {
71 const contents = fs.readFileSync(p);
74 const contents = fs.readFileSync(p, 'utf-8');
80 fs.readdirSync(path.join(template, 'ios')).forEach((file) => {
83 fs.readdirSync(path.join(template, 'android')).forEach((file) => {
/expo/packages/@expo/fingerprint/__mocks__/fs/
H A Dpromises.ts1 import { fs } from 'memfs';
8 const origMkdtemp = fs.promises.mkdtemp;
9 fs.promises.mkdtemp = (
13 fs.mkdirSync(path.dirname(prefix), { recursive: true });
17 module.exports = fs.promises;
/expo/packages/expo-yarn-workspaces/common/
H A Dget-symlinked-modules.js1 const fs = require('fs'); constant
16 const scopedPackageDirectories = fs.readdirSync(scopePath);
20 if (fs.lstatSync(dependencyPath).isSymbolicLink()) {
21 modules[dependencyName] = fs.realpathSync(dependencyPath);
27 if (fs.lstatSync(dependencyPath).isSymbolicLink()) {
28 modules[dependencyName] = fs.realpathSync(dependencyPath);
37 return fs.readdirSync(directory);
/expo/packages/@expo/config-plugins/src/utils/
H A Dfs.ts1 import fs from 'fs';
6 const srcFile = await fs.promises.readFile(src);
7 await fs.promises.mkdir(path.dirname(dest), { recursive: true });
8 await fs.promises.writeFile(dest, srcFile);
14 fs.unlinkSync(filePath);
/expo/packages/@expo/cli/src/export/
H A DexportHermes.ts3 import fs from 'fs-extra';
76 await fs.ensureDir(tempDir);
80 await fs.writeFile(tempBundleFile, code);
81 await fs.writeFile(tempSourcemapFile, map);
92 fs.readFile(tempHbcFile),
100 await fs.remove(tempDir);
176 if (fs.existsSync(gradlePropertiesPath)) {
195 if (fs.existsSync(podfilePath)) {
237 const fd = await fs.open(file, 'r');
239 await fs.read(fd, buffer, 0, 12, null);
[all …]
/expo/packages/@expo/cli/src/export/__tests__/
H A DexportHermes.test.ts115 let fs = require('fs-extra'); variable
121 fs = require('fs-extra');
131 const mockFsExistSync = fs.existsSync as jest.MockedFunction<typeof fs.existsSync>;
148 let fs = require('fs-extra'); variable
154 fs = require('fs-extra');
165 const mockFsExistSync = fs.existsSync as jest.MockedFunction<typeof fs.existsSync>;
171 const mockFsReadFile = fs.readFile as jest.MockedFunction<typeof fs.readFile>;
232 let fs = require('fs-extra'); variable
237 const mockFsExistSync = fs.existsSync as jest.MockedFunction<typeof fs.existsSync>;
243 const mockFsReadFile = fs.readFile as jest.MockedFunction<typeof fs.readFile>;
[all …]
/expo/packages/create-expo-module/src/
H A DcreateExampleApp.ts2 import fs from 'fs-extra';
35 if (!(await fs.pathExists(appTargetPath))) {
61 await fs.rmdir(appTargetPath);
65 await fs.remove(path.join(appTmpPath, '.git'));
68 await fs.rename(appTmpPath, appTargetPath);
94 for (const file of await fs.readdir(fromPath)) {
95 await fs.move(path.join(fromPath, file), path.join(toPath, file), {
106 const appConfig = await fs.readJson(appConfigPath);
121 await fs.writeJson(appConfigPath, appConfig, {
132 const packageJson = await fs.readJson(packageJsonPath);
[all …]
/expo/packages/expo-yarn-workspaces/bin/
H A Dmake-entry-module.js5 const fs = require('fs'); constant
36 if (fs.existsSync(mainModulePath)) {
37 mainModuleCode = fs.readFileSync(mainModulePath, 'utf8');
62 const template = fs.readFileSync(path.join(__dirname, 'AppEntry.template.js'), 'utf8');
65 let relativeProjectPath = path.relative(fs.realpathSync(mainModuleDirectory), projectPath);
73 fs.writeFileSync(mainModulePath, code);
81 json = fs.readFileSync(path.join(projectPath, 'package.json'), 'utf8');
93 return fs.realpathSync(filePath) !== path.resolve(filePath);
/expo/packages/@expo/config-plugins/src/android/
H A DPackage.ts3 import fs from 'fs';
133 fs.writeFileSync(filepath, contents);
171 fs.mkdirSync(newPackagePath, { recursive: true });
176 if (fs.lstatSync(filepath).isFile()) {
179 fs.mkdirSync(filepath, { recursive: true });
189 const files = fs.readdirSync(pathToCheck);
191 fs.rmdirSync(pathToCheck);
207 if (fs.lstatSync(filepath).isFile()) {
216 fs.writeFileSync(filepath, contents);
226 fs.renameSync(src, dest);
[all …]
/expo/packages/@expo/cli/src/start/server/metro/
H A Dexternals.ts7 import fs from 'fs';
40 await fs.promises.mkdir(path.join(projectRoot, path.dirname(EXTERNAL_REQUIRE_POLYFILL)), {
43 await fs.promises.writeFile(
47 await fs.promises.writeFile(
73 if (!fs.existsSync(shimPath)) {
74 await fs.promises.mkdir(shimDir, { recursive: true });
75 await fs.promises.writeFile(shimPath, tapNodeShimContents(moduleId));
/expo/android/vendored/sdk47/@shopify/react-native-skia/cpp/skia/include/private/
H A DSkHalf.h44 float32x4_t fs; in SkHalfToFloat_finite_ftz() local
46 : [fs] "=w" (fs) // =w: write-only NEON register in SkHalfToFloat_finite_ftz()
48 return fs; in SkHalfToFloat_finite_ftz()
64 static inline Sk4h SkFloatToHalf_finite_ftz(const Sk4f& fs) { in SkFloatToHalf_finite_ftz() argument
66 float32x4_t vec = fs.fVec; in SkFloatToHalf_finite_ftz()
71 Sk4i bits = Sk4i::Load(&fs), in SkFloatToHalf_finite_ftz()

12345678910>>...19