I don’t think this needs to be an artifact unless you want to take advantage the properties of the latter (one of which is that you don’t need to care much about “location”).
Instead, I would do something like
module MyPackage
pkg_path(parts...) = normpath(@__DIR__, "..", parts...)
end
and then MyPackage.pkg_path("data", "myfile")
should always refer to the correct file.