diff --git a/app/assets/javascripts/admin/jsconfig.json b/app/assets/javascripts/admin/jsconfig.json new file mode 100644 index 00000000000..43b162f6acd --- /dev/null +++ b/app/assets/javascripts/admin/jsconfig.json @@ -0,0 +1,12 @@ +{ + "extends": "../../../../jsconfig.base.json", + "compilerOptions": { + "baseUrl": ".", + "paths": { + "admin/*": ["./addon/*"], + "discourse/*": ["../discourse/app/*"], + "discourse-common/*": ["../discourse-common/addon/*"], + "pretty-text/*": ["../pretty-text/addon/*"], + } + }, +} diff --git a/app/assets/javascripts/discourse-widget-hbs/jsconfig.json b/app/assets/javascripts/discourse-widget-hbs/jsconfig.json new file mode 100644 index 00000000000..eba0a588095 --- /dev/null +++ b/app/assets/javascripts/discourse-widget-hbs/jsconfig.json @@ -0,0 +1,11 @@ +{ + "extends": "../../../../jsconfig.base.json", + "compilerOptions": { + "baseUrl": ".", + "paths": { + "discourse-widget-hbs/*": ["./addon/*"], + "discourse/*": ["../discourse/app/*"], + "discourse-common/*": ["../discourse-common/addon/*"] + } + }, +} diff --git a/app/assets/javascripts/discourse/jsconfig.json b/app/assets/javascripts/discourse/jsconfig.json new file mode 100644 index 00000000000..b462fb9a559 --- /dev/null +++ b/app/assets/javascripts/discourse/jsconfig.json @@ -0,0 +1,13 @@ +{ + "extends": "../../../../jsconfig.base.json", + "compilerOptions": { + "baseUrl": ".", + "paths": { + "discourse/*": ["./app/*"], + "discourse-common/*": ["../discourse-common/addon/*"], + "pretty-text/*": ["../pretty-text/addon/*"], + "select-kit/*": ["../select-kit/addon/*"], + "wizard/*": ["../wizard/addon/*"], + } + }, +} diff --git a/app/assets/javascripts/pretty-text/jsconfig.json b/app/assets/javascripts/pretty-text/jsconfig.json new file mode 100644 index 00000000000..db42aeaaa54 --- /dev/null +++ b/app/assets/javascripts/pretty-text/jsconfig.json @@ -0,0 +1,11 @@ +{ + "extends": "../../../../jsconfig.base.json", + "compilerOptions": { + "baseUrl": ".", + "paths": { + "pretty-text/*": ["./addon/*"], + "discourse/*": ["../discourse/app/*"], + "discourse-common/*": ["../discourse-common/addon/*"] + } + }, +} diff --git a/app/assets/javascripts/select-kit/jsconfig.json b/app/assets/javascripts/select-kit/jsconfig.json new file mode 100644 index 00000000000..b21f46e2cbe --- /dev/null +++ b/app/assets/javascripts/select-kit/jsconfig.json @@ -0,0 +1,11 @@ +{ + "extends": "../../../../jsconfig.base.json", + "compilerOptions": { + "baseUrl": ".", + "paths": { + "select-kit/*": ["./addon/*"], + "discourse/*": ["../discourse/app/*"], + "discourse-common/*": ["../discourse-common/addon/*"], + } + }, +} diff --git a/app/assets/javascripts/wizard/jsconfig.json b/app/assets/javascripts/wizard/jsconfig.json new file mode 100644 index 00000000000..14f0542ff76 --- /dev/null +++ b/app/assets/javascripts/wizard/jsconfig.json @@ -0,0 +1,11 @@ +{ + "extends": "../../../../jsconfig.base.json", + "compilerOptions": { + "baseUrl": ".", + "paths": { + "wizard/*": ["./addon/*"], + "discourse/*": ["../discourse/app/*"], + "discourse-common/*": ["../discourse-common/addon/*"], + } + }, +} diff --git a/jsconfig.base.json b/jsconfig.base.json new file mode 100644 index 00000000000..45563fcbfe2 --- /dev/null +++ b/jsconfig.base.json @@ -0,0 +1,10 @@ +{ + "compilerOptions": { + "target": "es2020", + "module": "amd", + "experimentalDecorators": true, + }, + "exclude": [ + "**/node_modules" + ], +}