File tree 2 files changed +8
-3
lines changed
2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " pri" ,
3
- "version" : " 4.2.0-beta" ,
3
+ "version" : " 4.2.0-beta.1 " ,
4
4
"types" : " src/node/index.ts" ,
5
5
"main" : " built/node/index.js" ,
6
6
"scripts" : {
Original file line number Diff line number Diff line change @@ -72,7 +72,12 @@ function getPriConfig(rootPath: string) {
72
72
return fs . readJsonSync ( configFilePath , { throws : false } ) || { } ;
73
73
}
74
74
75
- function collectPackages ( packageRootPath : string ) {
75
+ function collectPackages ( packageRootPath : string , deep = 0 ) {
76
+ // Only support two level packages
77
+ if ( deep >= 2 ) {
78
+ return ;
79
+ }
80
+
76
81
const currentPackagesPath = path . join ( packageRootPath , PACKAGES_NAME ) ;
77
82
78
83
if ( fs . existsSync ( currentPackagesPath ) ) {
@@ -100,7 +105,7 @@ function collectPackages(packageRootPath: string) {
100
105
globalState . packages . push ( eachPackage ) ;
101
106
102
107
// find nested packages
103
- collectPackages ( eachPackage . rootPath ) ;
108
+ collectPackages ( eachPackage . rootPath , deep + 1 ) ;
104
109
} ) ;
105
110
}
106
111
}
You can’t perform that action at this time.
0 commit comments