fix(config): migrate project metadata to .smartconfig.json and update related dependencies
This commit is contained in:
@@ -1,5 +1,11 @@
|
||||
# Changelog
|
||||
|
||||
## 2026-03-24 - 1.3.2 - fix(config)
|
||||
migrate project metadata to .smartconfig.json and update related dependencies
|
||||
|
||||
- replace npmextra.json with .smartconfig.json in packaged files and documentation
|
||||
- bump smartconfig, smartshell, smol-toml, tsbuild, tstest, and @types/node versions
|
||||
|
||||
## 2026-03-24 - 1.3.1 - fix(cli)
|
||||
replace npmextra config loading with smartconfig
|
||||
|
||||
|
||||
14
package.json
14
package.json
@@ -34,18 +34,18 @@
|
||||
"homepage": "https://code.foss.global/git.zone/tsrust#README",
|
||||
"dependencies": {
|
||||
"@push.rocks/early": "^4.0.4",
|
||||
"@push.rocks/smartconfig": "^6.0.0",
|
||||
"@push.rocks/smartcli": "^4.0.20",
|
||||
"@push.rocks/smartconfig": "^6.0.1",
|
||||
"@push.rocks/smartfile": "^13.1.2",
|
||||
"@push.rocks/smartpath": "^6.0.0",
|
||||
"@push.rocks/smartshell": "^3.0.6",
|
||||
"smol-toml": "^1.3.1"
|
||||
"@push.rocks/smartshell": "^3.3.8",
|
||||
"smol-toml": "^1.6.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@git.zone/tsbuild": "^4.1.2",
|
||||
"@git.zone/tsbuild": "^4.4.0",
|
||||
"@git.zone/tsrun": "^2.0.1",
|
||||
"@git.zone/tstest": "^3.1.4",
|
||||
"@types/node": "^25.2.2"
|
||||
"@git.zone/tstest": "^3.5.1",
|
||||
"@types/node": "^25.5.0"
|
||||
},
|
||||
"files": [
|
||||
"ts/**/*",
|
||||
@@ -54,7 +54,7 @@
|
||||
"dist_ts/**/*",
|
||||
"assets/**/*",
|
||||
"cli.js",
|
||||
"npmextra.json",
|
||||
".smartconfig.json",
|
||||
"readme.md"
|
||||
],
|
||||
"browserslist": [
|
||||
|
||||
3115
pnpm-lock.yaml
generated
3115
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
@@ -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.
|
||||
|
||||
|
||||
@@ -3,6 +3,6 @@
|
||||
*/
|
||||
export const commitinfo = {
|
||||
name: '@git.zone/tsrust',
|
||||
version: '1.3.1',
|
||||
version: '1.3.2',
|
||||
description: 'A tool for compiling Rust projects, detecting Cargo workspaces, building with cargo, and placing binaries in a conventional dist_rust directory.'
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user