Skip to content

Commit 64c0d68

Browse files
committed
chore: fix ts issues
1 parent 0493a42 commit 64c0d68

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

src/cli.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ const mainCommand = defineCommand({
119119

120120
// Prompt the user where to create the Nitro app
121121
if (!args.dir) {
122-
args.dir = await consola
122+
(args as any) /* readonly */.dir = await consola
123123
.prompt(`Where would you like to create your ${NAME} app?`, {
124124
placeholder: `./${DEFAULT_DIR}`,
125125
type: "text",
@@ -176,7 +176,7 @@ const mainCommand = defineCommand({
176176

177177
// Prompt the user which template to use
178178
if (!args.template) {
179-
args.template = await consola
179+
(args as any) /* readonly */.template = await consola
180180
.prompt(`What template would you like to use?`, {
181181
type: "select",
182182
options: TEMPLATES.map((t) => ({
@@ -258,7 +258,7 @@ const mainCommand = defineCommand({
258258
}
259259

260260
if (args.gitInit === undefined) {
261-
args.gitInit = await consola
261+
(args as any) /* readonly */.gitInit = await consola
262262
.prompt("Initialize git repository?", {
263263
type: "confirm",
264264
cancel: "undefined",

tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@
1515
"forceConsistentCasingInFileNames": true,
1616
"allowImportingTsExtensions": true,
1717
"noImplicitOverride": true,
18-
"noEmit": true
18+
"noEmit": true,
19+
"types": ["node"]
1920
},
2021
"exclude": ["nitro-app"]
2122
}

0 commit comments

Comments
 (0)