We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c2a5bf8 + adae402 commit 1e27912Copy full SHA for 1e27912
3 files changed
build-js/WebpackSPDXPlugin.js
@@ -44,7 +44,7 @@ class WebpackSPDXPlugin {
44
* @param {string} dir Directory to start checking
45
*/
46
async #findPackage(dir) {
47
- if (!dir || dir === '/' || dir === '.') {
+ if (!dir || dir === '/' || dir === '.' || path.dirname(dir) === dir) {
48
return null
49
}
50
0 commit comments