module() — react Function Reference
Architecture documentation for the module() function in print-prerelease-summary.js from the react codebase.
Entity Profile
Dependency Diagram
graph TD 7cef76a6_3947_ae7d_b46e_56592fce1b14["module()"] f7ce8f3e_ad37_fc05_7af1_775a39c9ad39["print-prerelease-summary.js"] 7cef76a6_3947_ae7d_b46e_56592fce1b14 -->|defined in| f7ce8f3e_ad37_fc05_7af1_775a39c9ad39 style 7cef76a6_3947_ae7d_b46e_56592fce1b14 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
scripts/release/shared-commands/print-prerelease-summary.js lines 9–41
module.exports = ({cwd}, isStableRelease) => {
const publishPath = relative(
process.env.PWD,
join(__dirname, '../publish.js')
);
clear();
let message;
if (isStableRelease) {
message = theme`
{caution A stable release candidate has been prepared!}
You can review the contents of this release in {path build/node_modules/}
{header Before publishing, consider testing this release locally with create-react-app!}
You can publish this release by running:
{path ${publishPath}}
`;
} else {
message = theme`
{caution A "next" release candidate has been prepared!}
You can review the contents of this release in {path build/node_modules/}
You can publish this release by running:
{path ${publishPath}}
`;
}
console.log(message.replace(/\n +/g, '\n').trim());
};
Domain
Subdomains
Source
Frequently Asked Questions
What does module() do?
module() is a function in the react codebase, defined in scripts/release/shared-commands/print-prerelease-summary.js.
Where is module() defined?
module() is defined in scripts/release/shared-commands/print-prerelease-summary.js at line 9.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free