@yydb/yydb-darwin-x64 0.0.1 → 0.0.3

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 CHANGED
@@ -1,3 +1,30 @@
1
1
  # `@yydb/yydb-darwin-x64`
2
2
 
3
- Prebuilt `yydb` binary. Filled by CI before publish.
3
+ **The YYDB native binding for Intel Macs.**
4
+
5
+ This package is selected automatically when you install
6
+ [`@yydb/yydb`](https://www.npmjs.com/package/@yydb/yydb) on `darwin/x64`. Most applications should install the parent
7
+ package rather than depend on this platform package directly.
8
+
9
+ ```bash
10
+ npm install @yydb/yydb
11
+ ```
12
+
13
+ The TypeScript `yydb` CLI ships from `@yydb/yydb` and loads this `.node` binding:
14
+
15
+ ```text
16
+ npx yydb --help
17
+ npx yydb serve app.yydb --bind 127.0.0.1:7700
18
+ ```
19
+
20
+ | Field | Value |
21
+ |-------------|-----------------------------|
22
+ | npm package | `@yydb/yydb-darwin-x64` |
23
+ | Platform | macOS, Intel (`darwin/x64`) |
24
+ | Binding | `lib/yydb-darwin-x64.node` |
25
+
26
+ For Apple Silicon Macs, use [`@yydb/yydb-darwin-arm64`](https://www.npmjs.com/package/@yydb/yydb-darwin-arm64).
27
+
28
+ [YYDB overview](https://github.com/yy-database/yydb.rs) ·
29
+ [`@yydb/yydb`](https://www.npmjs.com/package/@yydb/yydb) ·
30
+ [License](https://github.com/yy-database/yydb.rs/blob/dev/License.md)
package/index.js ADDED
@@ -0,0 +1,4 @@
1
+ import { createRequire } from 'node:module';
2
+
3
+ const require = createRequire(import.meta.url);
4
+ export default require('./lib/yydb-darwin-x64.node');
Binary file
package/package.json CHANGED
@@ -1,29 +1,32 @@
1
1
  {
2
2
  "name": "@yydb/yydb-darwin-x64",
3
- "version": "0.0.1",
4
- "description": "Prebuilt yydb engine binary for darwin-x64 (optionalDependency of @yydb/yydb)",
5
- "license": "MIT",
3
+ "version": "0.0.3",
4
+ "description": "YYDB native binding for Intel macOS; installed automatically by @yydb/yydb",
5
+ "license": "MPL-2.0",
6
+ "type": "module",
7
+ "main": "./index.js",
8
+ "exports": {
9
+ ".": "./index.js"
10
+ },
6
11
  "os": [
7
12
  "darwin"
8
13
  ],
9
14
  "cpu": [
10
15
  "x64"
11
16
  ],
12
- "bin": {
13
- "yydb": "yydb"
14
- },
15
17
  "files": [
16
- "yydb",
18
+ "index.js",
19
+ "lib",
17
20
  "README.md"
18
21
  ],
19
22
  "repository": {
20
23
  "type": "git",
21
- "url": "git+https://github.com/yy-database/yydb.rs.git",
22
- "directory": "frontends/yydb-darwin-x64"
24
+ "url": "git+https://github.com/yy-database/yydb.git",
25
+ "directory": "projects/packages/yydb-darwin-x64"
23
26
  },
24
- "homepage": "https://github.com/yy-database/yydb.rs/tree/dev/frontends/yydb-darwin-x64#readme",
27
+ "homepage": "https://github.com/yy-database/yydb/tree/dev/projects/packages/yydb-darwin-x64#readme",
25
28
  "bugs": {
26
- "url": "https://github.com/yy-database/yydb.rs/issues"
29
+ "url": "https://github.com/yy-database/yydb/issues"
27
30
  },
28
31
  "publishConfig": {
29
32
  "access": "public"
package/yydb DELETED
Binary file