Skip to content

Commit

Permalink
refactor: Enforce all deps must be declared at root (#16741)
Browse files Browse the repository at this point in the history
* refactor: Enforce all deps must be declared at root

Signed-off-by: Xuanwo <[email protected]>

* Add docs

Signed-off-by: Xuanwo <[email protected]>

* sort deps

Signed-off-by: Xuanwo <[email protected]>

* Fix arrow

Signed-off-by: Xuanwo <[email protected]>

---------

Signed-off-by: Xuanwo <[email protected]>
  • Loading branch information
Xuanwo authored Oct 31, 2024
1 parent 41c4dbb commit 9c2c3dd
Show file tree
Hide file tree
Showing 53 changed files with 486 additions and 464 deletions.
57 changes: 57 additions & 0 deletions .config/workspace-schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {
"dependencies": {
"type": "object",
"additionalProperties": {
"type": "object",
"properties": {
"workspace": {
"type": "boolean",
"enum": [
true
]
}
},
"required": [
"workspace"
]
}
},
"dev-dependencies": {
"type": "object",
"additionalProperties": {
"type": "object",
"properties": {
"workspace": {
"type": "boolean",
"enum": [
true
]
}
},
"required": [
"workspace"
]
}
},
"build-dependencies": {
"type": "object",
"additionalProperties": {
"type": "object",
"properties": {
"workspace": {
"type": "boolean",
"enum": [
true
]
}
},
"required": [
"workspace"
]
}
}
}
}
4 changes: 3 additions & 1 deletion .github/actions/check/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@ runs:

- name: Check toml format
shell: bash
run: taplo fmt --check
run: |
taplo check
taplo fmt --check
- name: Audit dependencies
shell: bash
Expand Down
Loading

0 comments on commit 9c2c3dd

Please sign in to comment.