allow to define bundled extensions via appStart

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
This commit is contained in:
Jari Kolehmainen committed 2022-12-16 14:11:53 +02:00
1 parent f2cecbbcae
commit 3ed6cc3972
12 files changed
+95 -27

No files matched your search

+2
View File
@@ -3,7 +3,9 @@
* Licensed under MIT License. See LICENSE in root directory for more information.
*/
import applicationInformationToken from "./vars/application-information-token.injectable";
import type { ApplicationInformation } from "./vars/application-information-token.injectable";
export {
applicationInformationToken,
ApplicationInformation,
};
@@ -6,8 +6,9 @@
import { getInjectionToken } from "@ogre-tools/injectable";
import type packageJson from "../../../package.json";
export type ApplicationInformation = Pick<typeof packageJson, "version" | "config" | "productName" | "copyright" | "description" | "name"> & {
export type ApplicationInformation = Pick<typeof packageJson, "version" | "productName" | "copyright" | "description" | "name"> & {
build: Partial<typeof packageJson["build"]> & { publish?: unknown[] };
config: typeof packageJson["config"] & { extensions?: string[] };
};
const applicationInformationToken = getInjectionToken<ApplicationInformation>({