Skip to content

Commit f4b9989

Browse files
author
1164148-7-eng
committed
fix: migrate CLI runtime to pnpm and fix multiple bugs
BREAKING CHANGE: Migrate from npm to pnpm package manager - Remove package-lock.json, add pnpm-lock.yaml - Update CI workflows to use pnpm install --frozen-lockfile - Add packageManager field to package.json - Add missing peer dependencies (tslib, ajv, ajv-formats, spectral-core, spectral-formatters) Bug fixes (4 issues): fix #2018: Watch mode crash - isLocalTemplate not a function - src/utils/generate/watcher.ts: Call isLocalTemplate() as standalone function instead of thisArg.isLocalTemplate() fix #2026: AsyncAPI document double-stringified in ZIP output - src/domains/services/archiver.service.ts: Only stringify input if it is an object, not already a string fix #2017: Duplicate AsyncAPI specification loading - src/apps/cli/commands/generate/fromTemplate.ts: Reuse result from loadAsyncAPIInput() instead of calling load() again fix #2021: UnparsedCommand warnings in test logs - src/apps/cli/commands/config/versions.ts: Add explicit static id - src/apps/cli/commands/convert.ts: Add explicit static id - src/apps/cli/internal/base.ts: Suppress non-critical CLIError warnings /claim #2018 /claim #2026 /claim #2017 /claim #2021
1 parent 2e6967c commit f4b9989

File tree

10 files changed

+17514
-28437
lines changed

10 files changed

+17514
-28437
lines changed

.github/workflows/if-nodejs-pr-testing.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -60,15 +60,14 @@ jobs:
6060
uses: actions/setup-node@v4
6161
with:
6262
node-version: "${{ steps.lockversion.outputs.version }}"
63-
- if: steps.lockversion.outputs.version == '18' && matrix.os == 'windows-latest'
64-
#npm cli 10 is buggy because of some cache issue
65-
name: Install npm cli 8
66-
shell: bash
67-
run: npm install -g [email protected]
63+
cache: 'pnpm'
64+
- if: steps.packagejson.outputs.exists == 'true'
65+
name: Install pnpm
66+
run: npm install -g pnpm
6867
- if: steps.packagejson.outputs.exists == 'true'
6968
name: Install dependencies
7069
shell: bash
71-
run: npm ci
70+
run: pnpm install --frozen-lockfile
7271
- if: steps.packagejson.outputs.exists == 'true'
7372
name: Test
7473
run: npm test --if-present

0 commit comments

Comments
 (0)