File tree Expand file tree Collapse file tree 2 files changed +12
-7
lines changed
packages/create-cloudflare/src Expand file tree Collapse file tree 2 files changed +12
-7
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ " create-cloudflare " : patch
3+ ---
4+
5+ Fixes an issue where users were prompted for TypeScript twice during worker creation
Original file line number Diff line number Diff line change @@ -42,6 +42,13 @@ export const runWorkersGenerator = async (args: C3Args) => {
4242 args,
4343 } ;
4444
45+ ctx . args . ts = await processArgument < boolean > ( ctx . args , "ts" , {
46+ type : "confirm" ,
47+ question : "Do you want to use TypeScript?" ,
48+ label : "typescript" ,
49+ defaultValue : C3_DEFAULTS . ts ,
50+ } ) ;
51+
4552 await copyFiles ( ctx ) ;
4653 await copyExistingWorkerFiles ( ctx ) ;
4754 await updateFiles ( ctx ) ;
@@ -61,13 +68,6 @@ export const runWorkersGenerator = async (args: C3Args) => {
6168} ;
6269
6370async function getTemplate ( ctx : Context ) {
64- ctx . args . ts = await processArgument < boolean > ( ctx . args , "ts" , {
65- type : "confirm" ,
66- question : "Do you want to use TypeScript?" ,
67- label : "typescript" ,
68- defaultValue : C3_DEFAULTS . ts ,
69- } ) ;
70-
7171 const preexisting = ctx . args . type === "pre-existing" ;
7272 const template = preexisting ? "hello-world" : ctx . args . type ;
7373 const path = resolve (
You can’t perform that action at this time.
0 commit comments