{ "version": "2.0.0", "tasks": [ { "label": "build (release -> ./build)", "detail": "Bygger npmctl i release-läge och lägger binären i ./build/npmctl", "type": "shell", "options": { "shell": { "executable": "/bin/bash", "args": ["-c"] }, "env": { "//": "Bygg utanför NTFS-disken (cargo skapar många småfiler); kopiera sedan bara binären in i repot.", "CARGO_TARGET_DIR": "${env:HOME}/.cache/npmctl-target" } }, "command": "cargo build --release && mkdir -p build && cp \"$CARGO_TARGET_DIR/release/npmctl\" build/npmctl && echo '--> build/npmctl' && ls -la build/", "problemMatcher": ["$rustc"], "group": { "kind": "build", "isDefault": true } }, { "label": "run -- status", "detail": "Bygger och kör `npmctl status`", "type": "shell", "options": { "shell": { "executable": "/bin/bash", "args": ["-c"] }, "env": { "CARGO_TARGET_DIR": "${env:HOME}/.cache/npmctl-target" } }, "command": "cargo run --release -- status", "problemMatcher": ["$rustc"] } ] }