fix(repo): replace remaining instances of yarn with pnpm (#16571)

This commit is contained in:
Miroslav Jonaš 2023-04-27 17:16:42 +02:00 committed by GitHub
parent 9d71c718f0
commit f004e22b7c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
14 changed files with 21 additions and 21 deletions

View File

@ -34,7 +34,7 @@ jobs:
- host: ubuntu-latest - host: ubuntu-latest
target: x86_64-unknown-linux-musl target: x86_64-unknown-linux-musl
docker: ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-alpine docker: ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-alpine
build: set -e && yarn nx -- run-many --target=build-native -- --target=x86_64-unknown-linux-musl build: set -e && pnpm nx run-many --target=build-native -- --target=x86_64-unknown-linux-musl
- host: macos-latest - host: macos-latest
target: aarch64-apple-darwin target: aarch64-apple-darwin
build: | build: |
@ -131,7 +131,7 @@ jobs:
with: with:
node-version: 18 node-version: 18
check-latest: true check-latest: true
cache: yarn cache: pnpm
architecture: x86 architecture: x86
- name: Build in docker - name: Build in docker
uses: addnab/docker-run-action@v3 uses: addnab/docker-run-action@v3

View File

@ -121,7 +121,7 @@
}, },
"generateLockfile": { "generateLockfile": {
"type": "boolean", "type": "boolean",
"description": "Generate a lockfile (e.g. yarn.lock) that matches the workspace lockfile to ensure package versions match.", "description": "Generate a lockfile (e.g. package-lock.json) that matches the workspace lockfile to ensure package versions match.",
"default": false, "default": false,
"x-priority": "internal" "x-priority": "internal"
} }

View File

@ -120,7 +120,7 @@
}, },
"generateLockfile": { "generateLockfile": {
"type": "boolean", "type": "boolean",
"description": "Generate a lockfile (e.g. yarn.lock) that matches the workspace lockfile to ensure package versions match.", "description": "Generate a lockfile (e.g. package-lock.json) that matches the workspace lockfile to ensure package versions match.",
"default": false, "default": false,
"x-priority": "internal" "x-priority": "internal"
} }

View File

@ -62,7 +62,7 @@
}, },
"generateLockfile": { "generateLockfile": {
"type": "boolean", "type": "boolean",
"description": "Generate a lockfile (e.g. yarn.lock) that matches the workspace lockfile to ensure package versions match.", "description": "Generate a lockfile (e.g. package-lock.json) that matches the workspace lockfile to ensure package versions match.",
"default": false, "default": false,
"x-priority": "internal" "x-priority": "internal"
}, },

View File

