We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 40bd735 + ad91f3a commit c41be4fCopy full SHA for c41be4f
1 file changed
gulpfile.mjs
@@ -2083,11 +2083,16 @@ gulp.task("lint-licenses", function (done) {
2083
"examples/**/*.html",
2084
"!web/wasm/**/*",
2085
],
2086
- {
2087
- base: ".",
2088
- }
+ { base: "." }
2089
)
2090
.on("data", function (file) {
+ if (!file.contents) {
+ console.warn(
2091
+ ` ${file.relative} is a directory, skipping license header check.`
2092
+ );
2093
+ return;
2094
+ }
2095
+
2096
const relativePath = file.relative;
2097
const content = file.contents.toString();
2098
const re = relativePath.endsWith(".html") ? htmlRE : jsRE;
0 commit comments