Remove broken symlinks in extensions node modules

The broken symlinks cause nfpm to fail.
This commit is contained in:
Asher 2020-07-30 13:22:44 -05:00
parent 50ed29e0f0
commit b63cf192b5
No known key found for this signature in database
GPG Key ID: D63C1EF81242354A
1 changed files with 14 additions and 0 deletions

View File

@ -237,6 +237,20 @@ index 7c668c9744..0778f4f7db 100644
- "rimraf": "^3.0.2" - "rimraf": "^3.0.2"
} }
} }
diff --git a/extensions/postinstall.js b/extensions/postinstall.js
index da4fa3e9d0..50f3e1144f 100644
--- a/extensions/postinstall.js
+++ b/extensions/postinstall.js
@@ -24,6 +24,9 @@ function processRoot() {
rimraf.sync(filePath);
}
}
+
+ // Delete .bin so it doesn't contain broken symlinks that trip up nfpm.
+ rimraf.sync(path.join(__dirname, 'node_modules', '.bin'));
}
function processLib() {
diff --git a/package.json b/package.json diff --git a/package.json b/package.json
index 86e3d5140d..2e52256e49 100644 index 86e3d5140d..2e52256e49 100644
--- a/package.json --- a/package.json