@yydb/yyds-linux-x64 0.0.0-stage → 0.0.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/index.js ADDED
@@ -0,0 +1,14 @@
1
+ import { createRequire } from "node:module";
2
+ import { readdirSync } from "node:fs";
3
+ import { dirname, join } from "node:path";
4
+ import { fileURLToPath } from "node:url";
5
+
6
+ const require = createRequire(import.meta.url);
7
+ const libDir = join(dirname(fileURLToPath(import.meta.url)), "lib");
8
+ const nodeName = readdirSync(libDir).find((name) => name.endsWith(".node"));
9
+ if (!nodeName) {
10
+ throw new Error(`Missing .node binary in ${libDir}. Run pnpm build:napi from the repo root.`);
11
+ }
12
+
13
+ const binding = require(join(libDir, nodeName));
14
+ export default binding;
package/lib/.gitkeep ADDED
File without changes
package/package.json CHANGED
@@ -1,6 +1,31 @@
1
1
  {
2
+ "bugs": {
3
+ "url": "https://github.com/yy-database/yyds/issues"
4
+ },
5
+ "cpu": [
6
+ "x64"
7
+ ],
8
+ "description": "YYDS Node-API binary for Linux x64",
9
+ "files": [
10
+ "index.js",
11
+ "lib",
12
+ "readme.md"
13
+ ],
14
+ "homepage": "https://github.com/yy-database/yyds/tree/dev/projects/packages/yyds-linux-x64#readme",
15
+ "license": "MPL-2.0",
16
+ "main": "./index.js",
2
17
  "name": "@yydb/yyds-linux-x64",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
18
+ "os": [
19
+ "linux"
20
+ ],
21
+ "publishConfig": {
22
+ "access": "public"
23
+ },
24
+ "repository": {
25
+ "directory": "projects/packages/yyds-linux-x64",
26
+ "type": "git",
27
+ "url": "git+https://github.com/yy-database/yyds.git"
28
+ },
29
+ "type": "module",
30
+ "version": "0.0.0"
31
+ }
package/readme.md ADDED
@@ -0,0 +1,3 @@
1
+ # @yyds/yyds-linux-x64
2
+
3
+ Linux x64 Node-API binary for `@yyds/yyds`. Run `pnpm build:napi` from the repo root to populate `lib/`.
package/README.md DELETED
@@ -1,3 +0,0 @@
1
- # Temporary Holding Version
2
-
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.