1
1
mirror of https://github.com/primer/css.git synced 2024-12-01 20:53:06 +03:00

prompt for dependents unles --no-dependents

This commit is contained in:
Shawn Allen 2017-09-07 11:58:25 -07:00
parent 92832181a3
commit 1b3b14b459

View File

@ -138,7 +138,9 @@ module.exports = {
prompt: { prompt: {
message: "Which meta-package(s) should we add this to?", message: "Which meta-package(s) should we add this to?",
type: "checkbox", type: "checkbox",
when: true, when: function() {
return this.options.dependents !== false
},
choices: META_PACKAGES, choices: META_PACKAGES,
default: ({category}) => { default: ({category}) => {
const pkgs = ["primer-css"] const pkgs = ["primer-css"]