@nyar/nyar-win32-x64 0.0.0 → 0.0.2

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/README.md ADDED
@@ -0,0 +1,18 @@
1
+ # @nyar/nyar-win32-x64
2
+
3
+ Prebuilt **native host sidecar** for Nyar VM on Windows x64. **Not a public import target.**
4
+
5
+ This package is pulled automatically when installing `@nyar/nyar` on a matching host.
6
+
7
+ ## Example
8
+
9
+ Application code imports the main package only:
10
+
11
+ ```typescript
12
+ import { createNyarHost } from "@nyar/nyar";
13
+
14
+ const host = await createNyarHost();
15
+ await host.runBytecode(bytes);
16
+ ```
17
+
18
+ Build and publish pipelines are documented for maintainers in the repository; they are not repeated here.
package/index.mjs ADDED
@@ -0,0 +1,7 @@
1
+ import { createRequire } from 'node:module';
2
+ import { dirname, join } from 'node:path';
3
+ import { fileURLToPath } from 'node:url';
4
+
5
+ const require = createRequire(import.meta.url);
6
+ const binding = require(join(dirname(fileURLToPath(import.meta.url)), 'lib', 'nyar.win32-x64-msvc.node'));
7
+ export default binding;
Binary file
package/package.json CHANGED
@@ -1,7 +1,8 @@
1
1
  {
2
2
  "name": "@nyar/nyar-win32-x64",
3
- "version": "0.0.0",
4
- "description": "Nyar native collect �?Windows x64 (Node-API host)",
3
+ "version": "0.0.2",
4
+ "description": "Nyar native collect — Windows x64 (Node-API host)",
5
+ "type": "module",
5
6
  "license": "MIT",
6
7
  "os": [
7
8
  "win32"
@@ -9,8 +10,14 @@
9
10
  "cpu": [
10
11
  "x64"
11
12
  ],
13
+ "main": "./index.mjs",
14
+ "exports": {
15
+ ".": "./index.mjs",
16
+ "./package.json": "./package.json"
17
+ },
12
18
  "files": [
13
- "nyar_napi.dll",
19
+ "index.mjs",
20
+ "lib",
14
21
  "readme.md",
15
22
  "README.md"
16
23
  ],
@@ -33,4 +40,4 @@
33
40
  "publishConfig": {
34
41
  "access": "public"
35
42
  }
36
- }
43
+ }
package/readme.md CHANGED
@@ -1,18 +1,18 @@
1
- # @nyar/nyar-win32-x64
2
-
3
- Prebuilt **native host sidecar** for Nyar VM on Windows x64. **Not a public import target.**
4
-
5
- This package is pulled automatically when installing `@nyar/nyar` on a matching host.
6
-
7
- ## Example
8
-
9
- Application code imports the main package only:
10
-
11
- ```typescript
12
- import { createNyarHost } from "@nyar/nyar";
13
-
14
- const host = await createNyarHost();
15
- await host.runBytecode(bytes);
16
- ```
17
-
18
- Build and publish pipelines are documented for maintainers in the repository; they are not repeated here.
1
+ # @nyar/nyar-win32-x64
2
+
3
+ Prebuilt **native host sidecar** for Nyar VM on Windows x64. **Not a public import target.**
4
+
5
+ This package is pulled automatically when installing `@nyar/nyar` on a matching host.
6
+
7
+ ## Example
8
+
9
+ Application code imports the main package only:
10
+
11
+ ```typescript
12
+ import { createNyarHost } from "@nyar/nyar";
13
+
14
+ const host = await createNyarHost();
15
+ await host.runBytecode(bytes);
16
+ ```
17
+
18
+ Build and publish pipelines are documented for maintainers in the repository; they are not repeated here.
package/nyar_napi.dll DELETED
Binary file