We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9e69263 commit 25bd3c1Copy full SHA for 25bd3c1
1 file changed
scripts/install-npm-packages.mjs
@@ -691,11 +691,9 @@ async function installPackage(packageInfo) {
691
692
// Remove .npmignore if it exists, as it can also filter out test files.
693
const npmignorePath = path.join(extractedPath, '.npmignore')
694
- try {
695
- await fs.unlink(npmignorePath)
696
- } catch {
+ await safeRemove(npmignorePath).catch(() => {
697
// File doesn't exist, ignore.
698
- }
+ })
699
700
// Create a new tarball with all files included (no files field filtering).
701
// This ensures test files are preserved when pnpm installs the package.
0 commit comments