mirror of
https://github.com/flarum/framework.git
synced 2025-02-07 16:23:02 +08:00
0cb36b90c3
* Perform general repo maintenance - Bump deps - Add Prettier - Add `flarum-tsconfig` for typings support * Move webpack config to devDeps * Use organisation Prettier * Add setup for https://github.com/flarum/flarum-tsconfig/pull/2
17 lines
596 B
JSON
17 lines
596 B
JSON
{
|
|
// Use Flarum's tsconfig as a starting point
|
|
"extends": "flarum-tsconfig",
|
|
// 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/flarum/core/js/dist-typings/@types/**/*"],
|
|
"compilerOptions": {
|
|
// This will output typings to `dist-typings`
|
|
"declarationDir": "./dist-typings",
|
|
"baseUrl": ".",
|
|
"paths": {
|
|
"flarum/*": ["../vendor/flarum/core/js/dist-typings/*"]
|
|
}
|
|
}
|
|
}
|