From 89193f7ab03cecaa88c4413b3b54f837c2effc56 Mon Sep 17 00:00:00 2001 From: John Firebaugh Date: Tue, 17 Jan 2017 13:14:46 -0800 Subject: [PATCH] [build] Avoid creating a recursively symlinked node_modules With the previous command, the second time it would run generated a node_modules symlink inside the top-level node_modules directory. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index aa25cd6de..59d84d33f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -17,7 +17,7 @@ if(NOT EXISTS "mapbox-gl-js/package.json") # Symlink mapbox-gl-js/node_modules so that the modules that are # about to be installed get cached between CI runs. execute_process( - COMMAND ln -s ../node_modules node_modules + COMMAND ln -sF ../node_modules . WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/mapbox-gl-js) execute_process( COMMAND npm install