refactors the rest of the build code to match a new skeleton project adds an alias for ./src/lib as $lib, similar to sveltekit