From 1b3b14b4595dce14e5e21506cb03e0cf57a08190 Mon Sep 17 00:00:00 2001 From: Shawn Allen Date: Thu, 7 Sep 2017 11:58:25 -0700 Subject: [PATCH] prompt for dependents unles --no-dependents --- modules/generator-primer-module/app/options.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/generator-primer-module/app/options.js b/modules/generator-primer-module/app/options.js index aebcdf57..8c6e2574 100644 --- a/modules/generator-primer-module/app/options.js +++ b/modules/generator-primer-module/app/options.js @@ -138,7 +138,9 @@ module.exports = { prompt: { message: "Which meta-package(s) should we add this to?", type: "checkbox", - when: true, + when: function() { + return this.options.dependents !== false + }, choices: META_PACKAGES, default: ({category}) => { const pkgs = ["primer-css"]