Solve bugs from espree cmake.
@@ -53,6 +53,9 @@ if(NOT OPTION_BUILD_GUIX)
COMMAND ${NPM_EXECUTABLE} --prefix ${CMAKE_CURRENT_BINARY_DIR} install ${CMAKE_CURRENT_BINARY_DIR}
COMMAND ${CMAKE_COMMAND} -E make_directory ${PROJECT_OUTPUT_DIR}/node_modules
COMMAND ${CMAKE_COMMAND} -E copy_directory ${CMAKE_CURRENT_BINARY_DIR}/node_modules/espree ${PROJECT_OUTPUT_DIR}/node_modules/espree
+ COMMAND ${CMAKE_COMMAND} -E copy_directory ${CMAKE_CURRENT_BINARY_DIR}/node_modules/acorn ${PROJECT_OUTPUT_DIR}/node_modules/acorn
+ COMMAND ${CMAKE_COMMAND} -E copy_directory ${CMAKE_CURRENT_BINARY_DIR}/node_modules/acorn-jsx ${PROJECT_OUTPUT_DIR}/node_modules/acorn-jsx
+ COMMAND ${CMAKE_COMMAND} -E copy_directory ${CMAKE_CURRENT_BINARY_DIR}/node_modules/eslint-visitor-keys ${PROJECT_OUTPUT_DIR}/node_modules/eslint-visitor-keys
COMMAND ${CMAKE_COMMAND} -E echo "${target} dependencies copied from ${CMAKE_CURRENT_BINARY_DIR}/node_modules to ${PROJECT_OUTPUT_DIR}/node_modules"
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/lib/package.json ${CMAKE_CURRENT_SOURCE_DIR}/lib/package-lock.json
)
@@ -67,6 +70,9 @@ if(NOT OPTION_BUILD_GUIX)
install(DIRECTORY
${CMAKE_CURRENT_BINARY_DIR}/node_modules/espree
+ ${CMAKE_CURRENT_BINARY_DIR}/node_modules/acorn
+ ${CMAKE_CURRENT_BINARY_DIR}/node_modules/acorn-jsx
+ ${CMAKE_CURRENT_BINARY_DIR}/node_modules/eslint-visitor-keys
DESTINATION ${INSTALL_LIB}/node_modules
COMPONENT runtime
)
@@ -74,6 +80,9 @@ else()
# Guix stores espree dependency previously to the build in the output directory
install(DIRECTORY
${PROJECT_OUTPUT_DIR}/node_modules/espree
+ ${PROJECT_OUTPUT_DIR}/node_modules/acorn
+ ${PROJECT_OUTPUT_DIR}/node_modules/acorn-jsx
+ ${PROJECT_OUTPUT_DIR}/node_modules/eslint-visitor-keys
DESTINATION ${INSTALL_LIB}/node_modules
COMPONENT runtime
)
