@@ -11,19 +11,21 @@ import { createDeployKey, type DeployKey, getBuildSettings, saveNetlifyToml, set
11
11
*/
12
12
const addDeployKey = async ( deployKey : DeployKey ) => {
13
13
log ( '\nGive this Netlify SSH public key access to your repository:\n' )
14
+ // FIXME(serhalp): Handle nullish `deployKey.public_key` by throwing user-facing error or fixing upstream type.
15
+ // eslint-disable-next-line @typescript-eslint/restrict-template-expressions
14
16
log ( `\n${ deployKey . public_key } \n\n` )
15
17
16
- const { sshKeyAdded } = await inquirer . prompt ( [
18
+ const { sshKeyAdded } = ( await inquirer . prompt ( [
17
19
{
18
20
type : 'confirm' ,
19
21
name : 'sshKeyAdded' ,
20
22
message : 'Continue?' ,
21
23
default : true ,
22
24
} ,
23
- ] )
25
+ ] ) ) as { sshKeyAdded : boolean }
24
26
25
27
if ( ! sshKeyAdded ) {
26
- exit ( )
28
+ return exit ( )
27
29
}
28
30
}
29
31
@@ -43,6 +45,8 @@ const getRepoPath = async ({ repoData }: { repoData: RepoData }): Promise<string
43
45
44
46
const addDeployHook = async ( deployHook : string | undefined ) : Promise < boolean > => {
45
47
log ( '\nConfigure the following webhook for your repository:\n' )
48
+ // FIXME(serhalp): Handle nullish `deployHook` by throwing user-facing error or fixing upstream type.
49
+ // eslint-disable-next-line @typescript-eslint/restrict-template-expressions
46
50
log ( `\n${ deployHook } \n\n` )
47
51
const { deployHookAdded } = ( await inquirer . prompt ( [
48
52
{
@@ -71,14 +75,9 @@ export default async function configManual({
71
75
cachedConfig : { configPath } ,
72
76
config,
73
77
repositoryRoot,
74
- site : { root : siteRoot } ,
75
78
} = netlify
76
79
77
80
const { baseDir, buildCmd, buildDir, functionsDir, pluginsToInstall } = await getBuildSettings ( {
78
- // @ts -expect-error -- XXX(serhalp): unused - removed in stacked PR
79
- repositoryRoot,
80
- // XXX(serhalp): unused - removed in stacked PR
81
- siteRoot,
82
81
config,
83
82
command,
84
83
} )
0 commit comments