chore(repo): update to pnpm 9 (#27624)
<!-- Please make sure you have read the submission guidelines before posting an PR --> <!-- https://github.com/nrwl/nx/blob/master/CONTRIBUTING.md#-submitting-a-pr --> <!-- Please make sure that your commit message follows our format --> <!-- Example: `fix(nx): must begin with lowercase` --> <!-- If this is a particularly complex change or feature addition, you can request a dedicated Nx release for this pull request branch. Mention someone from the Nx team or the `@nrwl/nx-pipelines-reviewers` and they will confirm if the PR warrants its own release for testing purposes, and generate it for you if appropriate. --> ## Current Behavior <!-- This is the behavior we have today --> This repo uses pnpm v8 ## Expected Behavior <!-- This is the behavior we should expect with the changes in this PR --> This repo uses pnpm v9 ## Related Issue(s) <!-- Please link the issue being fixed so it gets closed when this is merged. --> Fixes # --------- Co-authored-by: “JamesHenry” <james@henry.sc>
This commit is contained in:
parent
51ecd54ea1
commit
088a95b7e5
@ -48,7 +48,7 @@ commands:
|
|||||||
- run:
|
- run:
|
||||||
name: Install pnpm package manager (linux)
|
name: Install pnpm package manager (linux)
|
||||||
command: |
|
command: |
|
||||||
npm install --prefix=$HOME/.local -g @pnpm/exe@8
|
npm install --prefix=$HOME/.local -g @pnpm/exe@9.2.0
|
||||||
- when:
|
- when:
|
||||||
condition:
|
condition:
|
||||||
equal: [<< parameters.os >>, macos]
|
equal: [<< parameters.os >>, macos]
|
||||||
@ -56,7 +56,7 @@ commands:
|
|||||||
- run:
|
- run:
|
||||||
name: Install pnpm package manager (macos)
|
name: Install pnpm package manager (macos)
|
||||||
command: |
|
command: |
|
||||||
npm install -g @pnpm/exe@8
|
npm install -g @pnpm/exe@9.2.0
|
||||||
- run:
|
- run:
|
||||||
name: Install Dependencies
|
name: Install Dependencies
|
||||||
command: |
|
command: |
|
||||||
|
|||||||
10
.github/workflows/publish.yml
vendored
10
.github/workflows/publish.yml
vendored
@ -138,7 +138,7 @@ jobs:
|
|||||||
docker: ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-debian
|
docker: ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-debian
|
||||||
build: |-
|
build: |-
|
||||||
set -e &&
|
set -e &&
|
||||||
npm i -g pnpm@8.15.7 --force &&
|
npm i -g pnpm@9.2.0 --force &&
|
||||||
pnpm --version &&
|
pnpm --version &&
|
||||||
pnpm install --frozen-lockfile &&
|
pnpm install --frozen-lockfile &&
|
||||||
pnpm nx run-many --verbose --target=build-native -- --target=x86_64-unknown-linux-gnu
|
pnpm nx run-many --verbose --target=build-native -- --target=x86_64-unknown-linux-gnu
|
||||||
@ -147,7 +147,7 @@ jobs:
|
|||||||
docker: ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-alpine
|
docker: ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-alpine
|
||||||
build: |-
|
build: |-
|
||||||
set -e &&
|
set -e &&
|
||||||
npm i -g pnpm@8.15.7 --force &&
|
npm i -g pnpm@9.2.0 --force &&
|
||||||
pnpm --version &&
|
pnpm --version &&
|
||||||
pnpm install --frozen-lockfile &&
|
pnpm install --frozen-lockfile &&
|
||||||
pnpm nx run-many --verbose --target=build-native -- --target=x86_64-unknown-linux-musl
|
pnpm nx run-many --verbose --target=build-native -- --target=x86_64-unknown-linux-musl
|
||||||
@ -165,7 +165,7 @@ jobs:
|
|||||||
docker: ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-debian-aarch64
|
docker: ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-debian-aarch64
|
||||||
build: |-
|
build: |-
|
||||||
set -e &&
|
set -e &&
|
||||||
npm i -g pnpm@8.15.7 --force &&
|
npm i -g pnpm@9.2.0 --force &&
|
||||||
pnpm --version &&
|
pnpm --version &&
|
||||||
pnpm install --frozen-lockfile &&
|
pnpm install --frozen-lockfile &&
|
||||||
pnpm nx run-many --verbose --target=build-native -- --target=aarch64-unknown-linux-gnu
|
pnpm nx run-many --verbose --target=build-native -- --target=aarch64-unknown-linux-gnu
|
||||||
@ -191,7 +191,7 @@ jobs:
|
|||||||
build: |-
|
build: |-
|
||||||
set -e &&
|
set -e &&
|
||||||
rustup target add aarch64-unknown-linux-musl &&
|
rustup target add aarch64-unknown-linux-musl &&
|
||||||
npm i -g pnpm@8.15.7 --force &&
|
npm i -g pnpm@9.2.0 --force &&
|
||||||
pnpm --version &&
|
pnpm --version &&
|
||||||
pnpm install --frozen-lockfile &&
|
pnpm install --frozen-lockfile &&
|
||||||
pnpm nx run-many --verbose --target=build-native -- --target=aarch64-unknown-linux-musl
|
pnpm nx run-many --verbose --target=build-native -- --target=aarch64-unknown-linux-musl
|
||||||
@ -318,7 +318,7 @@ jobs:
|
|||||||
env
|
env
|
||||||
whoami
|
whoami
|
||||||
sudo pkg install -y -f node libnghttp2 www/npm git
|
sudo pkg install -y -f node libnghttp2 www/npm git
|
||||||
sudo npm install --location=global --ignore-scripts pnpm@8.15.7
|
sudo npm install --location=global --ignore-scripts pnpm@9.2.0
|
||||||
curl https://sh.rustup.rs -sSf --output rustup.sh
|
curl https://sh.rustup.rs -sSf --output rustup.sh
|
||||||
sh rustup.sh -y --profile minimal --default-toolchain stable
|
sh rustup.sh -y --profile minimal --default-toolchain stable
|
||||||
source "$HOME/.cargo/env"
|
source "$HOME/.cargo/env"
|
||||||
|
|||||||
@ -28,7 +28,7 @@ launch-templates:
|
|||||||
sudo apt-get install -y ca-certificates lsof libvips-dev libglib2.0-dev libgirepository1.0-dev
|
sudo apt-get install -y ca-certificates lsof libvips-dev libglib2.0-dev libgirepository1.0-dev
|
||||||
- name: Install Pnpm
|
- name: Install Pnpm
|
||||||
script: |
|
script: |
|
||||||
npm install -g pnpm@8
|
npm install -g pnpm@9.2.0
|
||||||
|
|
||||||
- name: Pnpm Install
|
- name: Pnpm Install
|
||||||
script: |
|
script: |
|
||||||
|
|||||||
@ -401,5 +401,5 @@
|
|||||||
]
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"packageManager": "pnpm@8.15.7"
|
"packageManager": "pnpm@9.6.0"
|
||||||
}
|
}
|
||||||
|
|||||||
@ -45,26 +45,7 @@ module.exports = function (api: any, options: NxWebBabelPresetOptions = {}) {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
const plugins = [
|
||||||
presets: [
|
|
||||||
// Support module/nomodule pattern.
|
|
||||||
[
|
|
||||||
require.resolve('@babel/preset-env'),
|
|
||||||
// For Jest tests, NODE_ENV is set as 'test' and we only want to set target as Node.
|
|
||||||
// All other options will fail in Jest since Node does not support some ES features
|
|
||||||
// such as import syntax.
|
|
||||||
isTest || process.env.NODE_ENV === 'test' || process.env.JEST_WORKER_ID
|
|
||||||
? { targets: { node: 'current' }, loose }
|
|
||||||
: createBabelPresetEnvOptions(options.useBuiltIns, isModern, loose),
|
|
||||||
],
|
|
||||||
[
|
|
||||||
require.resolve('@babel/preset-typescript'),
|
|
||||||
{
|
|
||||||
allowDeclareFields: true,
|
|
||||||
},
|
|
||||||
],
|
|
||||||
],
|
|
||||||
plugins: [
|
|
||||||
!isNxPackage
|
!isNxPackage
|
||||||
? [
|
? [
|
||||||
require.resolve('@babel/plugin-transform-runtime'),
|
require.resolve('@babel/plugin-transform-runtime'),
|
||||||
@ -89,7 +70,28 @@ module.exports = function (api: any, options: NxWebBabelPresetOptions = {}) {
|
|||||||
options.decorators ?? { legacy: true },
|
options.decorators ?? { legacy: true },
|
||||||
],
|
],
|
||||||
[require.resolve('@babel/plugin-transform-class-properties'), { loose }],
|
[require.resolve('@babel/plugin-transform-class-properties'), { loose }],
|
||||||
].filter(Boolean),
|
].filter(Boolean);
|
||||||
|
|
||||||
|
return {
|
||||||
|
presets: [
|
||||||
|
// Support module/nomodule pattern.
|
||||||
|
[
|
||||||
|
require.resolve('@babel/preset-env'),
|
||||||
|
// For Jest tests, NODE_ENV is set as 'test' and we only want to set target as Node.
|
||||||
|
// All other options will fail in Jest since Node does not support some ES features
|
||||||
|
// such as import syntax.
|
||||||
|
isTest || process.env.NODE_ENV === 'test' || process.env.JEST_WORKER_ID
|
||||||
|
? { targets: { node: 'current' }, loose }
|
||||||
|
: createBabelPresetEnvOptions(options.useBuiltIns, isModern, loose),
|
||||||
|
],
|
||||||
|
[
|
||||||
|
require.resolve('@babel/preset-typescript'),
|
||||||
|
{
|
||||||
|
allowDeclareFields: true,
|
||||||
|
},
|
||||||
|
],
|
||||||
|
],
|
||||||
|
plugins,
|
||||||
overrides: [
|
overrides: [
|
||||||
// Convert `const enum` to `enum`. The former cannot be supported by babel
|
// Convert `const enum` to `enum`. The former cannot be supported by babel
|
||||||
// but at least we can get it to not error out.
|
// but at least we can get it to not error out.
|
||||||
|
|||||||
@ -100,7 +100,18 @@
|
|||||||
"events", // This is coming from @storybook/builder-manager since it uses the browser polyfill
|
"events", // This is coming from @storybook/builder-manager since it uses the browser polyfill
|
||||||
"process", // This is coming from @storybook/builder-manager since it uses the browser polyfill
|
"process", // This is coming from @storybook/builder-manager since it uses the browser polyfill
|
||||||
"prettier", // This is coming from @storybook/builder-manager since it uses the browser polyfill
|
"prettier", // This is coming from @storybook/builder-manager since it uses the browser polyfill
|
||||||
"util" // This is coming from @storybook/builder-manager since it uses the browser polyfill
|
"util", // This is coming from @storybook/builder-manager since it uses the browser polyfill
|
||||||
|
// The native modules are optional and only one of them will ever be installed on a given machine
|
||||||
|
"@nx/nx-darwin-x64",
|
||||||
|
"@nx/nx-darwin-arm64",
|
||||||
|
"@nx/nx-linux-x64-gnu",
|
||||||
|
"@nx/nx-linux-x64-musl",
|
||||||
|
"@nx/nx-win32-x64-msvc",
|
||||||
|
"@nx/nx-linux-arm64-gnu",
|
||||||
|
"@nx/nx-linux-arm64-musl",
|
||||||
|
"@nx/nx-linux-arm-gnueabihf",
|
||||||
|
"@nx/nx-win32-arm64-msvc",
|
||||||
|
"@nx/nx-freebsd-x64"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
44638
pnpm-lock.yaml
generated
44638
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user