Files
react/scripts/release/shared-commands/print-prerelease-summary.js
T
Brian Vaughn 8482cbe22d Automated fixture tests (#14370)
* Renamed snapshot test from test.js to snapshot-test.js
* Automate fixtures tests
2018-12-02 11:25:45 -08:00

32 lines
701 B
JavaScript

#!/usr/bin/env node
'use strict';
const clear = require('clear');
const {join, relative} = require('path');
const theme = require('../theme');
module.exports = ({cwd}) => {
const publishPath = relative(
process.env.PWD,
join(__dirname, '../publish.js')
);
clear();
console.log(
theme`
{caution A release candidate has been prepared but you're not done yet!}
You can review the contents of this release in {path ./build/node_modules/}
{header Before publishing, please smoke test the packages!}
Once you have finished smoke testing, you can publish this release by running:
{path ${publishPath}}
`
.replace(/\n +/g, '\n')
.trim()
);
};