Skip to content

Commit d76c548

Browse files
committed
ci: fix npm optional dependency issue in typescript tests
Use --install-strategy=nested to avoid npm hoisting issues with platform-specific optional dependencies (rollup required by vitest). See: npm/cli#4828
1 parent a15b276 commit d76c548

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

.github/workflows/typescript.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@ jobs:
1313
- uses: actions/setup-node@v4
1414
with:
1515
node-version: 22
16-
- run: npm ci
16+
# Use nested install strategy to avoid npm hoisting issues with
17+
# platform-specific optional dependencies (rollup/vitest)
18+
- run: npm ci --install-strategy=nested
1719
- name: test pkg
1820
run: npm test
1921
working-directory: ./typescript

0 commit comments

Comments
 (0)