Commit 180e500
committed
fix(create): validate --package-manager flag value
Validate that the --package-manager CLI argument is one of the known
package managers (pnpm, npm, yarn, bun) before using it. Previously
any string was accepted via an unchecked type cast.1 parent a5313aa commit 180e500
1 file changed
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
632 | 632 | | |
633 | 633 | | |
634 | 634 | | |
| 635 | + | |
| 636 | + | |
| 637 | + | |
| 638 | + | |
| 639 | + | |
| 640 | + | |
| 641 | + | |
| 642 | + | |
| 643 | + | |
| 644 | + | |
635 | 645 | | |
636 | 646 | | |
637 | 647 | | |
| |||
0 commit comments