@c9up/eon 0.2.10 → 0.2.11
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.win32-x64-msvc.node +0 -0
- package/package.json +11 -11
- package/scripts/copy-napi.mjs +11 -3
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@c9up/eon",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.11",
|
|
4
4
|
"description": "Eon — time-series data layer for the Ream framework (TDengine-backed)",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -54,16 +54,16 @@
|
|
|
54
54
|
},
|
|
55
55
|
"dependencies": {
|
|
56
56
|
"@tdengine/websocket": "3.5.0",
|
|
57
|
-
"reflect-metadata": "^0.2"
|
|
57
|
+
"reflect-metadata": "^0.2.2"
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
60
|
-
"@biomejs/biome": "^2.
|
|
61
|
-
"@
|
|
62
|
-
"@
|
|
63
|
-
"
|
|
64
|
-
"
|
|
65
|
-
"
|
|
66
|
-
"
|
|
60
|
+
"@biomejs/biome": "^2.5.12",
|
|
61
|
+
"@c9up/ream": "^0.2.0",
|
|
62
|
+
"@types/node": "^22.20.1",
|
|
63
|
+
"@vitest/coverage-v8": "4.1.11",
|
|
64
|
+
"tsx": "^4.23.13",
|
|
65
|
+
"typescript": "^6.0.3",
|
|
66
|
+
"vitest": "4.1.11"
|
|
67
67
|
},
|
|
68
68
|
"engines": {
|
|
69
69
|
"node": ">=22.0.0"
|
|
@@ -76,8 +76,8 @@
|
|
|
76
76
|
"url": "git+https://github.com/C9up/eon.git"
|
|
77
77
|
},
|
|
78
78
|
"peerDependencies": {
|
|
79
|
-
"
|
|
80
|
-
"
|
|
79
|
+
"@c9up/ream": "^0.2.0",
|
|
80
|
+
"vitest": ">=3"
|
|
81
81
|
},
|
|
82
82
|
"peerDependenciesMeta": {
|
|
83
83
|
"vitest": {
|
package/scripts/copy-napi.mjs
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
// node scripts/copy-napi.mjs # eon-query → index.<suffix>.node
|
|
6
6
|
|
|
7
7
|
import { copyFileSync, existsSync } from 'node:fs'
|
|
8
|
-
import { dirname, join } from 'node:path'
|
|
8
|
+
import { dirname, join, resolve } from 'node:path'
|
|
9
9
|
import { arch, env, platform } from 'node:process'
|
|
10
10
|
import { fileURLToPath } from 'node:url'
|
|
11
11
|
|
|
@@ -33,6 +33,14 @@ const hostSuffixMap = {
|
|
|
33
33
|
const basename = 'index'
|
|
34
34
|
const crate = 'eon_query_napi'
|
|
35
35
|
|
|
36
|
+
// Cargo writes its artifacts under CARGO_TARGET_DIR when that is set — a
|
|
37
|
+
// shared cache, a CI mount — so they are not under this package's `target/` at
|
|
38
|
+
// all. A relative value is resolved against the directory cargo ran in, which
|
|
39
|
+
// is this package root.
|
|
40
|
+
const targetDir = env.CARGO_TARGET_DIR
|
|
41
|
+
? resolve(root, env.CARGO_TARGET_DIR)
|
|
42
|
+
: join(root, 'target')
|
|
43
|
+
|
|
36
44
|
const triple = env.CARGO_BUILD_TARGET ?? ''
|
|
37
45
|
let suffix
|
|
38
46
|
let os
|
|
@@ -44,11 +52,11 @@ if (triple) {
|
|
|
44
52
|
}
|
|
45
53
|
suffix = entry.suffix
|
|
46
54
|
os = entry.os
|
|
47
|
-
releaseDir = join(
|
|
55
|
+
releaseDir = join(targetDir, triple, 'release')
|
|
48
56
|
} else {
|
|
49
57
|
suffix = hostSuffixMap[`${platform}-${arch}`]
|
|
50
58
|
os = platform
|
|
51
|
-
releaseDir = join(
|
|
59
|
+
releaseDir = join(targetDir, 'release')
|
|
52
60
|
if (!suffix) {
|
|
53
61
|
throw new Error(`[eon:napi] unsupported platform/arch: ${platform}-${arch}`)
|
|
54
62
|
}
|