When a non-optional package is not built successfully, the package.json, pnpm-lock.yaml and node_modules/.pnpm-lock.yaml should not be updated. close #1397
When a non-optional package is not built successfully, the package.json, pnpm-lock.yaml and node_modules/.pnpm-lock.yaml should not be updated. close #1397