@teachinglab/omd 0.4.4 → 0.4.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.js +13 -2
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -11,10 +11,21 @@
11
11
  * const { omdTable } = await import('@teachinglab/omd')
12
12
  */
13
13
 
14
- // Export everything from the core OMD library (equations, nodes, display, etc.)
14
+ // Force side-effect imports in dependency order to ensure proper class inheritance
15
+ import './omd/nodes/omdNode.js';
16
+ import './omd/nodes/omdLeafNode.js';
17
+ import './omd/nodes/omdOperatorNode.js';
18
+ import './omd/nodes/omdConstantNode.js';
19
+ import './omd/nodes/omdVariableNode.js';
20
+
21
+ // Import everything to ensure proper loading order
22
+ import * as omdCore from './omd/core/index.js';
23
+ import * as omdCanvas from './canvas/index.js';
24
+ import * as omdVisualizations from './src/index.js';
25
+
26
+ // Re-export everything
15
27
  export * from './omd/core/index.js';
16
28
  export * from './canvas/index.js';
17
- // Export everything from the visualization components
18
29
  export * from './src/index.js';
19
30
 
20
31
  // Explicitly export canvas components to ensure proper resolution
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teachinglab/omd",
3
- "version": "0.4.4",
3
+ "version": "0.4.6",
4
4
  "description": "omd",
5
5
  "main": "./index.js",
6
6
  "module": "./index.js",