mirror of
https://github.com/hanzoai/swc.git
synced 2026-10-30 19:42:53 +00:00
**Description:** Migrate first-party package management from Yarn to pnpm 10.33.3. This updates root package-manager metadata, workspace configuration, lockfiles, npm/pnpm config, scripts, documentation snippets, GitHub Actions setup/cache/publish paths, Docker workflow commands, and Rust test helpers that locate JS executables or install/build helper packages. The pnpm install uses hoisted node_modules compatibility mode to preserve existing package layout assumptions. Vendored fixtures, third-party corpus data, and external-project package-manager support paths are intentionally left alone. Validation performed: - `pnpm --version` -> `10.33.3` - `pnpm install --frozen-lockfile` - `pnpm build:dev` - `pnpm test:core` - `pnpm test:minifier` - `pnpm test:html` - `pnpm test:react-compiler` - `pnpm --filter @swc/types build` - `pnpm --filter @swc/helpers build` - `cargo fmt --all` - `cargo clippy --all --all-targets -- -D warnings` - `cargo test -p testing` - `cargo test -p swc --test exec` - `./crates/swc_ecma_minifier/scripts/exec.sh` - `./crates/swc_ecma_minifier/scripts/test.sh` - `cargo test -p swc_ecma_minifier` - `pnpm publish --dry-run --no-git-checks --access public --force` in `packages/types` Note: full `actionlint .github/workflows/*.yml` still reports pre-existing workflow issues such as old action versions and the existing `matrix.settings.setup` static analysis warning. The newly touched `publish-misc-packages.yml` passes standalone `actionlint`. **BREAKING CHANGE:** None. **Related issue (if exists):** None.
8 lines
87 B
Bash
Executable File
8 lines
87 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -eu
|
|
|
|
pnpm build:dev
|
|
pnpm link --global
|
|
|
|
(cd swr && pnpm build)
|