# What changed in @swc/cli

> 5 changes in @swc/cli 0.7 to 0.8 from its official release notes, upgrade guides and advisories. Each one cited. Sources checked 2026-11-30. HTML: https://unstale.sh/npm/@swc/cli/

To see which of these apply to a repository, run `npx @unstale/cli init` in it.

## @swc/cli 0.8

### Behavior and default changes

- The CLI skips writing output when it is byte-identical to the existing file. (0.8.2) — [release notes](https://github.com/swc-project/pkgs/blob/34e4e855190d6b8f4fc845ebe12cf103ca43cef7/packages/cli/CHANGELOG.md#082)

### Tooling

- TypeScript declarations are now published with the package, allowing TypeScript users to consume its types. (0.8.2) — [release notes](https://github.com/swc-project/pkgs/blob/34e4e855190d6b8f4fc845ebe12cf103ca43cef7/packages/cli/CHANGELOG.md#082)

### Fixes and other changes

- Output is written through a temporary file and renamed so watch consumers do not read a partially written file. (0.8.2) — [release notes](https://github.com/swc-project/pkgs/blob/34e4e855190d6b8f4fc845ebe12cf103ca43cef7/packages/cli/CHANGELOG.md#082)

## @swc/cli 0.7

### Fixes and other changes

- Fixes the CLI ignoring --source-file-name. (0.7.10) — [release notes](https://github.com/swc-project/pkgs/blob/34e4e855190d6b8f4fc845ebe12cf103ca43cef7/packages/cli/CHANGELOG.md#0710)
- Watch mode now includes newly added files. (0.7.9) — [release notes](https://github.com/swc-project/pkgs/blob/34e4e855190d6b8f4fc845ebe12cf103ca43cef7/packages/cli/CHANGELOG.md#079)
