Skip to content

Commit

Permalink
fix(tools): update /src folder regexp
Browse files Browse the repository at this point in the history
  • Loading branch information
postspectacular committed Aug 1, 2024
1 parent cf7b99d commit 8c25a84
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tools/src/check-imports.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ const updateImports = (root: string, latest = false, exitOnFail = true) => {
const deps = transduce(
map((src) => usedDependencies(src)),
unionR<string>(),
dirs(root, /src(\.\w+)?$/)
// check /src or /src.xyz folders, but not under /dev or /export
dirs(root, /(?<!\/(dev|export).*)\/src(\.\w+)?$/)
);
const pkg = readJSON(pkgPath);
!pkg.dependencies && (pkg.dependencies = {});
Expand Down

0 comments on commit 8c25a84

Please sign in to comment.