fix(config): migrate project metadata to .smartconfig.json and update related dependencies

This commit is contained in:
2026-03-24 19:02:17 +00:00
parent 838b3a9feb
commit cd99e15583
6 changed files with 1627 additions and 1518 deletions

View File

@@ -131,9 +131,9 @@ dist_rust/
`tsrust` automatically installs missing rustup targets via `rustup target add` when needed.
### Configuration via npmextra.json
### Configuration via .smartconfig.json
You can set default cross-compilation targets in your project's `npmextra.json` file so you don't need to pass `--target` flags every time:
You can set default cross-compilation targets in your project's `.smartconfig.json` file so you don't need to pass `--target` flags every time:
```json
{
@@ -143,7 +143,7 @@ You can set default cross-compilation targets in your project's `npmextra.json`
}
```
When targets are configured in `npmextra.json`, simply running `tsrust` will cross-compile for all listed targets. CLI `--target` flags take full precedence — if any `--target` is provided, the `npmextra.json` targets are ignored entirely.
When targets are configured in `.smartconfig.json`, simply running `tsrust` will cross-compile for all listed targets. CLI `--target` flags take full precedence — if any `--target` is provided, the `.smartconfig.json` targets are ignored entirely.
### 🗑️ Clean Only
@@ -221,7 +221,7 @@ console.log(FsHelpers.formatFileSize(size)); // "13.4 MB"
## License and Legal Information
This repository contains open-source code licensed under the MIT License. A copy of the license can be found in the [LICENSE](./LICENSE) file.
This repository contains open-source code licensed under the MIT License. A copy of the license can be found in the [license](./license.md) file.
**Please note:** The MIT License does not grant permission to use the trade names, trademarks, service marks, or product names of the project, except as required for reasonable and customary use in describing the origin of the work and reproducing the content of the NOTICE file.