/
githubmr
/
facebook-react
Обзор
Документация
Войти
/
githubmr
/
facebook-react
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
status
scripts/release/prepare-stable-commands/parse-params.js
42 строки
880 B
Brian Vaughn
Release script supports publishing a subset of packages (#16338)
09 авг 2019, 23:12
Не верифицирован
09 авг 2019, 23:12
5b00757
Код
Авторство
О чём код?
#!/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 canary release (e.g. 0.0.0-ddaf2b07c)', }, ]; module.exports = () => { const params = commandLineArgs(paramDefinitions); splitCommaParams(params.skipPackages); return params; };