swc-project / swc-ecosystem-ci

Moved to https://github.com/swc-project/swc/tree/main/.github/swc-ecosystem-ci
9 stars 3 forks source link

Fix npm install command #4

Closed SukkaW closed 9 months ago

SukkaW commented 9 months ago

The PR removes the --legacy-peer-deps since it is no longer required (rollup-plugin-swc3 has fixed this).

The PR also adds --install-links. By default when npm installs the linked @swc/core from the local folder, it will not install the transitive dependencies (@swc/types). --install-links fixes that. See also: https://github.com/npm/cli/issues/2339