From 102954153ad449d08f2a2cf0dafc515274c956b9 Mon Sep 17 00:00:00 2001 From: Ruben Bridgewater Date: Sun, 25 Feb 2018 18:54:51 +0000 Subject: [PATCH] Use sync fs.mkdir This ensures that errors are actually noticed in case it is not possible to create the directory. --- local-cli/library/library.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/local-cli/library/library.js b/local-cli/library/library.js index e8246ff7a106fd..14afd6a4059b7f 100644 --- a/local-cli/library/library.js +++ b/local-cli/library/library.js @@ -29,7 +29,7 @@ function library(argv, config, args) { const source = path.resolve('node_modules', 'react-native', 'Libraries', 'Sample'); if (!fs.existsSync(libraries)) { - fs.mkdir(libraries); + fs.mkdirSync(libraries); } if (fs.existsSync(libraryDest)) {