Help!!

My baby girl (6 weeks old) only wants to sleep around me or in her swing 😭 it’s a fight all night trying to get her to sleep alone in her bassinet/pnp/crib. I am guilty of letting her sleep in her swing now and before then on me.. I don’t know what to do, to help her want to sleep in there. Any tips?