Skip to content

Commit c28e3c7

Browse files
committed
Make config paths absolute
1 parent 4242fc2 commit c28e3c7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

packages/build/src/cli.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#!/usr/bin/env node
22
import { log } from '@create-figma-plugin/common'
3+
import { resolve } from 'path'
34
import sade from 'sade'
45

56
import { buildAsync } from './build-async.js'
@@ -30,11 +31,11 @@ sade('build-figma-plugin', true)
3031
}): Promise<void> {
3132
const buildOptions: BuildOptions = {
3233
mainConfigFilePath:
33-
options['main-config'] === '' ? null : options['main-config'],
34+
options['main-config'] === '' ? null : resolve(options['main-config']),
3435
minify: options.minify,
3536
typecheck: options.typecheck,
3637
uiConfigFilePath:
37-
options['ui-config'] === '' ? null : options['ui-config']
38+
options['ui-config'] === '' ? null : resolve(options['ui-config'])
3839
}
3940
if (options.watch === true) {
4041
log.clearViewport()

0 commit comments

Comments
 (0)