Skip to content

Commit

Permalink
chore: Added melos.yaml json schema (#745)
Browse files Browse the repository at this point in the history
Melos.yaml schema validation should exist and be maintained together
with `melos.yaml` changes.

The current melos.yaml schema is not updated with the latest options on
the Melos Extension, so things like publish hooks and categories show as
errors and autocomplete.

### Why have it here?

- Easier to maintain, and keep it in sync iwth melos.yaml changes
- In VSCode, you do not need an extension; you can just add it on top of
the `melos.yaml` file.

```yaml
# yaml-language-server: $schema=https://raw.githubusercontent.com/../melos.yaml.schema.json

name: melos_workspace
```

This schema contains changes to [publish
hooks](https://melos.invertase.dev/configuration/overview#categories)
and
[category](https://melos.invertase.dev/configuration/overview#categories).

After this is merged, we can make a PR on the VSCode extension to use
this URL in order to keep it up-to-date.
  • Loading branch information
leoafarias authored Jul 26, 2024
1 parent 31a54ff commit 77f1ea9
Showing 1 changed file with 435 additions and 0 deletions.
Loading

0 comments on commit 77f1ea9

Please sign in to comment.