|
|
|
@ -21,6 +21,7 @@ const ignore = [
|
|
|
|
|
"dist-js",
|
|
|
|
|
".svelte-kit",
|
|
|
|
|
"api-iife.js",
|
|
|
|
|
".build"
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
async function checkFile(file) {
|
|
|
|
@ -70,7 +71,9 @@ async function checkFile(file) {
|
|
|
|
|
async function check(src) {
|
|
|
|
|
const missingHeader = [];
|
|
|
|
|
|
|
|
|
|
for (const entry of fs.readdirSync(src, { withFileTypes: true })) {
|
|
|
|
|
for (const entry of fs.readdirSync(src, {
|
|
|
|
|
withFileTypes: true
|
|
|
|
|
})) {
|
|
|
|
|
const p = path.join(src, entry.name);
|
|
|
|
|
|
|
|
|
|
if (entry.isSymbolicLink() || ignore.includes(entry.name)) {
|
|
|
|
@ -110,7 +113,8 @@ if (files.length > 0) {
|
|
|
|
|
|
|
|
|
|
run();
|
|
|
|
|
} else {
|
|
|
|
|
check(path.resolve(new URL(import.meta.url).pathname, "../../..")).then(
|
|
|
|
|
check(path.resolve(new URL(
|
|
|
|
|
import.meta.url).pathname, "../../..")).then(
|
|
|
|
|
(missing) => {
|
|
|
|
|
if (missing.length > 0) {
|
|
|
|
|
console.log(missing.join("\n"));
|
|
|
|
|