1
0
mirror of https://github.com/flarum/core.git synced 2025-07-25 10:41:24 +02:00

chore: monorepo local development improvements (#3523)

* chore: centralize editorconfig
* chore: tweak tsconfigs for local development
* revert src path change
* fix: akismet type checking requires flag ext `@types`
* fix: make tags route optional to avoid typescript typing error
This commit is contained in:
Sami Mazouz
2022-07-18 15:19:11 +01:00
committed by GitHub
parent ac23d79fe7
commit 4e52f0e420
27 changed files with 20 additions and 378 deletions

View File

@@ -4,14 +4,14 @@
// 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.
"include": ["src/**/*", "../vendor/*/*/js/dist-typings/@types/**/*", "@types/**/*"],
"include": ["src/**/*", "../../../framework/core/js/src/**/*", "@types/**/*"],
"compilerOptions": {
// This will output typings to `dist-typings`
"declarationDir": "./dist-typings",
"baseUrl": ".",
"paths": {
"flarum/*": ["../vendor/flarum/core/js/dist-typings/*"],
"flarum/tags/*": ["../vendor/flarum/tags/js/dist-typings/*"]
"flarum/*": ["../../../framework/core/js/src/*"],
"flarum/tags/*": ["../../tags/js/src/*"]
}
}
}