mirror of
https://github.com/zed-industries/zed.git
synced 2024-12-29 11:22:27 +03:00
Bump JSON schemas: package.json, tsconfig.json (#20910)
Add script/update-json-schemas
Updated JSON schemas to
[SchemaStore/schemastore@569a343](569a343137
)
(2024-11-19)
This commit is contained in:
parent
7e67753d51
commit
8c342ef706
@ -139,7 +139,7 @@
|
||||
}
|
||||
},
|
||||
"patternProperties": {
|
||||
"^(?![\\.0-9]).": {
|
||||
"^[^.0-9]+$": {
|
||||
"$ref": "#/definitions/packageExportsEntryOrFallback",
|
||||
"description": "The module path that is resolved when this environment matches the property name."
|
||||
}
|
||||
@ -616,7 +616,7 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"bundledDependencies": {
|
||||
"bundleDependencies": {
|
||||
"description": "Array of package names that will be bundled when publishing the package.",
|
||||
"oneOf": [
|
||||
{
|
||||
@ -630,8 +630,8 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"bundleDependencies": {
|
||||
"description": "DEPRECATED: This field is honored, but \"bundledDependencies\" is the correct field name.",
|
||||
"bundledDependencies": {
|
||||
"description": "DEPRECATED: This field is honored, but \"bundleDependencies\" is the correct field name.",
|
||||
"oneOf": [
|
||||
{
|
||||
"type": "array",
|
||||
@ -734,6 +734,9 @@
|
||||
"registry": {
|
||||
"type": "string",
|
||||
"format": "uri"
|
||||
},
|
||||
"provenance": {
|
||||
"type": "boolean"
|
||||
}
|
||||
},
|
||||
"additionalProperties": true
|
||||
|
@ -232,7 +232,7 @@
|
||||
"$comment": "The value of 'null' is UNDOCUMENTED (https://github.com/microsoft/TypeScript/pull/18058).",
|
||||
"description": "Enable importing files with any extension, provided a declaration file is present.",
|
||||
"type": ["boolean", "null"],
|
||||
"markdownDescription": "Enable importing files with any extension, provided a declaration file is present.\n\nSee more: https://www.typescriptlang.org/tsconfig#allowImportingTsExtensions"
|
||||
"markdownDescription": "Enable importing files with any extension, provided a declaration file is present.\n\nSee more: https://www.typescriptlang.org/tsconfig#allowArbitraryExtensions"
|
||||
},
|
||||
"allowImportingTsExtensions": {
|
||||
"$comment": "The value of 'null' is UNDOCUMENTED (https://github.com/microsoft/TypeScript/pull/18058).",
|
||||
@ -426,17 +426,17 @@
|
||||
"anyOf": [
|
||||
{
|
||||
"enum": [
|
||||
"Classic",
|
||||
"Node",
|
||||
"Node10",
|
||||
"Node16",
|
||||
"NodeNext",
|
||||
"Bundler"
|
||||
"classic",
|
||||
"node",
|
||||
"node10",
|
||||
"node16",
|
||||
"nodenext",
|
||||
"bundler"
|
||||
],
|
||||
"markdownEnumDescriptions": [
|
||||
"It’s recommended to use `\"Node16\"` instead",
|
||||
"Deprecated, use `\"Node10\"` in TypeScript 5.0+ instead",
|
||||
"It’s recommended to use `\"Node16\"` instead",
|
||||
"It’s recommended to use `\"node16\"` instead",
|
||||
"Deprecated, use `\"node10\"` in TypeScript 5.0+ instead",
|
||||
"It’s recommended to use `\"node16\"` instead",
|
||||
"This is the recommended setting for libraries and Node.js applications",
|
||||
"This is the recommended setting for libraries and Node.js applications",
|
||||
"This is the recommended setting in TypeScript 5.0+ for applications that use a bundler"
|
||||
@ -497,10 +497,10 @@
|
||||
},
|
||||
"noUnusedLocals": {
|
||||
"$comment": "The value of 'null' is UNDOCUMENTED (https://github.com/microsoft/TypeScript/pull/18058).",
|
||||
"description": "Enable error reporting when a local variables aren't read.",
|
||||
"description": "Enable error reporting when a local variable isn't read.",
|
||||
"type": ["boolean", "null"],
|
||||
"default": false,
|
||||
"markdownDescription": "Enable error reporting when a local variables aren't read.\n\nSee more: https://www.typescriptlang.org/tsconfig#noUnusedLocals"
|
||||
"markdownDescription": "Enable error reporting when a local variable isn't read.\n\nSee more: https://www.typescriptlang.org/tsconfig#noUnusedLocals"
|
||||
},
|
||||
"noUnusedParameters": {
|
||||
"$comment": "The value of 'null' is UNDOCUMENTED (https://github.com/microsoft/TypeScript/pull/18058).",
|
||||
@ -949,14 +949,19 @@
|
||||
"ESNext.Array",
|
||||
"ESNext.AsyncIterable",
|
||||
"ESNext.BigInt",
|
||||
"ESNext.Collection",
|
||||
"ESNext.Intl",
|
||||
"ESNext.Object",
|
||||
"ESNext.Promise",
|
||||
"ESNext.Regexp",
|
||||
"ESNext.String",
|
||||
"ESNext.Symbol",
|
||||
"DOM",
|
||||
"DOM.AsyncIterable",
|
||||
"DOM.Iterable",
|
||||
"ScriptHost",
|
||||
"WebWorker",
|
||||
"WebWorker.AsyncIterable",
|
||||
"WebWorker.ImportScripts",
|
||||
"Webworker.Iterable",
|
||||
"ES7",
|
||||
@ -1022,13 +1027,13 @@
|
||||
"pattern": "^[Ee][Ss][Nn][Ee][Xx][Tt](\\.([Aa][Rr][Rr][Aa][Yy]|[Aa][Ss][Yy][Nn][Cc][Ii][Tt][Ee][Rr][Aa][Bb][Ll][Ee]|[Bb][Ii][Gg][Ii][Nn][Tt]|[Ii][Nn][Tt][Ll]|[Pp][Rr][Oo][Mm][Ii][Ss][Ee]|[Ss][Tt][Rr][Ii][Nn][Gg]|[Ss][Yy][Mm][Bb][Oo][Ll]|[Ww][Ee][Aa][Kk][Rr][Ee][Ff]|[Dd][Ee][Cc][Oo][Rr][Aa][Tt][Oo][Rr][Ss]|[Dd][Ii][Ss][Pp][Oo][Ss][Aa][Bb][Ll][Ee]))?$"
|
||||
},
|
||||
{
|
||||
"pattern": "^[Dd][Oo][Mm](\\.[Ii][Tt][Ee][Rr][Aa][Bb][Ll][Ee])?$"
|
||||
"pattern": "^[Dd][Oo][Mm](\\.([Aa][Ss][Yy][Nn][Cc])?[Ii][Tt][Ee][Rr][Aa][Bb][Ll][Ee])?$"
|
||||
},
|
||||
{
|
||||
"pattern": "^[Ss][Cc][Rr][Ii][Pp][Tt][Hh][Oo][Ss][Tt]$"
|
||||
},
|
||||
{
|
||||
"pattern": "^[Ww][Ee][Bb][Ww][Oo][Rr][Kk][Ee][Rr](\\.([Ii][Mm][Pp][Oo][Rr][Tt][Ss][Cc][Rr][Ii][Pp][Tt][Ss]|[Ii][Tt][Ee][Rr][Aa][Bb][Ll][Ee]))?$"
|
||||
"pattern": "^[Ww][Ee][Bb][Ww][Oo][Rr][Kk][Ee][Rr](\\.([Ii][Mm][Pp][Oo][Rr][Tt][Ss][Cc][Rr][Ii][Pp][Tt][Ss]|([Aa][Ss][Yy][Nn][Cc])?[Ii][Tt][Ee][Rr][Aa][Bb][Ll][Ee]))?$"
|
||||
},
|
||||
{
|
||||
"pattern": "^[Dd][Ee][Cc][Oo][Rr][Aa][Tt][Oo][Rr][Ss](\\.([Ll][Ee][Gg][Aa][Cc][Yy]))?$"
|
||||
@ -1203,6 +1208,34 @@
|
||||
"description": "Do not transform or elide any imports or exports not marked as type-only, ensuring they are written in the output file's format based on the 'module' setting.",
|
||||
"type": ["boolean", "null"],
|
||||
"markdownDescription": "Do not transform or elide any imports or exports not marked as type-only, ensuring they are written in the output file's format based on the 'module' setting.\n\nSee more: https://www.typescriptlang.org/tsconfig#verbatimModuleSyntax"
|
||||
},
|
||||
"noCheck": {
|
||||
"$comment": "The value of 'null' is UNDOCUMENTED (https://github.com/microsoft/TypeScript/pull/18058).",
|
||||
"description": "Disable full type checking (only critical parse and emit errors will be reported)",
|
||||
"type": ["boolean", "null"],
|
||||
"default": false,
|
||||
"markdownDescription": "Disable full type checking (only critical parse and emit errors will be reported)\n\nSee more: https://www.typescriptlang.org/tsconfig#noCheck"
|
||||
},
|
||||
"isolatedDeclarations": {
|
||||
"$comment": "The value of 'null' is UNDOCUMENTED (https://github.com/microsoft/TypeScript/pull/18058).",
|
||||
"description": "Require sufficient annotation on exports so other tools can trivially generate declaration files.",
|
||||
"type": ["boolean", "null"],
|
||||
"default": false,
|
||||
"markdownDescription": "Require sufficient annotation on exports so other tools can trivially generate declaration files.\n\nSee more: https://www.typescriptlang.org/tsconfig#isolatedDeclarations"
|
||||
},
|
||||
"noUncheckedSideEffectImports": {
|
||||
"$comment": "The value of 'null' is UNDOCUMENTED (https://github.com/microsoft/TypeScript/pull/18058).",
|
||||
"description": "Check side effect imports.",
|
||||
"type": ["boolean", "null"],
|
||||
"default": false,
|
||||
"markdownDescription": "Check side effect imports.\n\nSee more: https://www.typescriptlang.org/tsconfig#noUncheckedSideEffectImports"
|
||||
},
|
||||
"strictBuiltinIteratorReturn": {
|
||||
"$comment": "The value of 'null' is UNDOCUMENTED (https://github.com/microsoft/TypeScript/pull/18058).",
|
||||
"description": "Built-in iterators are instantiated with a 'TReturn' type of 'undefined' instead of 'any'.",
|
||||
"type": ["boolean", "null"],
|
||||
"default": false,
|
||||
"markdownDescription": "Built-in iterators are instantiated with a 'TReturn' type of 'undefined' instead of 'any'.\n\nSee more: https://www.typescriptlang.org/tsconfig#strictBuiltinIteratorReturn"
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -1423,4 +1456,3 @@
|
||||
"title": "JSON schema for the TypeScript compiler's configuration file",
|
||||
"type": "object"
|
||||
}
|
||||
|
||||
|
25
script/update-json-schemas
Executable file
25
script/update-json-schemas
Executable file
@ -0,0 +1,25 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
cd "$(dirname "$0")/.." || exit 1
|
||||
cd crates/languages/src/json/schemas
|
||||
files=(
|
||||
"tsconfig.json"
|
||||
"package.json"
|
||||
)
|
||||
for file in "${files[@]}"; do
|
||||
curl -sL -o "$file" "https://raw.githubusercontent.com/SchemaStore/schemastore/master/src/schemas/json/$file"
|
||||
done
|
||||
|
||||
HASH="$(curl -s 'https://api.github.com/repos/SchemaStore/schemastore/commits/HEAD' | jq -r '.sha')"
|
||||
SHORT_HASH="${HASH:0:7}"
|
||||
DATE="$(curl -s 'https://api.github.com/repos/SchemaStore/schemastore/commits/HEAD' |jq -r .commit.author.date | cut -c1-10)"
|
||||
echo
|
||||
echo "Updated JSON schemas to [SchemaStore/schemastore@$SHORT_HASH](https://github.com/SchemaStore/schemastore/tree/$HASH) ($DATE)"
|
||||
echo
|
||||
for file in "${files[@]}"; do
|
||||
echo "- [$file](https://github.com/SchemaStore/schemastore/commits/master/src/schemas/json/$file)" \
|
||||
"@ [$SHORT_HASH](https://raw.githubusercontent.com/SchemaStore/schemastore/$HASH/src/schemas/json/$file)"
|
||||
done
|
||||
echo
|
Loading…
Reference in New Issue
Block a user