Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions changes/namespace-entry-schema.docs.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- State in the `rescript.json` schema that `namespace-entry` requires `namespace`, as `rescript` rejects it otherwise.
14 changes: 12 additions & 2 deletions docs/docson/build-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@
},
"namespace-entry": {
"type": "string",
"description": "Name of the module that serves as the entry of a namespaced package. It is compiled without the namespace suffix, so other packages refer to it by its own name, and it opens the namespace to refer to the package's other modules. Only has an effect when `namespace` is enabled."
"description": "Name of the module that serves as the entry of a namespaced package. It is compiled without the namespace suffix, so other packages refer to it by its own name, and it opens the namespace to refer to the package's other modules. Requires `namespace`: `rescript` rejects a `namespace-entry` without a namespace."
},
"sources": {
"$ref": "#/definitions/sources",
Expand Down Expand Up @@ -562,5 +562,15 @@
}
},
"additionalProperties": false,
"required": ["name", "sources"]
"required": ["name", "sources"],
"dependencies": {
"namespace-entry": {
"required": ["namespace"],
"properties": {
"namespace": {
"not": { "enum": [false] }
}
}
}
}
}
Loading