Merge pull request #14060 from afscrome/patch-3

Clarified Configuration definition docs
This commit is contained in:
Himanshu Mishra
2022-10-10 17:31:30 +05:30
committed by GitHub
+11
View File
@@ -23,6 +23,17 @@ Each package is searched for a schema at a single point of entry, a top-level
inlined JSON schema, or a relative path to a schema file. Supported schema file
formats are `.json` or `.d.ts`.
```jsonc title="package.json"
{
// ...
"files": [
// ...
"config.d.ts"
],
"configSchema": "config.d.ts"
}
```
> When defining a schema file, be sure to include the file in your
> `package.json` > `"files"` field as well!