mirror of
https://github.com/facebook/react.git
synced 2026-02-26 07:55:55 +00:00
Change format of @next and @experimental release versions from <number>-<sha> to <number>-<sha>-<date> to make them more human readable. This format still preserves the ability for us to easily map a version number to the changes it contains, while also being able to more easily know at a glance how recent a release is.
44 lines
895 B
JavaScript
44 lines
895 B
JavaScript
#!/usr/bin/env node
|
|
|
|
'use strict';
|
|
|
|
const commandLineArgs = require('command-line-args');
|
|
const {splitCommaParams} = require('../utils');
|
|
|
|
const paramDefinitions = [
|
|
{
|
|
name: 'local',
|
|
type: Boolean,
|
|
description:
|
|
'Skip NPM and use the build already present in "build/node_modules".',
|
|
defaultValue: false,
|
|
},
|
|
{
|
|
name: 'skipPackages',
|
|
type: String,
|
|
multiple: true,
|
|
description: 'Packages to exclude from publishing',
|
|
defaultValue: [],
|
|
},
|
|
{
|
|
name: 'skipTests',
|
|
type: Boolean,
|
|
description: 'Skip automated fixture tests.',
|
|
defaultValue: false,
|
|
},
|
|
{
|
|
name: 'version',
|
|
type: String,
|
|
description:
|
|
'Version of published "next" release (e.g. 0.0.0-0e526bcec-20210202)',
|
|
},
|
|
];
|
|
|
|
module.exports = () => {
|
|
const params = commandLineArgs(paramDefinitions);
|
|
|
|
splitCommaParams(params.skipPackages);
|
|
|
|
return params;
|
|
};
|