I had put packages/** instead of package/* in my pnpm-workspaces.yaml file so it was seeing the dist folder as a package and overwriting the workspace folder lol
packages/**
package/*