File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -127,11 +127,16 @@ function linkJasmineConfigs() {
127127 console . log ( "\n---> Linking Jasmine configs" ) ;
128128 const linkToPackages = [ 'cloud-api' , 'cloud-core' , 'cloud-workers' ]
129129 const from = getJasmineConfigPath ( 'isomorphic-core' )
130-
131130 for ( const packageName of linkToPackages ) {
132- const dir = getJasmineDir ( packageName )
133- if ( ! fs . existsSync ( dir ) ) {
134- fs . mkdirSync ( dir )
131+ const packageDir = path . join ( 'packages' , packageName )
132+ if ( ! fs . existsSync ( packageDir ) ) {
133+ console . log ( "\n---> No cloud packages to link. Moving on" )
134+ return
135+ }
136+
137+ const jasmineDir = getJasmineDir ( packageName )
138+ if ( ! fs . existsSync ( jasmineDir ) ) {
139+ fs . mkdirSync ( jasmineDir )
135140 }
136141 const to = getJasmineConfigPath ( packageName )
137142 unlinkIfExistsSync ( to )
You can’t perform that action at this time.
0 commit comments