Add support for platform-specific target dirs
- Dominant language
- Python
- Stars
- 5
- Forks
- 2
- PR merge metrics
- No merged PRs in 30d
Description
Currently, when `createTargetDirIfNeeded` is `true` and the directory does not exist, the first `targetDir` will be created. Usually, when there are several, there is a 'correct' target directory to create (e.g. `~/.config/...` vs `~/AppData/...`). Thus it would be good to scope these by platform, e.g.
```json
{
"targetDir": {
"linux": [
...
],
"darwin": [
...
],
"windows": [
...
]
}
}
```
or
```json
{
"targetDir": {
{
"path": "...",
"platforms": [
...
]
},
...
}
}
```
In any case, we should retain compatibility with the current `targetDir: string[]` syntax.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.