diff --git a/packages/create-vite/LICENSE b/packages/create-vite/LICENSE index 79575402808eb1..1e20c6d66f3ba9 100644 --- a/packages/create-vite/LICENSE +++ b/packages/create-vite/LICENSE @@ -109,35 +109,6 @@ Repository: lukeed/kleur --------------------------------------- -## kolorist -License: MIT -By: Marvin Hagemeister -Repository: https://github.com/marvinhagemeister/kolorist.git - -> The MIT License (MIT) -> -> Copyright (c) 2020-present Marvin Hagemeister -> -> Permission is hereby granted, free of charge, to any person obtaining a copy -> of this software and associated documentation files (the "Software"), to deal -> in the Software without restriction, including without limitation the rights -> to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -> copies of the Software, and to permit persons to whom the Software is -> furnished to do so, subject to the following conditions: -> -> The above copyright notice and this permission notice shall be included in all -> copies or substantial portions of the Software. -> -> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -> IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -> FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -> AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -> LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -> OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -> SOFTWARE. - ---------------------------------------- - ## minimist License: MIT By: James Halliday @@ -181,6 +152,29 @@ Repository: sindresorhus/path-key --------------------------------------- +## picocolors +License: ISC +By: Alexey Raspopov +Repository: alexeyraspopov/picocolors + +> ISC License +> +> Copyright (c) 2021-2024 Oleksii Raspopov, Kostiantyn Denysov, Anton Verinov +> +> Permission to use, copy, modify, and/or distribute this software for any +> purpose with or without fee is hereby granted, provided that the above +> copyright notice and this permission notice appear in all copies. +> +> THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +> WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +> MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR +> ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +> WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +> ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF +> OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + +--------------------------------------- + ## prompts License: MIT By: Terkel Gjervig diff --git a/packages/create-vite/package.json b/packages/create-vite/package.json index e82076f5fb2ade..0e78dcaaf2c90b 100644 --- a/packages/create-vite/package.json +++ b/packages/create-vite/package.json @@ -36,8 +36,8 @@ "@types/minimist": "^1.2.5", "@types/prompts": "^2.4.9", "cross-spawn": "^7.0.3", - "kolorist": "^1.8.0", "minimist": "^1.2.8", + "picocolors": "^1.1.0", "prompts": "^2.4.2", "unbuild": "^2.0.0" } diff --git a/packages/create-vite/src/index.ts b/packages/create-vite/src/index.ts index fc65f5bd34b7f9..96189e9231fff0 100755 --- a/packages/create-vite/src/index.ts +++ b/packages/create-vite/src/index.ts @@ -4,18 +4,20 @@ import { fileURLToPath } from 'node:url' import spawn from 'cross-spawn' import minimist from 'minimist' import prompts from 'prompts' -import { +import colors from 'picocolors' + +const { blue, + blueBright, cyan, green, - lightBlue, - lightGreen, - lightRed, + greenBright, magenta, red, + redBright, reset, yellow, -} from 'kolorist' +} = colors // Avoids autoconversion to number of the project name by defining that the args // non associated with an option ( _ ) needs to be parsed as a string. See #4606 @@ -40,15 +42,15 @@ Options: -t, --template NAME use a specific template Available templates: -${yellow ('vanilla-ts vanilla' )} -${green ('vue-ts vue' )} -${cyan ('react-ts react' )} -${cyan ('react-swc-ts react-swc')} -${magenta ('preact-ts preact' )} -${lightRed ('lit-ts lit' )} -${red ('svelte-ts svelte' )} -${blue ('solid-ts solid' )} -${lightBlue('qwik-ts qwik' )}` +${yellow ('vanilla-ts vanilla' )} +${green ('vue-ts vue' )} +${cyan ('react-ts react' )} +${cyan ('react-swc-ts react-swc')} +${magenta ('preact-ts preact' )} +${redBright ('lit-ts lit' )} +${red ('svelte-ts svelte' )} +${blue ('solid-ts solid' )} +${blueBright('qwik-ts qwik' )}` type ColorFunc = (str: string | number) => string type Framework = { @@ -106,7 +108,7 @@ const FRAMEWORKS: Framework[] = [ { name: 'custom-nuxt', display: 'Nuxt ↗', - color: lightGreen, + color: greenBright, customCommand: 'npm exec nuxi init TARGET_DIR', }, ], @@ -170,7 +172,7 @@ const FRAMEWORKS: Framework[] = [ { name: 'lit', display: 'Lit', - color: lightRed, + color: redBright, variants: [ { name: 'lit-ts', @@ -227,12 +229,12 @@ const FRAMEWORKS: Framework[] = [ { name: 'qwik', display: 'Qwik', - color: lightBlue, + color: blueBright, variants: [ { name: 'qwik-ts', display: 'TypeScript', - color: lightBlue, + color: blueBright, }, { name: 'qwik', @@ -242,7 +244,7 @@ const FRAMEWORKS: Framework[] = [ { name: 'custom-qwik-city', display: 'QwikCity ↗', - color: lightBlue, + color: blueBright, customCommand: 'npm create qwik@latest basic TARGET_DIR', }, ], diff --git a/packages/vite/LICENSE.md b/packages/vite/LICENSE.md index ddd5a6209512dc..8bebd20a00e112 100644 --- a/packages/vite/LICENSE.md +++ b/packages/vite/LICENSE.md @@ -2156,11 +2156,11 @@ Repository: lukeed/mrmime ## ms License: MIT -Repository: zeit/ms +Repository: vercel/ms > The MIT License (MIT) > -> Copyright (c) 2016 Zeit, Inc. +> Copyright (c) 2020 Vercel, Inc. > > Permission is hereby granted, free of charge, to any person obtaining a copy > of this software and associated documentation files (the "Software"), to deal @@ -2447,7 +2447,7 @@ Repository: alexeyraspopov/picocolors > ISC License > -> Copyright (c) 2021 Alexey Raspopov, Kostiantyn Denysov, Anton Verinov +> Copyright (c) 2021-2024 Oleksii Raspopov, Kostiantyn Denysov, Anton Verinov > > Permission to use, copy, modify, and/or distribute this software for any > purpose with or without fee is hereby granted, provided that the above diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index d91b28a7751e13..c9f19c1f9b9375 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -169,12 +169,12 @@ importers: cross-spawn: specifier: ^7.0.3 version: 7.0.3 - kolorist: - specifier: ^1.8.0 - version: 1.8.0 minimist: specifier: ^1.2.8 version: 1.2.8 + picocolors: + specifier: ^1.1.0 + version: 1.1.0 prompts: specifier: ^2.4.2 version: 2.4.2 @@ -5205,9 +5205,6 @@ packages: resolution: {integrity: sha512-eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w==} engines: {node: '>=6'} - kolorist@1.8.0: - resolution: {integrity: sha512-Y+60/zizpJ3HRH8DCss+q95yr6145JXZo46OTpFvDZWLfRCE4qChOyk1b26nMaNpfHHgxagk9dXT5OP0Tfe+dQ==} - launch-editor-middleware@2.9.1: resolution: {integrity: sha512-4wF6AtPtaIENiZdH/a+3yW8Xni7uxzTEDd1z+gH00hUWBCSmQknFohznMd9BWhLk8MXObeB5ir69GbIr9qFW1w==} @@ -10856,8 +10853,6 @@ snapshots: kleur@3.0.3: {} - kolorist@1.8.0: {} - launch-editor-middleware@2.9.1: dependencies: launch-editor: 2.9.1