Home / File/ print-prerelease-summary.js — react Source File

print-prerelease-summary.js — react Source File

Architecture documentation for print-prerelease-summary.js, a javascript file in the react codebase.

Entity Profile

Relationship Graph

Source Code

#!/usr/bin/env node

'use strict';

const clear = require('clear');
const {join, relative} = require('path');
const theme = require('../theme');

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

Functions

Frequently Asked Questions

What does print-prerelease-summary.js do?
print-prerelease-summary.js is a source file in the react codebase, written in javascript. It belongs to the BabelCompiler domain, Entrypoint subdomain.
What functions are defined in print-prerelease-summary.js?
print-prerelease-summary.js defines 1 function(s): module.
Where is print-prerelease-summary.js in the architecture?
print-prerelease-summary.js is located at scripts/release/shared-commands/print-prerelease-summary.js (domain: BabelCompiler, subdomain: Entrypoint, directory: scripts/release/shared-commands).

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free