diff --git a/package.json b/package.json index d76fc15..a9c2217 100644 --- a/package.json +++ b/package.json @@ -31,6 +31,7 @@ "prettier-plugin-import-sort": "^0.0.7", "prettier-plugin-organize-imports": "^2.3.4", "prettier-plugin-packagejson": "^2.2.18", + "reflect-metadata": "^0.1.13", "sortpack": "^2.2.0", "typedoc": "^0.21.6", "typedoc-plugin-sourcefile-url": "^1.0.6", diff --git a/src/interfaces/api/community.ts b/src/interfaces/api/community.ts index 606b979..e0c0fa8 100644 --- a/src/interfaces/api/community.ts +++ b/src/interfaces/api/community.ts @@ -1,5 +1,6 @@ import { Option, Some } from "@sniptt/monads"; import { Expose, Transform, Type } from "class-transformer"; +import "reflect-metadata"; import { toUndefined } from "../../utils"; import { ListingType, SortType } from "../others"; import { Site } from "../source"; diff --git a/src/interfaces/api/person.ts b/src/interfaces/api/person.ts index 531cbc5..a0892e5 100644 --- a/src/interfaces/api/person.ts +++ b/src/interfaces/api/person.ts @@ -1,5 +1,6 @@ import { Option, Some } from "@sniptt/monads"; import { Expose, Transform, Type } from "class-transformer"; +import "reflect-metadata"; import { toUndefined } from "../../utils"; import { SortType } from "../others"; import { diff --git a/src/interfaces/api/site.ts b/src/interfaces/api/site.ts index 68714df..cf1ebf0 100644 --- a/src/interfaces/api/site.ts +++ b/src/interfaces/api/site.ts @@ -1,5 +1,6 @@ import { Option, Some } from "@sniptt/monads"; import { Expose, Transform, Type } from "class-transformer"; +import "reflect-metadata"; import { toUndefined } from "../../utils"; import { ListingType, SearchType, SortType } from "../others"; import { diff --git a/src/interfaces/views.ts b/src/interfaces/views.ts index 5d64270..a41d66b 100644 --- a/src/interfaces/views.ts +++ b/src/interfaces/views.ts @@ -1,5 +1,6 @@ import { Option, Some } from "@sniptt/monads"; import { Expose, Transform, Type } from "class-transformer"; +import "reflect-metadata"; import { toUndefined } from "../utils"; import { CommentAggregates, diff --git a/yarn.lock b/yarn.lock index 33e64b9..f948357 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1716,6 +1716,11 @@ punycode@^2.1.0: resolved "https://registry.yarnpkg.com/punycode/-/punycode-2.1.1.tgz#b58b010ac40c22c5657616c8d2c2c02c7bf479ec" integrity sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A== +reflect-metadata@^0.1.13: + version "0.1.13" + resolved "https://registry.yarnpkg.com/reflect-metadata/-/reflect-metadata-0.1.13.tgz#67ae3ca57c972a2aa1642b10fe363fe32d49dc08" + integrity sha512-Ts1Y/anZELhSsjMcU605fU9RE4Oi3p5ORujwbIKXfWa+0Zxs510Qrmrce5/Jowq3cHSZSJqBjypxmHarc+vEWg== + regexpp@^3.2.0: version "3.2.0" resolved "https://registry.yarnpkg.com/regexpp/-/regexpp-3.2.0.tgz#0425a2768d8f23bad70ca4b90461fa2f1213e1b2"