File tree 1 file changed +7
-2
lines changed
1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -49,6 +49,11 @@ parentDirs.forEach(curParentDir => {
49
49
const dependenciesInOrder = new Set ( [
50
50
'tfjs-tflite-node' , 'coral-tflite-delegate' ] ) ;
51
51
const dirsSet = new Set ( dirs ) ;
52
+ for ( const dep of dependenciesInOrder ) {
53
+ if ( ! dirsSet . has ( dep ) ) {
54
+ throw new Error ( `Directory missing for manually added dependency ${ dep } ` ) ;
55
+ }
56
+ }
52
57
for ( const dir of dirsSet ) {
53
58
if ( dependenciesInOrder . has ( dir ) ) {
54
59
dirsSet . delete ( dir ) ;
@@ -60,7 +65,7 @@ sortedDirs.forEach(dir => {
60
65
shell . cd ( dir ) ;
61
66
62
67
if ( ! fs . existsSync ( './package.json' ) ) {
63
- shell . cd ( '../' ) ;
68
+ shell . cd ( __dirname ) ;
64
69
return ;
65
70
}
66
71
@@ -84,5 +89,5 @@ sortedDirs.forEach(dir => {
84
89
shell . exec ( 'yarn lint' ) ;
85
90
console . log ( '\n' ) ;
86
91
}
87
- shell . cd ( '../' ) ;
92
+ shell . cd ( __dirname ) ;
88
93
} ) ;
You can’t perform that action at this time.
0 commit comments