--- testPackage.nim --- /testPackage ------- submodule1.nim ------- submodule2.nim ------- submodule3.nim I have put a "*" in front of all I want to export in the submodules already, what should I now write in testPackage.nim? Many thanks in advance :-D
import testPackage/submodule1
export submodule1
import testPackage/submodule2
export submodule2
import testPackage/submodule3
export submodule3
Make a nim file of your choice (testPackage/prelude.nim), with the following content
import testPackage / [submodule1, submodule2, submodule3]
Then just include testPackage/prelude and all of your imports should be there.
This approach is used by Karax.