@ray-db/core 0.1.7 → 0.2.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.
Files changed (1) hide show
  1. package/package.json +31 -11
package/package.json CHANGED
@@ -1,10 +1,23 @@
1
1
  {
2
2
  "name": "@ray-db/core",
3
- "version": "0.1.7",
3
+ "version": "0.2.0",
4
4
  "description": "RayDB - A fast, lightweight, embedded graph database for Node.js",
5
5
  "author": "mask <mask@mask.dev>",
6
6
  "homepage": "https://github.com/maskdotdev/ray",
7
- "main": "index.js",
7
+ "main": "dist/index.js",
8
+ "module": "dist/index.js",
9
+ "types": "dist/index.d.ts",
10
+ "exports": {
11
+ ".": {
12
+ "types": "./dist/index.d.ts",
13
+ "import": "./dist/index.js",
14
+ "require": "./dist/index.js"
15
+ },
16
+ "./native": {
17
+ "types": "./index.d.ts",
18
+ "require": "./index.js"
19
+ }
20
+ },
8
21
  "repository": {
9
22
  "type": "git",
10
23
  "url": "https://github.com/maskdotdev/ray"
@@ -26,7 +39,8 @@
26
39
  "files": [
27
40
  "index.d.ts",
28
41
  "index.js",
29
- "browser.js"
42
+ "browser.js",
43
+ "dist"
30
44
  ],
31
45
  "napi": {
32
46
  "binaryName": "core",
@@ -47,8 +61,10 @@
47
61
  "scripts": {
48
62
  "artifacts": "napi artifacts",
49
63
  "bench": "node --import @oxc-node/core/register benchmark/bench.ts",
50
- "build": "napi build --platform --release",
51
- "build:debug": "napi build --platform",
64
+ "build": "napi build --platform --release && bun run build:ts",
65
+ "build:native": "napi build --platform --release",
66
+ "build:ts": "tsc -p ts/tsconfig.json",
67
+ "build:debug": "napi build --platform && bun run build:ts",
52
68
  "build:wasm": "napi build --target wasm32-wasip1-threads --release && node scripts/rename-wasm.mjs",
53
69
  "build:wasm:debug": "napi build --target wasm32-wasip1-threads && node scripts/rename-wasm.mjs",
54
70
  "format": "run-p format:prettier format:rs format:toml",
@@ -59,7 +75,7 @@
59
75
  "prepublishOnly": "napi prepublish -t npm",
60
76
  "test": "ava",
61
77
  "test:wasm": "node scripts/wasm-smoke.mjs",
62
- "preversion": "napi build --platform && git add .",
78
+ "preversion": "napi build --platform && bun run build:ts && git add .",
63
79
  "version": "napi version",
64
80
  "prepare": "husky"
65
81
  },
@@ -71,6 +87,7 @@
71
87
  "@emnapi/runtime": "^1.5.0",
72
88
  "@napi-rs/cli": "^3.2.0",
73
89
  "@oxc-node/core": "^0.0.35",
90
+ "@oxc-node/core-darwin-arm64": "0.0.35",
74
91
  "@taplo/cli": "^0.7.0",
75
92
  "@tybys/wasm-util": "^0.10.0",
76
93
  "ava": "^6.4.1",
@@ -95,6 +112,9 @@
95
112
  ]
96
113
  },
97
114
  "ava": {
115
+ "files": [
116
+ "__test__/**/*.spec.ts"
117
+ ],
98
118
  "extensions": {
99
119
  "ts": "module"
100
120
  },
@@ -115,11 +135,11 @@
115
135
  "singleQuote": true,
116
136
  "arrowParens": "always"
117
137
  },
118
- "packageManager": "yarn@4.12.0",
138
+ "packageManager": "bun@1.2.4",
119
139
  "optionalDependencies": {
120
- "@ray-db/core-win32-x64-msvc": "0.1.7",
121
- "@ray-db/core-darwin-x64": "0.1.7",
122
- "@ray-db/core-linux-x64-gnu": "0.1.7",
123
- "@ray-db/core-darwin-arm64": "0.1.7"
140
+ "@ray-db/core-win32-x64-msvc": "0.2.0",
141
+ "@ray-db/core-darwin-x64": "0.2.0",
142
+ "@ray-db/core-linux-x64-gnu": "0.2.0",
143
+ "@ray-db/core-darwin-arm64": "0.2.0"
124
144
  }
125
145
  }