mhx 2026.1.0
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.
- package/LICENSE +202 -0
- package/README.mbt.md +298 -0
- package/dist/index.js +9621 -0
- package/dist/mhx_ffi.js +962 -0
- package/npm/index.js +12 -0
- package/package.json +21 -0
package/npm/index.js
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as mhx from "../dist/index.js";
|
|
2
|
+
import { initMhxFfi } from "../dist/mhx_ffi.js";
|
|
3
|
+
|
|
4
|
+
initMhxFfi(mhx);
|
|
5
|
+
|
|
6
|
+
export const init_mhx = mhx.init_mhx;
|
|
7
|
+
export const process = mhx.process;
|
|
8
|
+
export const handle_event = mhx.handle_event;
|
|
9
|
+
export const get_instance = mhx.get_instance;
|
|
10
|
+
export const version = mhx.version;
|
|
11
|
+
|
|
12
|
+
export default mhx;
|
package/package.json
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "mhx",
|
|
3
|
+
"version": "2026.1.0",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"exports": "./npm/index.js",
|
|
6
|
+
"files": [
|
|
7
|
+
"dist",
|
|
8
|
+
"npm",
|
|
9
|
+
"LICENSE",
|
|
10
|
+
"README.mbt.md"
|
|
11
|
+
],
|
|
12
|
+
"license": "Apache-2.0",
|
|
13
|
+
"repository": {
|
|
14
|
+
"type": "git",
|
|
15
|
+
"url": "https://github.com/f4ah6o/mhx.mbt"
|
|
16
|
+
},
|
|
17
|
+
"scripts": {
|
|
18
|
+
"build:moon": "moon fmt && moon check && moon test && moon build --target js",
|
|
19
|
+
"build": "pnpm build:moon && mkdir -p dist && cp _build/js/release/build/main/main.js dist/index.js && cp src/ffi/mhx_ffi.js dist/mhx_ffi.js"
|
|
20
|
+
}
|
|
21
|
+
}
|