File tree 1 file changed +12
-6
lines changed
1 file changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -138,16 +138,22 @@ export async function loadWorkspace(dir: string) {
138
138
139
139
const packages : Package [ ] = [ ]
140
140
141
+ async function addWorkspace ( dir : string ) {
142
+ const pkg = await loadPackage ( dir )
143
+ if ( ! pkg . data . name || pkg . data . private || ignoredPackages . includes ( pkg . data . name ) ) {
144
+ return
145
+ }
146
+ console . log ( pkg . data . name )
147
+ packages . push ( pkg )
148
+ }
149
+
150
+ await addWorkspace ( dir )
151
+
141
152
for await ( const pkgDir of fsp . glob ( [ 'packages/*' ] , { withFileTypes : true } ) ) {
142
153
if ( ! pkgDir . isDirectory ( ) ) {
143
154
continue
144
155
}
145
- const pkg = await loadPackage ( join ( pkgDir . parentPath , pkgDir . name ) )
146
- if ( ! pkg . data . name || ignoredPackages . includes ( pkg . data . name ) ) {
147
- continue
148
- }
149
- console . log ( pkg . data . name )
150
- packages . push ( pkg )
156
+ await addWorkspace ( join ( pkgDir . parentPath , pkgDir . name ) )
151
157
}
152
158
153
159
const find = ( name : string ) => {
You can’t perform that action at this time.
0 commit comments