Skip to content

Commit

Permalink
fix(scripts): also check for package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
milahu committed Jul 1, 2022
1 parent 51fa619 commit f5e71c7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/buildUtils.mjs
Expand Up @@ -26,7 +26,8 @@ export function getPackages() {
const packages = fs
.readdirSync(PACKAGES_DIR)
.map(file => path.resolve(PACKAGES_DIR, file))
.filter(f => fs.lstatSync(path.resolve(f)).isDirectory());
.filter(f => fs.lstatSync(path.resolve(f)).isDirectory())
.filter(f => fs.existsSync(path.join(path.resolve(f), 'package.json')));
const require = createRequire(import.meta.url);
const rootPackage = require('../package.json');

Expand Down

0 comments on commit f5e71c7

Please sign in to comment.