From 750ea8e5cdcc3d34b823139e69c2565ede2c2f25 Mon Sep 17 00:00:00 2001 From: Anthony Fu Date: Tue, 19 Nov 2024 14:08:23 +0800 Subject: [PATCH] chore: update --- package.json | 6 +++--- pnpm-lock.yaml | 52 ++++++++++++++++++++++++++++++-------------------- src/cli/run.ts | 6 +++--- 3 files changed, 37 insertions(+), 27 deletions(-) diff --git a/package.json b/package.json index 432b86e077..dd659d60f2 100644 --- a/package.json +++ b/package.json @@ -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", @@ -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", @@ -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", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 68648cb0c3..120b58e5a0 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -27,8 +27,8 @@ importers: specifier: ^6.2.1 version: 6.2.1 '@stylistic/eslint-plugin': - specifier: ^2.10.1 - version: 2.10.1(eslint@9.15.0(jiti@2.4.0))(typescript@5.6.3) + specifier: ^2.11.0 + version: 2.11.0(eslint@9.15.0(jiti@2.4.0))(typescript@5.6.3) '@typescript-eslint/eslint-plugin': specifier: ^8.15.0 version: 8.15.0(@typescript-eslint/parser@8.15.0(eslint@9.15.0(jiti@2.4.0))(typescript@5.6.3))(eslint@9.15.0(jiti@2.4.0))(typescript@5.6.3) @@ -99,8 +99,8 @@ importers: specifier: ^2.4.0 version: 2.4.0 local-pkg: - specifier: ^0.5.0 - version: 0.5.0 + specifier: ^0.5.1 + version: 0.5.1 parse-gitignore: specifier: ^2.0.0 version: 2.0.0 @@ -136,8 +136,8 @@ importers: specifier: ^3.4.1 version: 3.4.1(prettier@3.3.2) '@stylistic/eslint-plugin-migrate': - specifier: ^2.10.1 - version: 2.10.1(eslint@9.15.0(jiti@2.4.0))(typescript@5.6.3) + specifier: ^2.11.0 + version: 2.11.0(eslint@9.15.0(jiti@2.4.0))(typescript@5.6.3) '@types/fs-extra': specifier: ^11.0.4 version: 11.0.4 @@ -785,8 +785,8 @@ packages: '@eslint-react/var@1.16.1': resolution: {integrity: sha512-CZ1fMQPkr60pwx8PLHsn75cl1Ovw/GHo2v6nhdWyhW8VhbBwJ1d1VdjSxPZjHJ4KCZFTuVVunWn7W9gDZmK+ow==} - '@eslint-stylistic/metadata@2.10.1': - resolution: {integrity: sha512-x5EdwVm2XzefscW0Jmy5UZ7t4jH0XKAcNNCMbROLB46OWrK2uBbgXflVrfLErgFfiTLUo6ALPnl+/ISqBHVAPA==} + '@eslint-stylistic/metadata@2.11.0': + resolution: {integrity: sha512-m3GsPILoIH04fqYxKRTyWIMN8PAGeN1qYi6I8HzfrlC7QqIxn6KKws/Hya9cYyiSj30vDpFvZo3vkZCdlQabZQ==} '@eslint/compat@1.1.1': resolution: {integrity: sha512-lpHyRyplhGPL5mGEh6M9O5nnKk0Gz4bFI+Zu6tKlPpDUN7XshWvH9C/px4UVm87IAANE0W81CEsNGbS1KlzXpA==} @@ -1025,12 +1025,12 @@ packages: resolution: {integrity: sha512-X67V4cCgM0Sz50bP8GbVzmiL8DHC2IXvdKcsN7DlxHyf+/T4d9GveeGukwha5Fx3MuYeGZWKag7TFL2ZY4w54A==} engines: {node: '>=18.0.0'} - '@stylistic/eslint-plugin-migrate@2.10.1': - resolution: {integrity: sha512-cQrShuqiEPdvHfhpTbViX93EBxY9Yx+PFHowZw75/1FwsKvQut1loDPQmY/lRfTyG08xYBdtciM0CNRHq/HPyw==} + '@stylistic/eslint-plugin-migrate@2.11.0': + resolution: {integrity: sha512-I7xGovnCvs6WQXGHO7iFIKW2XRvOD0nfLacF3TidWrZ+YOYx4ddYdD9+cqdEh57HtddpiM7DbD/20jtyt8fPQg==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - '@stylistic/eslint-plugin@2.10.1': - resolution: {integrity: sha512-U+4yzNXElTf9q0kEfnloI9XbOyD4cnEQCxjUI94q0+W++0GAEQvJ/slwEj9lwjDHfGADRSr+Tco/z0XJvmDfCQ==} + '@stylistic/eslint-plugin@2.11.0': + resolution: {integrity: sha512-PNRHbydNG5EH8NK4c+izdJlxajIR6GxcUhzsYNRsn6Myep4dsZt0qFCz3rCPnkvgO5FYibDcMqgNHUT+zvjYZw==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} peerDependencies: eslint: ^9.15.0 @@ -2406,8 +2406,8 @@ packages: resolution: {integrity: sha512-IXO6OCs9yg8tMKzfPZ1YmheJbZCiEsnBdcB03l0OcfK9prKnJb96siuHCr5Fl37/yo9DnKU+TLpxzTUspw9shg==} engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} - local-pkg@0.5.0: - resolution: {integrity: sha512-ok6z3qlYyCDS4ZEU27HaU6x/xZa9Whf8jD4ptH5UZTQYZVYeb9bnZ3ojVhiJNLiXK1Hfc0GNbLXcmZ5plLDDBg==} + local-pkg@0.5.1: + resolution: {integrity: sha512-9rrA30MRRP3gBD3HTGnC6cDFpaE1kVDWxWgqWJUN0RvDNAo+Nz/9GxB+nHOH0ifbVFy0hSA1V6vFDvnx54lTEQ==} engines: {node: '>=14'} locate-character@3.0.0: @@ -2633,6 +2633,9 @@ packages: mlly@1.7.2: resolution: {integrity: sha512-tN3dvVHYVz4DhSXinXIk7u9syPYaJvio118uomkovAtWBT+RdbP6Lfh/5Lvo519YMmwBafwlh20IPTXIStscpA==} + mlly@1.7.3: + resolution: {integrity: sha512-xUsx5n/mN0uQf4V548PKQ+YShA4/IW0KI1dZhrNrPCLG+xizETbHTkOa1f8/xut9JRPp8kQuMnz0oqwkTiLo/A==} + mrmime@2.0.0: resolution: {integrity: sha512-eu38+hdgojoyq63s+yTpN4XMBdt5l8HhMhc4VKLO9KM5caLIBvUm4thi7fFaxyTmCKeNnXZ5pAlBwCUnhA09uw==} engines: {node: '>=10'} @@ -3940,7 +3943,7 @@ snapshots: - supports-color - typescript - '@eslint-stylistic/metadata@2.10.1': {} + '@eslint-stylistic/metadata@2.11.0': {} '@eslint/compat@1.1.1': {} @@ -4169,16 +4172,16 @@ snapshots: '@slidev/types@0.47.5': {} - '@stylistic/eslint-plugin-migrate@2.10.1(eslint@9.15.0(jiti@2.4.0))(typescript@5.6.3)': + '@stylistic/eslint-plugin-migrate@2.11.0(eslint@9.15.0(jiti@2.4.0))(typescript@5.6.3)': dependencies: - '@eslint-stylistic/metadata': 2.10.1 + '@eslint-stylistic/metadata': 2.11.0 '@typescript-eslint/utils': 8.15.0(eslint@9.15.0(jiti@2.4.0))(typescript@5.6.3) transitivePeerDependencies: - eslint - supports-color - typescript - '@stylistic/eslint-plugin@2.10.1(eslint@9.15.0(jiti@2.4.0))(typescript@5.6.3)': + '@stylistic/eslint-plugin@2.11.0(eslint@9.15.0(jiti@2.4.0))(typescript@5.6.3)': dependencies: '@typescript-eslint/utils': 8.15.0(eslint@9.15.0(jiti@2.4.0))(typescript@5.6.3) eslint: 9.15.0(jiti@2.4.0) @@ -5854,9 +5857,9 @@ snapshots: load-tsconfig@0.2.5: {} - local-pkg@0.5.0: + local-pkg@0.5.1: dependencies: - mlly: 1.7.2 + mlly: 1.7.3 pkg-types: 1.2.1 locate-character@3.0.0: {} @@ -6242,6 +6245,13 @@ snapshots: pkg-types: 1.2.1 ufo: 1.5.4 + mlly@1.7.3: + dependencies: + acorn: 8.14.0 + pathe: 1.1.2 + pkg-types: 1.2.1 + ufo: 1.5.4 + mrmime@2.0.0: {} ms@2.1.3: {} @@ -6408,7 +6418,7 @@ snapshots: pkg-types@1.2.1: dependencies: confbox: 0.1.8 - mlly: 1.7.2 + mlly: 1.7.3 pathe: 1.1.2 pluralize@8.0.0: {} diff --git a/src/cli/run.ts b/src/cli/run.ts index 04d70cdaf7..cc896037ef 100644 --- a/src/cli/run.ts +++ b/src/cli/run.ts @@ -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' @@ -68,7 +68,7 @@ export async function run(options: CliRunOptions = {}): Promise { ? `"${argTemplate}" isn't a valid template. Please choose from below: ` : 'Select a framework:' - return p.multiselect[], FrameworkOption>({ + return p.multiselect({ message: c.reset(message), options: frameworkOptions, required: false, @@ -84,7 +84,7 @@ export async function run(options: CliRunOptions = {}): Promise { ? `"${argExtra}" isn't a valid extra util. Please choose from below: ` : 'Select a extra utils:' - return p.multiselect[], ExtraLibrariesOption>({ + return p.multiselect({ message: c.reset(message), options: extraOptions, required: false,