import { IPluginAPI } from 'build-scripts' ; export default async function ( api ) { const { applyMethod } = api ; const distPath = 'plugins/auth/pluginRuntime/runtime' ; applyMethod ( 'addExport' , { source : `./${ distPath }/Auth` , importSource : `$$ice/${ distPath }/Auth` , exportMembers : [ 'withAuth' , 'useAuth' ] } ) ; applyMethod ( 'addAppConfigTypes' , { source : `../${ distPath }/types` , specifier : '{ IAuth }' , exportName : 'auth?: IAuth' } ) ; }