@@ -17,6 +17,7 @@ const path_1 = require("path");
1717const local_1 = require ( "../local" ) ;
1818const log_1 = require ( "../log" ) ;
1919const path_2 = require ( "../path" ) ;
20+ const utils_1 = require ( "../utils" ) ;
2021function link ( existing , path ) {
2122 try {
2223 const current = fs_1 . default . readlinkSync ( path ) ;
@@ -33,7 +34,7 @@ function link(existing, path) {
3334 }
3435 // Link
3536 const dir = path_1 . dirname ( path ) ;
36- fs_1 . default . mkdirSync ( dir , { recursive : true } ) ;
37+ utils_1 . mkdir ( dir ) ;
3738 fs_1 . default . symlinkSync ( existing , path ) ;
3839}
3940( function ( ) {
@@ -46,7 +47,7 @@ function link(existing, path) {
4647 link ( path_2 . getPackagePath ( name ) , path_1 . resolve ( path_2 . dirs . root , "node_modules" , name ) ) ;
4748 // e.g. /packages/abi/node_modules => /.package_node_modules/abi/
4849 const nodeModules = path_1 . resolve ( nodeModulesBase , path_2 . getDirname ( name ) ) ;
49- fs_1 . default . mkdirSync ( nodeModules , { recursive : true } ) ;
50+ utils_1 . mkdir ( nodeModules ) ;
5051 link ( nodeModules , path_1 . resolve ( path_2 . getPackagePath ( name ) , "node_modules" ) ) ;
5152 } ) ;
5253 path_2 . packages . forEach ( ( name ) => {
0 commit comments