Skip to content

Commit 3c6f508

Browse files
committed
[2.x] chore(ts): map ext:flarum/realtime/* path in sticky and tags tsconfig
build-typings was failing because the new `extendRealtime.ts` files import from `ext:flarum/realtime/forum/extenders/Realtime`, but neither extension's tsconfig.json mapped that module specifier to realtime's dist-typings. Mirror the mapping that flarum-lock already has.
1 parent 8c3f2f8 commit 3c6f508

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

extensions/sticky/js/tsconfig.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,13 @@
44
// This will match all .ts, .tsx, .d.ts, .js, .jsx files in your `src` folder
55
// and also tells your Typescript server to read core's global typings for
66
// access to `dayjs` and `$` in the global namespace.
7-
"include": ["src/**/*", "../../../framework/core/js/dist-typings/@types/**/*", "@types/**/*"],
7+
"include": ["src/**/*", "../../../framework/core/js/dist-typings/@types/**/*", "@types/**/*", "../../realtime/js/dist-typings/@types/**/*"],
88
"compilerOptions": {
99
// This will output typings to `dist-typings`
1010
"declarationDir": "./dist-typings",
1111
"paths": {
12-
"flarum/*": ["../../../framework/core/js/dist-typings/*"]
12+
"flarum/*": ["../../../framework/core/js/dist-typings/*"],
13+
"ext:flarum/realtime/*": ["../../realtime/js/dist-typings/*"]
1314
}
1415
}
1516
}

extensions/tags/js/tsconfig.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,13 @@
44
// This will match all .ts, .tsx, .d.ts, .js, .jsx files in your `src` folder
55
// and also tells your Typescript server to read core's global typings for
66
// access to `dayjs` and `$` in the global namespace.
7-
"include": ["src/**/*", "../../../framework/core/js/dist-typings/@types/**/*", "@types/**/*"],
7+
"include": ["src/**/*", "../../../framework/core/js/dist-typings/@types/**/*", "@types/**/*", "../../realtime/js/dist-typings/@types/**/*"],
88
"compilerOptions": {
99
// This will output typings to `dist-typings`
1010
"declarationDir": "./dist-typings",
1111
"paths": {
12-
"flarum/*": ["../../../framework/core/js/dist-typings/*"]
12+
"flarum/*": ["../../../framework/core/js/dist-typings/*"],
13+
"ext:flarum/realtime/*": ["../../realtime/js/dist-typings/*"]
1314
}
1415
}
1516
}

0 commit comments

Comments
 (0)