Skip to content

Commit 4ad1168

Browse files
ci: Add terser-webpack-plugin to the dev dependency definition, given it is used there
Assisted-by: ClaudeCode:claude-sonnet-5 Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
1 parent 5226aec commit 4ad1168

3 files changed

Lines changed: 8 additions & 16 deletions

File tree

build-js/WebpackSPDXPlugin.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ class WebpackSPDXPlugin {
4444
* @param {string} dir Directory to start checking
4545
*/
4646
async #findPackage(dir) {
47-
if (!dir || dir === '/' || dir === '.') {
47+
if (!dir || dir === '/' || dir === '.' || path.dirname(dir) === dir) {
4848
return null
4949
}
5050

package-lock.json

Lines changed: 6 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@
7272
"eslint-webpack-plugin": "^5.0.2",
7373
"jsdom": "^28.1.0",
7474
"stylelint-webpack-plugin": "^5.0.1",
75+
"terser-webpack-plugin": "^5.3.11",
7576
"vitest": "^4.0.18"
7677
},
7778
"engines": {

0 commit comments

Comments
 (0)