File tree 2 files changed +4
-2
lines changed
2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,8 @@ function getPackages() {
16
16
const packages = fs
17
17
. readdirSync ( PACKAGES_DIR )
18
18
. map ( file => path . resolve ( PACKAGES_DIR , file ) )
19
- . filter ( f => fs . lstatSync ( path . resolve ( f ) ) . isDirectory ( ) ) ;
19
+ . filter ( f => fs . lstatSync ( path . resolve ( f ) ) . isDirectory ( ) )
20
+ . filter ( f => fs . existsSync ( path . join ( path . resolve ( f ) , 'package.json' ) ) ) ;
20
21
return packages . map ( packageDir => {
21
22
const pkg = readPkg ( { cwd : packageDir } ) ;
22
23
return pkg . name ;
Original file line number Diff line number Diff line change @@ -26,7 +26,8 @@ export function getPackages() {
26
26
const packages = fs
27
27
. readdirSync ( PACKAGES_DIR )
28
28
. map ( file => path . resolve ( PACKAGES_DIR , file ) )
29
- . filter ( f => fs . lstatSync ( path . resolve ( f ) ) . isDirectory ( ) ) ;
29
+ . filter ( f => fs . lstatSync ( path . resolve ( f ) ) . isDirectory ( ) )
30
+ . filter ( f => fs . existsSync ( path . join ( path . resolve ( f ) , 'package.json' ) ) ) ;
30
31
const require = createRequire ( import . meta. url ) ;
31
32
const rootPackage = require ( '../package.json' ) ;
32
33
You can’t perform that action at this time.
0 commit comments