run() — react Function Reference
Architecture documentation for the run() function in build-artifacts.js from the react codebase.
Entity Profile
Dependency Diagram
graph TD fa83a1a5_0392_2fcc_7f32_89253f3508a8["run()"] ea4c88c9_374f_b3ad_c531_d9795999fd53["build-artifacts.js"] fa83a1a5_0392_2fcc_7f32_89253f3508a8 -->|defined in| ea4c88c9_374f_b3ad_c531_d9795999fd53 b702afad_0427_9c71_ed3c_488ec8d4c90f["module()"] b702afad_0427_9c71_ed3c_488ec8d4c90f -->|calls| fa83a1a5_0392_2fcc_7f32_89253f3508a8 style fa83a1a5_0392_2fcc_7f32_89253f3508a8 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
scripts/release/build-release-locally-commands/build-artifacts.js lines 10–22
const run = async ({cwd, dry, tempDirectory}) => {
const defaultOptions = {
cwd: tempDirectory,
};
await exec('yarn install', defaultOptions);
await exec('yarn build -- --extract-errors', defaultOptions);
const tempNodeModulesPath = join(tempDirectory, 'build', 'node_modules');
const buildPath = join(cwd, 'build');
shell.cp('-r', tempNodeModulesPath, buildPath);
};
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does run() do?
run() is a function in the react codebase, defined in scripts/release/build-release-locally-commands/build-artifacts.js.
Where is run() defined?
run() is defined in scripts/release/build-release-locally-commands/build-artifacts.js at line 10.
What calls run()?
run() is called by 1 function(s): module.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free