Skip to content

Commit

Permalink
chore: update
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Nov 19, 2024
1 parent 5d0c2a5 commit 750ea8e
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 27 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@
"@clack/prompts": "^0.8.1",
"@eslint-community/eslint-plugin-eslint-comments": "^4.4.1",
"@eslint/markdown": "^6.2.1",
"@stylistic/eslint-plugin": "^2.10.1",
"@stylistic/eslint-plugin": "^2.11.0",
"@typescript-eslint/eslint-plugin": "^8.15.0",
"@typescript-eslint/parser": "^8.15.0",
"@vitest/eslint-plugin": "^1.1.10",
Expand All @@ -124,7 +124,7 @@
"eslint-processor-vue-blocks": "^0.1.2",
"globals": "^15.12.0",
"jsonc-eslint-parser": "^2.4.0",
"local-pkg": "^0.5.0",
"local-pkg": "^0.5.1",
"parse-gitignore": "^2.0.0",
"picocolors": "^1.1.1",
"toml-eslint-parser": "^0.10.0",
Expand All @@ -138,7 +138,7 @@
"@eslint-react/eslint-plugin": "^1.16.1",
"@eslint/config-inspector": "^0.5.6",
"@prettier/plugin-xml": "^3.4.1",
"@stylistic/eslint-plugin-migrate": "^2.10.1",
"@stylistic/eslint-plugin-migrate": "^2.11.0",
"@types/fs-extra": "^11.0.4",
"@types/node": "^22.9.0",
"@types/prompts": "^2.4.9",
Expand Down
52 changes: 31 additions & 21 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions src/cli/run.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* eslint-disable perfectionist/sort-objects */
import type { ExtraLibrariesOption, FrameworkOption, PromItem, PromptResult } from './types'
import type { ExtraLibrariesOption, FrameworkOption, PromptResult } from './types'

import fs from 'node:fs'
import path from 'node:path'
Expand Down Expand Up @@ -68,7 +68,7 @@ export async function run(options: CliRunOptions = {}): Promise<void> {
? `"${argTemplate}" isn't a valid template. Please choose from below: `
: 'Select a framework:'

return p.multiselect<PromItem<FrameworkOption>[], FrameworkOption>({
return p.multiselect<FrameworkOption>({
message: c.reset(message),
options: frameworkOptions,
required: false,
Expand All @@ -84,7 +84,7 @@ export async function run(options: CliRunOptions = {}): Promise<void> {
? `"${argExtra}" isn't a valid extra util. Please choose from below: `
: 'Select a extra utils:'

return p.multiselect<PromItem<ExtraLibrariesOption>[], ExtraLibrariesOption>({
return p.multiselect<ExtraLibrariesOption>({
message: c.reset(message),
options: extraOptions,
required: false,
Expand Down

0 comments on commit 750ea8e

Please sign in to comment.