@ -26,7 +26,7 @@
"outputs": ["{options.outputPath}"], "outputs": ["{options.outputPath}"],
"options": { "options": {
"outputPath": "dist/nx-dev/nx-dev/public", "outputPath": "dist/nx-dev/nx-dev/public",
"command": "yarn next-sitemap --config ./nx-dev/nx-dev/next-sitemap.config.js" "command": "pnpm next-sitemap --config ./nx-dev/nx-dev/next-sitemap.config.js"
} }
}, },
"sync-documentation": { "sync-documentation": {

View File

@ -129,10 +129,10 @@
"options": { "options": {
"commands": [ "commands": [
{ {
"command": "yarn e2e-start-local-registry" "command": "pnpm e2e-start-local-registry"
}, },
{ {
"command": "yarn e2e-build-package-publish" "command": "pnpm e2e-build-package-publish"
}, },
{ {
"command": "nx run-e2e-tests {projectName}" "command": "nx run-e2e-tests {projectName}"
@ -159,10 +159,10 @@
"options": { "options": {
"commands": [ "commands": [
{ {
"command": "yarn e2e-start-local-registry" "command": "pnpm e2e-start-local-registry"
}, },
{ {
"command": "yarn e2e-build-package-publish" "command": "pnpm e2e-build-package-publish"
}, },
{ {
"command": "nx run-e2e-tests {projectName}" "command": "nx run-e2e-tests {projectName}"

View File

@ -18,7 +18,7 @@
"version": "pnpm prettier lerna.json --write", "version": "pnpm prettier lerna.json --write",
"depcheck": "ts-node -P ./scripts/tsconfig.scripts.json ./scripts/depcheck", "depcheck": "ts-node -P ./scripts/tsconfig.scripts.json ./scripts/depcheck",
"local-registry": "./scripts/local-registry.sh", "local-registry": "./scripts/local-registry.sh",
"documentation": "ts-node -P scripts/tsconfig.scripts.json ./scripts/documentation/generators/main.ts && yarn check-documentation-map", "documentation": "ts-node -P scripts/tsconfig.scripts.json ./scripts/documentation/generators/main.ts && pnpm check-documentation-map",
"submit-plugin": "node ./scripts/submit-plugin.js", "submit-plugin": "node ./scripts/submit-plugin.js",
"prepare": "is-ci || husky install", "prepare": "is-ci || husky install",
"echo": "echo 123458", "echo": "echo 123458",

View File

@ -102,7 +102,7 @@
}, },
"generateLockfile": { "generateLockfile": {
"type": "boolean", "type": "boolean",
"description": "Generate a lockfile (e.g. yarn.lock) that matches the workspace lockfile to ensure package versions match.", "description": "Generate a lockfile (e.g. package-lock.json) that matches the workspace lockfile to ensure package versions match.",
"default": false, "default": false,
"x-priority": "internal" "x-priority": "internal"
} }

View File

@ -90,7 +90,7 @@
}, },
"generateLockfile": { "generateLockfile": {
"type": "boolean", "type": "boolean",
"description": "Generate a lockfile (e.g. yarn.lock) that matches the workspace lockfile to ensure package versions match.", "description": "Generate a lockfile (e.g. package-lock.json) that matches the workspace lockfile to ensure package versions match.",
"default": false, "default": false,
"x-priority": "internal" "x-priority": "internal"
} }

View File

@ -59,7 +59,7 @@
}, },
"generateLockfile": { "generateLockfile": {
"type": "boolean", "type": "boolean",
"description": "Generate a lockfile (e.g. yarn.lock) that matches the workspace lockfile to ensure package versions match.", "description": "Generate a lockfile (e.g. package-lock.json) that matches the workspace lockfile to ensure package versions match.",
"default": false, "default": false,
"x-priority": "internal" "x-priority": "internal"
}, },

View File

@ -15,7 +15,7 @@
} }
}, },
"artifacts": { "artifacts": {
"command": "yarn napi artifacts -c build/packages/nx/package.json -d ./artifacts --dist build/packages/nx/native-packages" "command": "pnpm napi artifacts -c build/packages/nx/package.json -d ./artifacts --dist build/packages/nx/native-packages"
}, },
"build-base": { "build-base": {
"executor": "@nx/js:tsc", "executor": "@nx/js:tsc",

View File

@ -91,7 +91,7 @@ pipelines:
- pnpm install --frozen-lockfile - pnpm install --frozen-lockfile
- pnpm exec nx-cloud start-ci-run --stop-agents-after="build" --agent-count=3 - pnpm exec nx-cloud start-ci-run --stop-agents-after="build" --agent-count=3
- pnpm exec nx-cloud record -- yarn nx format:check - pnpm exec nx-cloud record -- pnpm exec nx format:check
- pnpm exec nx affected --target=lint & pnpm exec nx affected --target=test & pnpm exec nx affected --target=build - pnpm exec nx affected --target=lint & pnpm exec nx affected --target=test & pnpm exec nx affected --target=build
- pnpm exec nx-cloud stop-all-agents - pnpm exec nx-cloud stop-all-agents
- step: *agent - step: *agent
@ -385,7 +385,7 @@ pipelines:
- pnpm install --frozen-lockfile - pnpm install --frozen-lockfile
- pnpm exec nx-cloud start-ci-run --stop-agents-after="build" --agent-count=3 - pnpm exec nx-cloud start-ci-run --stop-agents-after="build" --agent-count=3
- pnpm exec nx-cloud record -- yarn nx format:check - pnpm exec nx-cloud record -- pnpm exec nx format:check
- pnpm exec nx affected --target=lint & pnpm exec nx affected --target=test & pnpm exec nx affected --target=build - pnpm exec nx affected --target=lint & pnpm exec nx affected --target=test & pnpm exec nx affected --target=build
- pnpm exec nx-cloud stop-all-agents - pnpm exec nx-cloud stop-all-agents
- step: *agent - step: *agent
@ -679,7 +679,7 @@ pipelines:
- pnpm install --frozen-lockfile - pnpm install --frozen-lockfile
- pnpm exec nx-cloud start-ci-run --stop-agents-after="build" --agent-count=3 - pnpm exec nx-cloud start-ci-run --stop-agents-after="build" --agent-count=3
- pnpm exec nx-cloud record -- yarn nx format:check - pnpm exec nx-cloud record -- pnpm exec nx format:check
- pnpm exec nx affected --target=lint & pnpm exec nx affected --target=test & pnpm exec nx affected --target=build - pnpm exec nx affected --target=lint & pnpm exec nx affected --target=test & pnpm exec nx affected --target=build
- pnpm exec nx-cloud stop-all-agents - pnpm exec nx-cloud stop-all-agents
- step: *agent - step: *agent

View File

@ -28,7 +28,7 @@ pipelines:
<% } %> <% } %>
- <%= packageManagerInstall %> - <%= packageManagerInstall %>
- <%= packageManagerPrefix %> nx-cloud start-ci-run --stop-agents-after="build" --agent-count=3 - <%= packageManagerPrefix %> nx-cloud start-ci-run --stop-agents-after="build" --agent-count=3
- <%= packageManagerPrefix %> nx-cloud record -- yarn nx format:check - <%= packageManagerPrefix %> nx-cloud record -- <%= packageManagerPrefix %> nx format:check
- <%= packageManagerPrefix %> nx affected --target=lint & <%= packageManagerPrefix %> nx affected --target=test & <%= packageManagerPrefix %> nx affected --target=build - <%= packageManagerPrefix %> nx affected --target=lint & <%= packageManagerPrefix %> nx affected --target=test & <%= packageManagerPrefix %> nx affected --target=build
- <%= packageManagerPrefix %> nx-cloud stop-all-agents - <%= packageManagerPrefix %> nx-cloud stop-all-agents
- step: *agent - step: *agent

View File

@ -15,7 +15,7 @@ export function generateDevkitDocumentation() {
); );
execSync( execSync(
`rm -rf docs/generated/devkit && npx typedoc packages/devkit/index.d.ts packages/devkit/ngcli-adapter.ts --tsconfig packages/devkit/tsconfig.lib.json --out ./docs/generated/devkit --hideBreadcrumbs true --disableSources --publicPath ../../devkit/ --theme nx-markdown-theme --readme none`, `rm -rf docs/generated/devkit && pnpm typedoc packages/devkit/index.d.ts packages/devkit/ngcli-adapter.ts --tsconfig packages/devkit/tsconfig.lib.json --out ./docs/generated/devkit --hideBreadcrumbs true --disableSources --publicPath ../../devkit/ --theme nx-markdown-theme --readme none`,
execSyncOptions execSyncOptions
); );
execSync( execSync(
@ -27,7 +27,7 @@ export function generateDevkitDocumentation() {
execSyncOptions execSyncOptions
); );
execSync( execSync(
`npx prettier docs/generated/devkit --write --config ${join( `pnpm prettier docs/generated/devkit --write --config ${join(
__dirname, __dirname,
'..', '..',
'..', '..',