mirror of
https://github.com/zebrajr/react.git
synced 2025-12-07 00:20:28 +01:00
* Inline fbjs/lib/invariant * Inline fbjs/lib/warning * Remove remaining usage of fbjs in packages/*.js * Fix lint * Remove fbjs from dependencies * Protect against accidental fbjs imports * Fix broken test mocks * Allow transitive deps on fbjs/ for UMD bundles * Remove fbjs from release script
52 lines
1.0 KiB
JavaScript
52 lines
1.0 KiB
JavaScript
'use strict';
|
|
|
|
const dependencies = ['object-assign', 'prop-types'];
|
|
|
|
const paramDefinitions = [
|
|
{
|
|
name: 'dry',
|
|
type: Boolean,
|
|
description: 'Build artifacts but do not commit or publish',
|
|
defaultValue: false,
|
|
},
|
|
{
|
|
name: 'path',
|
|
type: String,
|
|
alias: 'p',
|
|
description:
|
|
'Location of React repository to release; defaults to [bold]{cwd}',
|
|
defaultValue: '.',
|
|
},
|
|
{
|
|
name: 'version',
|
|
type: String,
|
|
alias: 'v',
|
|
description: 'Semantic version number',
|
|
},
|
|
{
|
|
name: 'branch',
|
|
type: String,
|
|
alias: 'b',
|
|
description: 'Branch to build from; defaults to [bold]{master}',
|
|
defaultValue: 'master',
|
|
},
|
|
{
|
|
name: 'local',
|
|
type: Boolean,
|
|
description:
|
|
"Don't push or pull changes from remote repo. Don't check CI status.",
|
|
},
|
|
{
|
|
name: 'tag',
|
|
type: String,
|
|
description:
|
|
'The npm dist tag; defaults to [bold]{latest} for a stable' +
|
|
'release, [bold]{next} for unstable',
|
|
},
|
|
];
|
|
|
|
module.exports = {
|
|
dependencies,
|
|
paramDefinitions,
|
|
};
|