react-native/flow-typed/npm
anirudh.bharti 7cdb87eb19 chore: replace mkdirp with mkdir fs (#46388)
Summary:
This pull request replaces the use of mkdirp with Node.js's built-in fs.mkdirSync({ recursive: true }) function, which is available in Node.js version 10.12.0 and above. This change reduces the number of external dependencies and simplifies the codebase by using the native capabilities of Node.js.

The motivation behind this change is to remove the unnecessary mkdirp dependency, as Node.js natively supports recursive directory creation since version 10.12.0. This streamlines the code and reduces the reliance on external libraries.

## Changelog:

[INTERNAL] [REMOVED] - Replaced mkdirp with fs.mkdirSync({ recursive: true }) in build scripts and codegen. Requires Node.js 10.12.0 and above.

Pull Request resolved: https://github.com/facebook/react-native/pull/46388

Test Plan: I ran the build and codegen scripts locally with Node.js version 10.12.0 and above after replacing mkdirp, ensuring the scripts work as expected. No issues were encountered, and all processes, including directory creation and file handling, function correctly.

Reviewed By: cortinico

Differential Revision: D62852488

Pulled By: huntie

fbshipit-source-id: 76f44102a80b499521c156308d276a17d279ce38
2024-09-17 07:03:44 -07:00
..
@isaacs
@react-native-community Improve start command interactive behaviour (#39544) 2023-09-20 03:47:13 -07:00
@tsconfig
actual-request-url_v1.x.x.js Add option to enable experimental debugger frontend (#39227) 2023-09-04 12:21:47 -07:00
ansi-regex_v5.x.x.js
babel_v7.x.x.js
babel-traverse_v7.x.x.js update babel and fix tests accordingly (#46295) 2024-09-05 07:11:17 -07:00
babel-types_v7.x.x.js update babel and fix tests accordingly (#46295) 2024-09-05 07:11:17 -07:00
base64-js_v1.x.x.js
chalk_v4.x.x.js
chrome-launcher_v0.15.x.js fix Page visibility API in launched CDT (#43560) 2024-03-20 05:54:12 -07:00
chromium-edge-launcher_v0.2.x.js Migrate back to chromium-edge-launcher since Windows fix was merged (#43562) 2024-03-20 03:55:35 -07:00
commander_v12.x.x.js remove from build script (#44233) 2024-04-24 03:53:34 -07:00
connect_v3.x.x.js
data-uri-to-buffer_v6.x.x.js Add tests for source map fetching and URL rewriting hacks (#41339) 2023-11-08 07:19:40 -08:00
debug_v2.x.x.js
execa_v5.x.x.js
glob_v7.x.x.js
listr2_v8.x.x.js listr → listr2 (#44716) 2024-05-30 07:40:36 -07:00
listr_v14.x.x.js add listr + rxjs flow types for OSS export 2024-04-26 03:10:00 -07:00
node-fetch_v2.x.x.js
open_v7.x.x.js Add --experimental-debugger-frontend flag, restore 0.72 flow as base (#40766) 2023-10-10 09:37:41 -07:00
parseargs_v0.11.x.js Sync @pkgjs/parseargs Flow types with Node types (#39163) 2023-10-20 12:34:29 -07:00
pretty-format_v29.x.x.js fix prettier error in CI (#46255) 2024-08-28 19:35:46 -07:00
promise_v8.x.x.js
react-dom_v17.x.x.js
react-test-renderer_v16.x.x.js Replace React$Element that will cause an error in the future 2024-08-05 18:42:05 -07:00
rxjs_v6.x.x.js fix rxjs flow types linting warnings (#44719) 2024-05-30 08:20:00 -07:00
selfsigned_v2.x.x.js Add tests for HTTPS-specific behaviour (#41341) 2023-11-08 07:19:40 -08:00
semver_v7.x.x.js flow semver 6.2 -> 7 type defintions (#45495) 2024-07-17 07:32:29 -07:00
serve-static_v1.x.x.js Type serve-static and document /debugger-frontend (#40765) 2023-10-10 09:37:41 -07:00
shelljs_v0.x.x.js Deploy 0.231.0 to xplat (#43475) 2024-03-13 22:23:03 -07:00
signedsource_v1.x.x.js Use Flow in feature flags scripts (#42814) 2024-02-05 11:02:48 -08:00
stacktrace-parser_v0.1.x.js
typescript_v5.x.x.js
undici_v5.x.x.js Add tests for HTTPS-specific behaviour (#41341) 2023-11-08 07:19:40 -08:00
wait-for-expect_v3.x.x.js Add CDP transport tests (#41343) 2023-11-08 07:19:40 -08:00
ws_v7.x.x.js Add rejectUnauthorized option to ws types (#41337) 2023-11-06 11:01:25 -08:00
yargs_v17.x.x.js