Move component from unpublished file to published library

Hola Amigo!

I have a Figma working file (File A) and i use local components for the design. I have never published this File A as Library. On the other hand, I have centralized Library that contains all general component. Now I want to use the local components in File A in another project (File B) and still want the components in File A & File B to be linked.

Is there anyway to move local components in FIle A to Library, so that i can use it in File B, without breaking the design in File A?