#How to achieve similar git structure like d.js

13 messages · Page 1 of 1 (latest)

cursive sun

Im generally curious about how d.js managed to have the submodules in packages/ and apps/

when i create a monorepo and add my submodules to them, they are just displayed as links to other repositories in my monorepo (see screenshot)

i would much rather have it exactly like d.js made it. Is it possible that djs is actually using subtrees instead of submodules?

heady hearthBOT
  • Consider reading #how-to-get-help to improve your question!
  • Explain what exactly your issue is.
  • Post the full error stack trace, not just the top part!
  • Show your code!
  • Issue solved? Press the button!
  • Marked as resolved by OP
cursive sun

the command i used to add submodules is
git submodule add <url> <path>

i can successfully clone the submodules using git clone <url> --recurse but that doesnt solve the github issue

raw socket

By not having them as submodules. It‘s just one single repository

cursive sun

i tried that, git just tells me it ignores the contents of the folders because they have .git folders

should i remove these?

raw socket

They shouldn’t have .git folders. They should just be regular folders within one single repository. But if they were git repositories before you probably don’t want to throw away the full history in there

cursive sun

yeah thats kinda my issue then

can i preserve the history somehow?

raw socket

As it seems the djs monorepo also only has the history of discord.js mainlib and not of the other subpackages before January 7th 2022, when the monorepo began

So mainlib was moved to subfolder, the rest of them were copied in

cursive sun

F