Skip to content

Commit 5dae6c1

Browse files
bluwysapphi-red
andauthored
feat(create-vite): use @clack/prompts (#19445)
Co-authored-by: sapphi-red <[email protected]>
1 parent db6c8b5 commit 5dae6c1

File tree

6 files changed

+224
-209
lines changed

6 files changed

+224
-209
lines changed

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,8 @@
104104
105105
106106
107-
107+
108+
108109
},
109110
"peerDependencyRules": {
110111
"allowedVersions": {

packages/create-vite/LICENSE

+38-47
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,23 @@ The published create-vite artifact additionally contains code with the following
149149
ISC, MIT
150150

151151
# Bundled dependencies:
152+
## @clack/core, @clack/prompts
153+
License: MIT
154+
By: Nate Moore
155+
Repositories: https://github.com/natemoo-re/clack, https://github.com/natemoo-re/clack
156+
157+
> MIT License
158+
>
159+
> Copyright (c) Nate Moore
160+
>
161+
> 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:
162+
>
163+
> The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
164+
>
165+
> 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.
166+
167+
---------------------------------------
168+
152169
## cross-spawn
153170
License: MIT
154171
By: André Cruz
@@ -201,10 +218,10 @@ Repositories: git+https://github.com/isaacs/isexe.git, git://github.com/isaacs/n
201218

202219
---------------------------------------
203220

204-
## kleur
221+
## mri
205222
License: MIT
206223
By: Luke Edwards
207-
Repository: lukeed/kleur
224+
Repository: lukeed/mri
208225

209226
> The MIT License (MIT)
210227
>
@@ -230,32 +247,6 @@ Repository: lukeed/kleur
230247

231248
---------------------------------------
232249

233-
## minimist
234-
License: MIT
235-
By: James Halliday
236-
Repository: git://github.com/minimistjs/minimist.git
237-
238-
> This software is released under the MIT license:
239-
>
240-
> Permission is hereby granted, free of charge, to any person obtaining a copy of
241-
> this software and associated documentation files (the "Software"), to deal in
242-
> the Software without restriction, including without limitation the rights to
243-
> use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
244-
> the Software, and to permit persons to whom the Software is furnished to do so,
245-
> subject to the following conditions:
246-
>
247-
> The above copyright notice and this permission notice shall be included in all
248-
> copies or substantial portions of the Software.
249-
>
250-
> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
251-
> IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
252-
> FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
253-
> COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
254-
> IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
255-
> CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
256-
257-
---------------------------------------
258-
259250
## path-key, shebang-regex
260251
License: MIT
261252
By: Sindre Sorhus
@@ -296,10 +287,27 @@ Repository: alexeyraspopov/picocolors
296287

297288
---------------------------------------
298289

299-
## prompts, sisteransi
290+
## shebang-command
291+
License: MIT
292+
By: Kevin Mårtensson
293+
Repository: kevva/shebang-command
294+
295+
> MIT License
296+
>
297+
> Copyright (c) Kevin Mårtensson <[email protected]> (github.com/kevva)
298+
>
299+
> 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:
300+
>
301+
> The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
302+
>
303+
> 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.
304+
305+
---------------------------------------
306+
307+
## sisteransi
300308
License: MIT
301309
By: Terkel Gjervig
302-
Repositories: terkelg/prompts, https://github.com/terkelg/sisteransi
310+
Repository: https://github.com/terkelg/sisteransi
303311

304312
> MIT License
305313
>
@@ -322,20 +330,3 @@ Repositories: terkelg/prompts, https://github.com/terkelg/sisteransi
322330
> LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
323331
> OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
324332
> SOFTWARE.
325-
326-
---------------------------------------
327-
328-
## shebang-command
329-
License: MIT
330-
By: Kevin Mårtensson
331-
Repository: kevva/shebang-command
332-
333-
> MIT License
334-
>
335-
> Copyright (c) Kevin Mårtensson <[email protected]> (github.com/kevva)
336-
>
337-
> 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:
338-
>
339-
> The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
340-
>
341-
> 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.

packages/create-vite/package.json

+2-4
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,10 @@
3333
"homepage": "https://github.com/vitejs/vite/tree/main/packages/create-vite#readme",
3434
"funding": "https://github.com/vitejs/vite?sponsor=1",
3535
"devDependencies": {
36-
"@types/minimist": "^1.2.5",
37-
"@types/prompts": "^2.4.9",
36+
"@clack/prompts": "^0.10.0",
3837
"cross-spawn": "^7.0.6",
39-
"minimist": "^1.2.8",
38+
"mri": "^1.2.0",
4039
"picocolors": "^1.1.1",
41-
"prompts": "^2.4.2",
4240
"unbuild": "^3.3.1"
4341
}
4442
}

0 commit comments

Comments
 (0)