chore(core): update inputs for rust tasks (#31184)
- Adds `native` inputs to rust tasks - Adds `rustc --version` runtime input to `native` named input
This commit is contained in:
parent
4d3fea7f9d
commit
3873fee587
3
nx.json
3
nx.json
@ -24,6 +24,9 @@
|
|||||||
{
|
{
|
||||||
"runtime": "node -p '`${process.platform}_${process.arch}`'"
|
"runtime": "node -p '`${process.platform}_${process.arch}`'"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"runtime": "rustc --version"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"externalDependencies": ["npm:@monodon/rust", "npm:@napi-rs/cli"]
|
"externalDependencies": ["npm:@monodon/rust", "npm:@napi-rs/cli"]
|
||||||
}
|
}
|
||||||
|
|||||||
@ -143,6 +143,7 @@
|
|||||||
"format-native": {
|
"format-native": {
|
||||||
"command": "cargo fmt",
|
"command": "cargo fmt",
|
||||||
"cache": true,
|
"cache": true,
|
||||||
|
"inputs": ["native"],
|
||||||
"options": {
|
"options": {
|
||||||
"cwd": "{projectRoot}/src/native",
|
"cwd": "{projectRoot}/src/native",
|
||||||
"args": ["--all", "--check"]
|
"args": ["--all", "--check"]
|
||||||
@ -156,6 +157,7 @@
|
|||||||
"lint-native": {
|
"lint-native": {
|
||||||
"command": "cargo clippy",
|
"command": "cargo clippy",
|
||||||
"cache": true,
|
"cache": true,
|
||||||
|
"inputs": ["native"],
|
||||||
"options": {
|
"options": {
|
||||||
"cwd": "{projectRoot}/src/native",
|
"cwd": "{projectRoot}/src/native",
|
||||||
"args": ["--frozen"]
|
"args": ["--frozen"]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user