File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 11#!/usr/bin/env node
22import { log } from '@create-figma-plugin/common'
3+ import { resolve } from 'path'
34import sade from 'sade'
45
56import { 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 ( )
You can’t perform that action at this time.
0 commit comments