@yydb/yyds-linux-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/index.js +14 -14
- package/lib/index.linux-x64-gnu.node +0 -0
- package/package.json +17 -17
- package/readme.md +3 -3
package/index.js
CHANGED
|
@@ -1,14 +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;
|
|
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;
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
{
|
|
2
|
-
"
|
|
3
|
-
|
|
4
|
-
},
|
|
5
|
-
"cpu": [
|
|
6
|
-
"x64"
|
|
7
|
-
],
|
|
2
|
+
"name": "@yydb/yyds-linux-x64",
|
|
3
|
+
"version": "0.0.2",
|
|
8
4
|
"description": "YYDS Node-API binary for Linux x64",
|
|
5
|
+
"license": "MPL-2.0",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"main": "./index.js",
|
|
9
8
|
"files": [
|
|
10
9
|
"index.js",
|
|
11
10
|
"lib",
|
|
12
11
|
"readme.md"
|
|
13
12
|
],
|
|
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",
|
|
17
|
-
"name": "@yydb/yyds-linux-x64",
|
|
18
13
|
"os": [
|
|
19
14
|
"linux"
|
|
20
15
|
],
|
|
21
|
-
"
|
|
22
|
-
"
|
|
23
|
-
|
|
16
|
+
"cpu": [
|
|
17
|
+
"x64"
|
|
18
|
+
],
|
|
24
19
|
"repository": {
|
|
25
|
-
"directory": "projects/packages/yyds-linux-x64",
|
|
26
20
|
"type": "git",
|
|
27
|
-
"url": "git+https://github.com/yy-database/yyds.git"
|
|
21
|
+
"url": "git+https://github.com/yy-database/yyds.git",
|
|
22
|
+
"directory": "projects/packages/yyds-linux-x64"
|
|
28
23
|
},
|
|
29
|
-
"
|
|
30
|
-
"
|
|
24
|
+
"homepage": "https://github.com/yy-database/yyds/tree/dev/projects/packages/yyds-linux-x64#readme",
|
|
25
|
+
"bugs": {
|
|
26
|
+
"url": "https://github.com/yy-database/yyds/issues"
|
|
27
|
+
},
|
|
28
|
+
"publishConfig": {
|
|
29
|
+
"access": "public"
|
|
30
|
+
}
|
|
31
31
|
}
|
package/readme.md
CHANGED
|
@@ -1,3 +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/`.
|
|
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/`.
|