refactor(spm-package) resolve pkg dep from current to root