-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: introduce chooseVercelTeam step (#36)
- Loading branch information
Showing
5 changed files
with
50 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
packages/core/installMachine/installSteps/vercel/chooseTeam.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import { execSync } from 'child_process'; | ||
import boxen from 'boxen'; | ||
import chalk from 'chalk'; | ||
|
||
export const chooseVercelTeam = async () => { | ||
console.log( | ||
boxen( | ||
chalk.bold('Choose a Vercel team to link your project to.\n\n') + | ||
'If you are not sure, you can skip this step by choosing "Cancel". This will link the project to the current logged-in user.', | ||
{ | ||
padding: 1, | ||
margin: 1, | ||
borderStyle: 'round', | ||
borderColor: '#FFFFFF', | ||
}, | ||
), | ||
); | ||
|
||
execSync('npx vercel teams switch', { stdio: 'inherit' }); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters