mirror of
https://github.com/langchain-ai/datafusion.git
synced 2026-07-18 21:24:40 -04:00
ARROW-12239: [JS] Switch to yarn
Closes #9918 from domoritz/yarn Lead-authored-by: Dominik Moritz <domoritz@gmail.com> Co-authored-by: Sutou Kouhei <kou@clear-code.com> Signed-off-by: Sutou Kouhei <kou@clear-code.com>
This commit is contained in:
committed by
Sutou Kouhei
parent
2dea992114
commit
bec1082756
@@ -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)
|
||||
|
||||
@@ -34,6 +34,7 @@ RUN conda install -q \
|
||||
compilers \
|
||||
maven=${maven} \
|
||||
nodejs=${node} \
|
||||
yarn \
|
||||
openjdk=${jdk} && \
|
||||
conda clean --all --force-pkgs-dirs
|
||||
|
||||
|
||||
@@ -69,7 +69,8 @@ ARG node=14
|
||||
RUN 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-9693
|
||||
RUN pip install \
|
||||
|
||||
@@ -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} \
|
||||
|
||||
@@ -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 build
|
||||
|
||||
if [ "${with_docs}" == "true" ]; then
|
||||
npm install typedoc
|
||||
npm run doc
|
||||
yarn doc
|
||||
fi
|
||||
|
||||
popd
|
||||
|
||||
@@ -23,7 +23,7 @@ source_dir=${1}/js
|
||||
|
||||
pushd ${source_dir}
|
||||
|
||||
npm run lint
|
||||
npm run test
|
||||
yarn lint
|
||||
yarn test
|
||||
|
||||
popd
|
||||
|
||||
@@ -128,6 +128,7 @@ go/parquet/go.sum
|
||||
js/.npmignore
|
||||
js/closure-compiler-scripts/*
|
||||
js/src/fb/*.ts
|
||||
js/yarn.lock
|
||||
python/cmake_modules
|
||||
python/cmake_modules/FindPythonLibsNew.cmake
|
||||
python/cmake_modules/SnappyCMakeLists.txt
|
||||
|
||||
@@ -412,12 +412,12 @@ test_js() {
|
||||
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
|
||||
|
||||
nvm install --lts
|
||||
npm install -g yarn
|
||||
fi
|
||||
|
||||
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 test
|
||||
popd
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user