If you want to add all science packs to SpaceX sciences when your mod is enabled, you can loop over tool category (this is the one that contains science packs).
Maybe something like that:
for key, _ in pairs(data.raw.tool) do
bobmods.lib.tech.add_new_science_pack(technology, key, 1)
end