Apache DataFusion SQL Query Engine
ARROW-12239: [JS] Switch to yarn
Dominik Moritzbec108275639
diff --git a/.github/workflows/js.yml b/.github/workflows/js.ymlindex c021e99c40..354c45c60d 100644--- a/.github/workflows/js.yml+++ b/.github/workflows/js.yml@@ -113,7 +113,7 @@ jobs:# node-version: ${{ matrix.node }}# - name: Install Platform Dependencies# shell: bash- # run: npm install -g cross-env+ # run: yarn add -g cross-env# - name: Build# shell: bash# run: ci/scripts/js_build.sh $(pwd)diff --git a/ci/docker/conda-integration.dockerfile b/ci/docker/conda-integration.dockerfileindex 82636e4cc9..1f2c9ac5da 100644--- a/ci/docker/conda-integration.dockerfile+++ b/ci/docker/conda-integration.dockerfile@@ -34,6 +34,7 @@ RUN conda install -q \compilers \maven=${maven} \nodejs=${node} \+ yarn \openjdk=${jdk} && \conda clean --all --force-pkgs-dirsdiff --git a/ci/docker/linux-apt-docs.dockerfile b/ci/docker/linux-apt-docs.dockerfileindex b9804e0184..604a05afb0 100644--- a/ci/docker/linux-apt-docs.dockerfile+++ b/ci/docker/linux-apt-docs.dockerfile@@ -69,7 +69,8 @@ ARG node=14RUN wget -q -O - https://deb.nodesource.com/setup_${node}.x | bash - && \apt-get install -y nodejs && \apt-get clean && \- rm -rf /var/lib/apt/lists/*+ rm -rf /var/lib/apt/lists/* && \+ npm install -g yarn# Sphinx is pinned because of ARROW-9693RUN pip install \diff --git a/ci/scripts/cpp_build.sh b/ci/scripts/cpp_build.shindex f1656ac503..8a1e4f32f3 100755--- a/ci/scripts/cpp_build.sh+++ b/ci/scripts/cpp_build.sh@@ -109,8 +109,8 @@ cmake -G "${CMAKE_GENERATOR:-Ninja}" \-DBUILD_WARNING_LEVEL=${BUILD_WARNING_LEVEL:-CHECKIN} \-Dc-ares_SOURCE=${cares_SOURCE:-} \-DCMAKE_BUILD_TYPE=${ARROW_BUILD_TYPE:-debug} \- -DCMAKE_C_FLAGS=${CFLAGS:-} \- -DCMAKE_CXX_FLAGS=${CXXFLAGS:-} \+ -DCMAKE_C_FLAGS="${CFLAGS:-}" \+ -DCMAKE_CXX_FLAGS="${CXXFLAGS:-}" \-DCMAKE_INSTALL_LIBDIR=${CMAKE_INSTALL_LIBDIR:-lib} \-DCMAKE_INSTALL_PREFIX=${CMAKE_INSTALL_PREFIX:-${ARROW_HOME}} \-DCMAKE_UNITY_BUILD=${CMAKE_UNITY_BUILD:-OFF} \diff --git a/ci/scripts/js_build.sh b/ci/scripts/js_build.shindex b2add45b02..10ceb41ee6 100755--- a/ci/scripts/js_build.sh+++ b/ci/scripts/js_build.sh@@ -24,14 +24,13 @@ with_docs=${2:-false}pushd ${source_dir}-npm install+yarn --frozen-lockfile# TODO(kszucs): linting should be moved to archery-npm run lint:ci-npm run build+yarn lint:ci+yarn buildif [ "${with_docs}" == "true" ]; then- npm install typedoc- npm run doc+ yarn docfipopddiff --git a/ci/scripts/js_test.sh b/ci/scripts/js_test.shindex 1de4e1df10..345d6cb811 100755--- a/ci/scripts/js_test.sh+++ b/ci/scripts/js_test.sh@@ -23,7 +23,7 @@ source_dir=${1}/jspushd ${source_dir}-npm run lint-npm run test+yarn lint+yarn testpopddiff --git a/dev/release/rat_exclude_files.txt b/dev/release/rat_exclude_files.txtindex e943dadf29..e51cd204c3 100644--- a/dev/release/rat_exclude_files.txt+++ b/dev/release/rat_exclude_files.txt@@ -128,6 +128,7 @@ go/parquet/go.sumjs/.npmignorejs/closure-compiler-scripts/*js/src/fb/*.ts+js/yarn.lockpython/cmake_modulespython/cmake_modules/FindPythonLibsNew.cmakepython/cmake_modules/SnappyCMakeLists.txtdiff --git a/dev/release/verify-release-candidate.sh b/dev/release/verify-release-candidate.shindex 222e70289d..3fc926f4e8 100755--- a/dev/release/verify-release-candidate.sh+++ b/dev/release/verify-release-candidate.sh@@ -412,12 +412,12 @@ test_js() {[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"nvm install --lts+ npm install -g yarnfi- npm install- # clean, lint, and build JS source- npx run-s clean:all lint build- npm run test+ yarn --frozen-lockfile+ yarn run-s clean:all lint build+ yarn testpopd}