Use private npm packages in custom components

francoissou
Tera Contributor

Hello ! 
I am currently developping webcomponents using the new Experience and UI Builder.
When I am coding my components, I split them into different privately owned github packages that I then import into my code like follow :

import '@myteam/my-popover';

This works perfectly fine in development mode (eg: when I run the following command)

snc ui-component develop --port 3000 --profile myprofile

 But when I deploy my component onto the UI Builder of my instance, the components that come from privately owned packages are not included in the final package.
Only the ones directly included in the initial package or packages coming from npmjs.org.
Is it possible to provide some kind of configuration property to the SN CLI to tell it where these packages are hosted and the credentials to access them ?
Thanks for you answers !

0 REPLIES 0