mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-06-30 03:37:44 +00:00
[JS] upgrade package-lock.json from v1 to v2 (#11039)
* upgrade package-lock.json from v1 to v2 * upgrade requirement of nodejs version to 16.x
This commit is contained in:
parent
998bf0fdb6
commit
179406bd25
18 changed files with 16390 additions and 139 deletions
|
|
@ -23,7 +23,7 @@ Please follow the steps described below to setup development environment.
|
|||
|
||||
### Prerequisites
|
||||
|
||||
- Node.js (14.0+): https://nodejs.org/ - (Optional) Use nvm ([Windows](https://github.com/coreybutler/nvm-windows) / [Mac/Linux](https://github.com/creationix/nvm)) to install Node.js
|
||||
- Node.js (16.0+): https://nodejs.org/ - (Optional) Use nvm ([Windows](https://github.com/coreybutler/nvm-windows) / [Mac/Linux](https://github.com/creationix/nvm)) to install Node.js
|
||||
|
||||
- Python (2.7 or 3.6+): https://www.python.org/downloads/
|
||||
|
||||
|
|
|
|||
1686
js/common/package-lock.json
generated
1686
js/common/package-lock.json
generated
File diff suppressed because it is too large
Load diff
4080
js/node/package-lock.json
generated
4080
js/node/package-lock.json
generated
File diff suppressed because it is too large
Load diff
3420
js/package-lock.json
generated
3420
js/package-lock.json
generated
File diff suppressed because it is too large
Load diff
7307
js/web/package-lock.json
generated
7307
js/web/package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
|
@ -44,7 +44,7 @@ jobs:
|
|||
|
||||
- task: NodeTool@0
|
||||
inputs:
|
||||
versionSpec: '14.x'
|
||||
versionSpec: '16.x'
|
||||
|
||||
- task: UsePythonVersion@0
|
||||
inputs:
|
||||
|
|
|
|||
|
|
@ -68,7 +68,7 @@ jobs:
|
|||
|
||||
- task: NodeTool@0
|
||||
inputs:
|
||||
versionSpec: '12.x'
|
||||
versionSpec: '16.x'
|
||||
|
||||
- task: UsePythonVersion@0
|
||||
inputs:
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ jobs:
|
|||
versionSpec: 3.8
|
||||
- task: NodeTool@0
|
||||
inputs:
|
||||
versionSpec: '12.x'
|
||||
versionSpec: '16.x'
|
||||
- script: |
|
||||
set -e
|
||||
pushd .
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ jobs:
|
|||
displayName: 'Checkout submodule onnx'
|
||||
- task: NodeTool@0
|
||||
inputs:
|
||||
versionSpec: '14.x'
|
||||
versionSpec: '16.x'
|
||||
- task: DownloadPipelineArtifact@2
|
||||
inputs:
|
||||
patterns: 'Release_*/**/*'
|
||||
|
|
|
|||
|
|
@ -71,7 +71,7 @@ jobs:
|
|||
- task: NodeTool@0
|
||||
condition: and(succeeded(), eq('${{ parameters.buildNodejs}}', true))
|
||||
inputs:
|
||||
versionSpec: '14.x'
|
||||
versionSpec: '16.x'
|
||||
|
||||
- task: BatchScript@1
|
||||
displayName: 'setup env'
|
||||
|
|
|
|||
|
|
@ -56,7 +56,7 @@ jobs:
|
|||
|
||||
- task: NodeTool@0
|
||||
inputs:
|
||||
versionSpec: '12.x'
|
||||
versionSpec: '16.x'
|
||||
force32bit: ${{ parameters.isX86 }}
|
||||
|
||||
# Our build machine doesn't have java x86
|
||||
|
|
|
|||
|
|
@ -69,7 +69,7 @@ jobs:
|
|||
|
||||
- task: NodeTool@0
|
||||
inputs:
|
||||
versionSpec: '12.x'
|
||||
versionSpec: '16.x'
|
||||
force32bit: ${{ parameters.isX86 }}
|
||||
|
||||
# Our build machine doesn't have java x86
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ jobs:
|
|||
displayName: 'Checkout submodule onnx'
|
||||
- task: NodeTool@0
|
||||
inputs:
|
||||
versionSpec: '14.x'
|
||||
versionSpec: '16.x'
|
||||
- task: DownloadPipelineArtifact@2
|
||||
inputs:
|
||||
patterns: 'Release_*/**/*'
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ jobs:
|
|||
|
||||
- task: NodeTool@0
|
||||
inputs:
|
||||
versionSpec: '12.x'
|
||||
versionSpec: '16.x'
|
||||
|
||||
- task: BatchScript@1
|
||||
displayName: 'setup env'
|
||||
|
|
|
|||
|
|
@ -73,8 +73,8 @@ elif [[ "$CPU_ARCH" = "aarch64" ]]; then
|
|||
else
|
||||
NODEJS_ARCH=$CPU_ARCH
|
||||
fi
|
||||
GetFile https://nodejs.org/dist/v14.18.1/node-v14.18.1-linux-${NODEJS_ARCH}.tar.gz /tmp/src/node-v14.18.1-linux-${NODEJS_ARCH}.tar.gz
|
||||
tar --strip 1 -xf /tmp/src/node-v14.18.1-linux-${NODEJS_ARCH}.tar.gz -C /usr
|
||||
GetFile https://nodejs.org/dist/v16.14.2/node-v16.14.2-linux-${NODEJS_ARCH}.tar.gz /tmp/src/node-v14.18.1-linux-${NODEJS_ARCH}.tar.gz
|
||||
tar --strip 1 -xf /tmp/src/node-v16.14.2-linux-${NODEJS_ARCH}.tar.gz -C /usr
|
||||
|
||||
cd /tmp/src
|
||||
GetFile https://downloads.gradle-dn.com/distributions/gradle-6.3-bin.zip /tmp/src/gradle-6.3-bin.zip
|
||||
|
|
|
|||
|
|
@ -74,8 +74,8 @@ if [[ $SYS_LONG_BIT = "64" && "$GLIBC_VERSION" -gt "9" ]]; then
|
|||
GetFile https://github.com/Kitware/CMake/releases/download/v3.18.2/cmake-3.18.2-Linux-x86_64.tar.gz /tmp/src/cmake-3.18.2-Linux-x86_64.tar.gz
|
||||
tar -zxf /tmp/src/cmake-3.18.2-Linux-x86_64.tar.gz --strip=1 -C /usr
|
||||
echo "Installing Node.js"
|
||||
GetFile https://nodejs.org/dist/v12.16.3/node-v12.16.3-linux-x64.tar.xz /tmp/src/node-v12.16.3-linux-x64.tar.xz
|
||||
tar -xf /tmp/src/node-v12.16.3-linux-x64.tar.xz --strip=1 -C /usr
|
||||
GetFile https://nodejs.org/dist/v16.14.2/node-v16.14.2-linux-x64.tar.xz /tmp/src/node-v16.14.2-linux-x64.tar.xz
|
||||
tar -xf /tmp/src/node-v16.14.2-linux-x64.tar.xz --strip=1 -C /usr
|
||||
else
|
||||
echo "Installing cmake"
|
||||
GetFile https://github.com/Kitware/CMake/releases/download/v3.18.2/cmake-3.18.2.tar.gz /tmp/src/cmake-3.18.2.tar.gz
|
||||
|
|
|
|||
|
|
@ -75,8 +75,8 @@ cmake -Bbuild-cmake -H.
|
|||
cmake --build build-cmake
|
||||
mv ./build-cmake/ninja /usr/bin
|
||||
echo "Installing Node.js"
|
||||
GetFile https://nodejs.org/dist/v12.16.3/node-v12.16.3-linux-x64.tar.gz /tmp/src/node-v12.16.3-linux-x64.tar.gz
|
||||
tar --strip 1 -xf /tmp/src/node-v12.16.3-linux-x64.tar.gz -C /usr
|
||||
GetFile https://nodejs.org/dist/v16.14.2/node-v16.14.2-linux-x64.tar.gz /tmp/src/node-v16.14.2-linux-x64.tar.gz
|
||||
tar --strip 1 -xf /tmp/src/node-v16.14.2-linux-x64.tar.gz -C /usr
|
||||
|
||||
cd /tmp/src
|
||||
GetFile https://downloads.gradle-dn.com/distributions/gradle-6.3-bin.zip /tmp/src/gradle-6.3-bin.zip
|
||||
|
|
|
|||
|
|
@ -75,8 +75,8 @@ cmake -Bbuild-cmake -H.
|
|||
cmake --build build-cmake
|
||||
mv ./build-cmake/ninja /usr/bin
|
||||
echo "Installing Node.js"
|
||||
GetFile https://nodejs.org/dist/v12.16.3/node-v12.16.3-linux-x64.tar.gz /tmp/src/node-v12.16.3-linux-x64.tar.gz
|
||||
tar --strip 1 -xf /tmp/src/node-v12.16.3-linux-x64.tar.gz -C /usr
|
||||
GetFile https://nodejs.org/dist/v16.14.2/node-v16.14.2-linux-x64.tar.gz /tmp/src/node-v16.14.2-linux-x64.tar.gz
|
||||
tar --strip 1 -xf /tmp/src/node-v16.14.2-linux-x64.tar.gz -C /usr
|
||||
|
||||
cd /tmp/src
|
||||
GetFile https://downloads.gradle-dn.com/distributions/gradle-6.3-bin.zip /tmp/src/gradle-6.3-bin.zip
|
||||
|
|
|
|||
Loading…
Reference in a new issue