File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change
1
+ import { relative } from 'node:path'
2
+
1
3
import type { NetlifyAPI } from '@netlify/api'
2
4
import { Octokit } from '@octokit/rest'
3
5
@@ -256,7 +258,8 @@ export const configGithub = async ({
256
258
deploy_key_id : deployKey . id ,
257
259
base : baseDir ,
258
260
dir : buildDir ,
259
- functions_dir : functionsDir ,
261
+ // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
262
+ functions_dir : relative ( config . build . base ?? command . workingDir , functionsDir ) ,
260
263
...( buildCmd && { cmd : buildCmd } ) ,
261
264
}
262
265
Original file line number Diff line number Diff line change
1
+ import { relative } from 'node:path'
2
+
1
3
import inquirer from 'inquirer'
2
4
3
5
import { exit , log } from '../command-helpers.js'
@@ -95,7 +97,8 @@ export default async function configManual({
95
97
deploy_key_id : deployKey . id ,
96
98
base : baseDir ,
97
99
dir : buildDir ,
98
- functions_dir : functionsDir ,
100
+ // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
101
+ functions_dir : relative ( config . build . base ?? command . workingDir , functionsDir ) ,
99
102
...( buildCmd && { cmd : buildCmd } ) ,
100
103
}
101
104
You can’t perform that action at this time.
0 commit comments