@xylabs/ts-scripts-yarn3 7.1.5 → 7.1.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1912,7 +1912,7 @@ async function getRootESLintConfig() {
1912
1912
  }
1913
1913
  function getFiles(dir, ignoreFolders) {
1914
1914
  const currentDirectory = cwd4();
1915
- const subDirectory = dir.split(currentDirectory)[1];
1915
+ const subDirectory = dir.split(currentDirectory)[1]?.split("/")[1];
1916
1916
  if (ignoreFolders.includes(subDirectory)) return [];
1917
1917
  return readdirSync(dir, { withFileTypes: true }).flatMap((dirent) => {
1918
1918
  const res = path10.resolve(dir, dirent.name);
@@ -1938,8 +1938,7 @@ var packageLint = async (fix2 = false, verbose = false, cache = true) => {
1938
1938
  console.log(chalk31.green(`Linting ${pkg} [files = ${files.length}]`));
1939
1939
  if (verbose) {
1940
1940
  for (const file of files) {
1941
- console.log(chalk31.gray(` ${file}
1942
- `));
1941
+ console.log(chalk31.gray(` ${file}`));
1943
1942
  }
1944
1943
  }
1945
1944
  const lintResults = await engine.lintFiles(files);