MCPcopy Index your code
hub / github.com/callstack/react-native-paper / writeFiles

Function writeFiles

scripts/generate-ts-tests.js:36–48  ·  view source on GitHub ↗
(files)

Source from the content-addressed store, hash-verified

34 .filter(Boolean);
35
36const writeFiles = (files) => {
37 mkdirSync(DESTINATION_DIR);
38
39 files.forEach((f) =>
40 writeFileSync(
41 path.join(
42 DESTINATION_DIR,
43 `${path.basename(f.path, JS_EXT)}${TS_TEST_EXT}`
44 ),
45 f.content
46 )
47 );
48};
49
50rimraf.sync(DESTINATION_DIR);
51writeFiles(getFiles());

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…