Skip to content

Commit

Permalink
chore: check only valid packages in module-import-linter
Browse files Browse the repository at this point in the history
  • Loading branch information
matej21 committed Jan 2, 2024
1 parent 681b3a6 commit 825448a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scripts/lint/module-import-linter.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import glob from 'fast-glob'
import * as fs from 'fs/promises'
import { existsSync } from 'fs'
import JSON5 from 'json5'
import { join, normalize } from 'path'
import ts from 'typescript'
Expand Down Expand Up @@ -117,6 +118,7 @@ interface Project {
(async () => {
const dirs = (await glob(process.cwd() + '/{ee,packages}/*', { onlyDirectories: true }))
.filter(dir => !dir.endsWith('packages/admin-sandbox'))
.filter(it => existsSync(`${it}/package.json`))

const projects = await Promise.all(dirs.map(async (dir): Promise<Project> => {
try {
Expand Down

0 comments on commit 825448a

Please sign in to comment.