mirror of
https://github.com/kemko/nomad.git
synced 2026-01-01 16:05:42 +03:00
nmd 940/pnpm related build failures (#26659)
* replace yarn with pnpm in build scripts * pin node version to v20 * pin pnpm version to pnpm@10.15.0
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
"scripts": {},
|
||||
"packageManager": "pnpm@10.15.0+sha512.486ebc259d3e999a4e8691ce03b5cac4a71cbeca39372a9b762cb500cfdf0873e2cb16abe3d951b1ee2cf012503f027b98b6584e4df22524e0c7450d9ec7aa7b",
|
||||
"engines": {
|
||||
"node": ">= 22.17.1",
|
||||
"node": "20.19.4",
|
||||
"pnpm": ">= 10"
|
||||
},
|
||||
"pnpm": {
|
||||
|
||||
@@ -39,9 +39,9 @@ RUN /bin/bash -c '. ~/.nvm/nvm.sh && ln -s ~/.nvm/versions/node/$(nvm current) ~
|
||||
|
||||
COPY ./scripts/release/docker-build-all /tmp/scripts/docker-build-all
|
||||
|
||||
# Update PATH with GO bin, yarn, and node
|
||||
# Update PATH with GO bin, pnpm, and node
|
||||
ENV GOPATH="/opt/gopath" \
|
||||
PATH="/home/vagrant/.nvm/versions/node/.default/bin:/home/vagrant/bin:/opt/gopath/bin:/home/vagrant/.yarn/bin:/home/vagrant/.config/yarn/global/node_modules/.bin:$PATH"
|
||||
PATH="/home/vagrant/.nvm/versions/node/.default/bin:/home/vagrant/bin:/opt/gopath/bin:/home/vagrant/.pnpm/bin:/home/vagrant/.config/pnpm/global/node_modules/.bin:$PATH"
|
||||
|
||||
RUN mkdir -p /opt/gopath/src/github.com/hashicorp/nomad
|
||||
RUN mkdir -p /home/vagrant/bin \
|
||||
|
||||
@@ -23,5 +23,5 @@ find ~/.nvm/versions/node -not -name "v${NODE_VERSION}" -depth 1 -exec rm -rf {}
|
||||
|
||||
npm install -g ember-cli
|
||||
|
||||
# Install Yarn for front-end dependency management
|
||||
curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version 1.22.5
|
||||
# Install pnpm for front-end dependency management
|
||||
npm install -g pnpm@10.15.0
|
||||
|
||||
Reference in New Issue
Block a user