Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
fix(build): augmentations not being imported
Elian Doran3c505f3d3bb0
diff --git a/src/augmentation.ts b/src/augmentation.tsindex 0651763689..cc32187ec9 100644--- a/src/augmentation.ts+++ b/src/augmentation.ts@@ -1,6 +1,21 @@+import Math from './math';+import MathCommand from './mathcommand';+import MathEditing from './mathediting';+import MathUI from './mathui';import type { KatexOptions } from './typings-external';declare module '@ckeditor/ckeditor5-core' {++ interface PluginsMap {+ [ Math.pluginName ]: Math;+ [ MathEditing.pluginName ]: MathEditing;+ [ MathUI.pluginName ]: MathUI;+ }++ interface CommandsMap {+ math: MathCommand;+ }+interface EditorConfig {math?: {engine?:diff --git a/src/index.ts b/src/index.tsindex 433ed384f3..39dc1a626e 100644--- a/src/index.ts+++ b/src/index.ts@@ -4,3 +4,5 @@export { default as Math } from './math';export { default as AutoformatMath } from './autoformatmath';++import "./augmentation.js";