File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ import * as url from 'url';
44import Helpers from 'handlebars-helpers' ;
55import type { HelperDelegate } from 'handlebars' ;
66import type { NodePlopAPI } from 'plop' ;
7+ import type { PromptQuestion } from 'node-plop' ;
78
89import { Prompts } from './prompts.js' ;
910import type { OtiAnswers } from './prompts.js' ;
@@ -38,12 +39,12 @@ export default function (plop: NodePlopAPI) {
3839 plop . setGenerator ( 'api' , {
3940 description : 'Generate an API service' ,
4041 prompts : [
41- Prompts . dirWarning ,
42+ process . env . NO_DIR_WARNING ? undefined : Prompts . dirWarning ,
4243 Prompts . email , Prompts . fullname , Prompts . org ,
4344 Prompts . name , Prompts . desc ,
4445 Prompts . features ,
4546 Prompts . dbName ,
46- ] ,
47+ ] . filter ( ( p ) => ! ! p ) as PromptQuestion [ ] ,
4748 actions ( data ) {
4849 return [
4950 {
You can’t perform that action at this time.
0 commit comments