Skip to content

Commit ca0172f

Browse files
authored
fix(tsconfig,jsconfig): update paths items description to remove baseUrl reference (SchemaStore#5593)
* fix: update paths items description to remove baseUrl reference in tsconfig.json * fix: update paths items description to remove baseUrl reference in jsconfig.json
1 parent 0983890 commit ca0172f

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/schemas/json/jsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -742,7 +742,7 @@
742742
"uniqueItems": true,
743743
"items": {
744744
"type": "string",
745-
"description": "Path mapping to be computed relative to baseUrl option."
745+
"description": "An array of paths to use as alternatives when resolving this module import."
746746
}
747747
},
748748
"markdownDescription": "Specify a set of entries that re-map imports to additional lookup locations.\n\nSee more: https://www.typescriptlang.org/tsconfig#paths"

src/schemas/json/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -833,7 +833,7 @@
833833
"uniqueItems": true,
834834
"items": {
835835
"type": "string",
836-
"description": "Path mapping to be computed relative to baseUrl option."
836+
"description": "An array of paths to use as alternatives when resolving this module import."
837837
}
838838
},
839839
"markdownDescription": "A series of entries which re-map imports to lookup locations relative to the [`baseUrl`](https://typescriptlang.org/tsconfig/#baseUrl) if set, or to the tsconfig file itself otherwise. There is a larger coverage of `paths` in [the `moduleResolution` reference page](https://typescriptlang.org/docs/handbook/modules/reference.html#paths).\n\n`paths` lets you declare how TypeScript should resolve an import in your `require`/`import`s.\n\n```json tsconfig\n{\n \"compilerOptions\": {\n \"paths\": {\n \"jquery\": [\"./vendor/jquery/dist/jquery\"]\n }\n }\n}\n```\n\nThis would allow you to be able to write `import \"jquery\"`, and get all of the correct typing locally.\n\n```json tsconfig\n{\n \"compilerOptions\": {\n \"paths\": {\n \"app/*\": [\"./src/app/*\"],\n \"config/*\": [\"./src/app/_config/*\"],\n \"environment/*\": [\"./src/environments/*\"],\n \"shared/*\": [\"./src/app/_shared/*\"],\n \"helpers/*\": [\"./src/helpers/*\"],\n \"tests/*\": [\"./src/tests/*\"]\n }\n }\n}\n```\n\nIn this case, you can tell the TypeScript file resolver to support a number of custom prefixes to find code.\n\nNote that this feature does not change how import paths are emitted by `tsc`, so `paths` should only be used to inform TypeScript that another tool has this mapping and will use it at runtime or when bundling.",

0 commit comments

Comments
 (0)