2022-01-05 07:31:47 +08:00
|
|
|
{
|
2022-01-05 07:27:04 +08:00
|
|
|
// Use Flarum's tsconfig as a starting point
|
2022-01-05 07:31:47 +08:00
|
|
|
"extends": "flarum-tsconfig",
|
2022-01-05 07:27:04 +08:00
|
|
|
// This will match all .ts, .tsx, .d.ts, .js, .jsx files in your `src` folder
|
|
|
|
// and also tells your Typescript server to read core's global typings for
|
|
|
|
// access to `dayjs` and `$` in the global namespace.
|
2022-07-19 17:30:23 +08:00
|
|
|
"include": ["src/**/*", "../vendor/*/*/js/dist-typings/@types/**/*", "@types/**/*"],
|
2022-01-05 07:31:47 +08:00
|
|
|
"compilerOptions": {
|
2022-01-05 07:27:04 +08:00
|
|
|
// This will output typings to `dist-typings`
|
2022-01-05 07:31:47 +08:00
|
|
|
"declarationDir": "./dist-typings",
|
|
|
|
"baseUrl": ".",
|
|
|
|
"paths": {
|
2022-07-19 17:30:23 +08:00
|
|
|
"flarum/*": ["../vendor/flarum/core/js/dist-typings/*"],
|
|
|
|
"flarum/flags/*": ["../vendor/flarum/flags/js/dist-typings/*"]
|
2022-01-05 07:31:47 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|