oxc/MAINTENANCE.md
Boshen ceeee5909b
Remove HIR (#917)
closes #273
closes #814

HIR is removed from this PR, with the minifier being commented out.

HIR is a wonderful idea for compiling to lower languages, but after
sitting on it for a few months I found that it only adds confusion and
uncertainties to both myself and future contributors.

It also adds too much burden to maintainers if we plan to support more
downstream tools.

1 AST is the only way.
2023-09-15 23:48:32 +08:00

40 lines
1.2 KiB
Markdown

# Release crates
Manually edit all versions specified by `[workspace.dependencies]` in Cargo.toml,
also manually edit each of the crates version.
```bash
sed -i '' 's/0.1.3/0.2.0/' Cargo.toml
sed -i '' 's/0.1.3/0.2.0/' crates/oxc/Cargo.toml
sed -i '' 's/0.1.3/0.2.0/' crates/oxc_allocator/Cargo.toml
sed -i '' 's/0.1.3/0.2.0/' crates/oxc_ast/Cargo.toml
sed -i '' 's/0.1.3/0.2.0/' crates/oxc_diagnostics/Cargo.toml
sed -i '' 's/0.1.3/0.2.0/' crates/oxc_formatter/Cargo.toml
sed -i '' 's/0.1.3/0.2.0/' crates/oxc_index/Cargo.toml
sed -i '' 's/0.1.3/0.2.0/' crates/oxc_minifier/Cargo.toml
sed -i '' 's/0.1.3/0.2.0/' crates/oxc_parser/Cargo.toml
sed -i '' 's/0.1.3/0.2.0/' crates/oxc_semantic/Cargo.toml
sed -i '' 's/0.1.3/0.2.0/' crates/oxc_span/Cargo.toml
sed -i '' 's/0.1.3/0.2.0/' crates/oxc_syntax/Cargo.toml
cargo build
git add .
git commit
just ready
```
Run the following commands, the order is important.
```bash
cargo publish -p oxc_allocator
cargo publish -p oxc_index
cargo publish -p oxc_span
cargo publish -p oxc_syntax
cargo publish -p oxc_ast
cargo publish -p oxc_diagnostics
cargo publish -p oxc_parser
cargo publish -p oxc_semantic
cargo publish -p oxc_formatter
cargo publish -p oxc_minifier
cargo publish -p oxc
```