mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 01:16:38 -06:00
93c67eeb4f
These updates significantly improve IDE tooling for imports across the Discourse core codebase, and also for framework packages. The `@types/ember-*` packages are a temporary solution until we get onto Ember 5, which ships its types in the main package. The previous approach of having jsconfig files in each package directory did work, but once you start adding all the possible interlinks between them, we hit the file count limit of VSCode's tooling (because it counts every file for every jsconfig its referenced in). Having one file at the root means that a single file can apply to all core packages and plugins. Long-term, to get the same functionality for all themes/plugins, we may need to look at building/publishing a Discourse types package which can be added to theme/plugin package.json files for development purposes.
108 lines
3.9 KiB
JSON
108 lines
3.9 KiB
JSON
// This file was generated by scripts/build_jsconfig.rb
|
|
{
|
|
"compilerOptions": {
|
|
"target": "es2021",
|
|
"module": "esnext",
|
|
"moduleResolution": "bundler",
|
|
"experimentalDecorators": true,
|
|
"paths": {
|
|
"discourse/*": [
|
|
"./app/assets/javascripts/discourse/app/*"
|
|
],
|
|
"discourse/tests/*": [
|
|
"./app/assets/javascripts/discourse/tests/*"
|
|
],
|
|
"discourse-common/*": [
|
|
"./app/assets/javascripts/discourse-common/addon/*"
|
|
],
|
|
"admin/*": [
|
|
"./app/assets/javascripts/admin/addon/*"
|
|
],
|
|
"wizard/*": [
|
|
"./app/assets/javascripts/wizard/addon/*"
|
|
],
|
|
"pretty-text/*": [
|
|
"./app/assets/javascripts/pretty-text/addon/*"
|
|
],
|
|
"select-kit/*": [
|
|
"./app/assets/javascripts/select-kit/addon/*"
|
|
],
|
|
"float-kit/*": [
|
|
"./app/assets/javascripts/float-kit/addon/*"
|
|
],
|
|
"truth-helpers/*": [
|
|
"./app/assets/javascripts/truth-helpers/addon/*"
|
|
],
|
|
"dialog-holder/*": [
|
|
"./app/assets/javascripts/dialog-holder/addon/*"
|
|
],
|
|
"discourse/plugins/chat/*": [
|
|
"./plugins/chat/assets/javascripts/*",
|
|
"./plugins/chat/test/javascripts/*"
|
|
],
|
|
"discourse/plugins/checklist/*": [
|
|
"./plugins/checklist/assets/javascripts/*",
|
|
"./plugins/checklist/test/javascripts/*"
|
|
],
|
|
"discourse/plugins/discourse-details/*": [
|
|
"./plugins/discourse-details/assets/javascripts/*",
|
|
"./plugins/discourse-details/test/javascripts/*"
|
|
],
|
|
"discourse/plugins/discourse-lazy-videos/*": [
|
|
"./plugins/discourse-lazy-videos/assets/javascripts/*",
|
|
"./plugins/discourse-lazy-videos/test/javascripts/*"
|
|
],
|
|
"discourse/plugins/discourse-local-dates/*": [
|
|
"./plugins/discourse-local-dates/assets/javascripts/*",
|
|
"./plugins/discourse-local-dates/test/javascripts/*"
|
|
],
|
|
"discourse/plugins/discourse-narrative-bot/*": [
|
|
"./plugins/discourse-narrative-bot/assets/javascripts/*",
|
|
"./plugins/discourse-narrative-bot/test/javascripts/*"
|
|
],
|
|
"discourse/plugins/discourse-presence/*": [
|
|
"./plugins/discourse-presence/assets/javascripts/*",
|
|
"./plugins/discourse-presence/test/javascripts/*"
|
|
],
|
|
"discourse/plugins/poll/*": [
|
|
"./plugins/poll/assets/javascripts/*",
|
|
"./plugins/poll/test/javascripts/*"
|
|
],
|
|
"discourse/plugins/styleguide/*": [
|
|
"./plugins/styleguide/assets/javascripts/*",
|
|
"./plugins/styleguide/test/javascripts/*"
|
|
]
|
|
}
|
|
},
|
|
"include": [
|
|
"./app/assets/javascripts/discourse/app",
|
|
"./app/assets/javascripts/discourse/tests",
|
|
"./app/assets/javascripts/discourse-common/addon",
|
|
"./app/assets/javascripts/admin/addon",
|
|
"./app/assets/javascripts/wizard/addon",
|
|
"./app/assets/javascripts/pretty-text/addon",
|
|
"./app/assets/javascripts/select-kit/addon",
|
|
"./app/assets/javascripts/float-kit/addon",
|
|
"./app/assets/javascripts/truth-helpers/addon",
|
|
"./app/assets/javascripts/dialog-holder/addon",
|
|
"./plugins/chat/assets/javascripts",
|
|
"./plugins/chat/test/javascripts",
|
|
"./plugins/checklist/assets/javascripts",
|
|
"./plugins/checklist/test/javascripts",
|
|
"./plugins/discourse-details/assets/javascripts",
|
|
"./plugins/discourse-details/test/javascripts",
|
|
"./plugins/discourse-lazy-videos/assets/javascripts",
|
|
"./plugins/discourse-lazy-videos/test/javascripts",
|
|
"./plugins/discourse-local-dates/assets/javascripts",
|
|
"./plugins/discourse-local-dates/test/javascripts",
|
|
"./plugins/discourse-narrative-bot/assets/javascripts",
|
|
"./plugins/discourse-narrative-bot/test/javascripts",
|
|
"./plugins/discourse-presence/assets/javascripts",
|
|
"./plugins/discourse-presence/test/javascripts",
|
|
"./plugins/poll/assets/javascripts",
|
|
"./plugins/poll/test/javascripts",
|
|
"./plugins/styleguide/assets/javascripts",
|
|
"./plugins/styleguide/test/javascripts"
|
|
]
|
|
}
|