@hakodb/client 0.5.12

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.
@@ -0,0 +1,30 @@
1
+ #Requires -Version 5.1
2
+ <#
3
+ .SYNOPSIS
4
+ Populate native/ from a core checkout or a release tag asset.
5
+ .EXAMPLE
6
+ .\sync-native.ps1 -CoreDir C:\Dev\libs\firelite
7
+ .\sync-native.ps1 -Tag v0.8.20
8
+ #>
9
+ param(
10
+ [string]$CoreDir = "",
11
+ [string]$Tag = ""
12
+ )
13
+
14
+ $ErrorActionPreference = "Stop"
15
+ $Root = Split-Path -Parent $MyInvocation.MyCommand.Path
16
+ $Native = Join-Path $Root "native"
17
+ New-Item -ItemType Directory -Force $Native | Out-Null
18
+
19
+ if ($CoreDir -ne "") {
20
+ $dll = Join-Path $CoreDir "target\release\hakodb.dll"
21
+ if (-not (Test-Path $dll)) { throw "no release DLL at $dll (cargo build --release first)" }
22
+ Copy-Item $dll $Native -Force
23
+ Write-Output "synced from checkout: $CoreDir"
24
+ } elseif ($Tag -ne "") {
25
+ $base = "https://github.com/hakodb/hakodb/releases/download/$Tag"
26
+ Invoke-WebRequest -Uri "$base/hakodb-x86_64-pc-windows-msvc.dll" -OutFile (Join-Path $Native "hakodb.dll")
27
+ Write-Output "synced from release asset: $Tag"
28
+ } else {
29
+ throw "pass -CoreDir or -Tag"
30
+ }
package/tsconfig.json ADDED
@@ -0,0 +1,12 @@
1
+ {
2
+ "compilerOptions": {
3
+ "target": "ES2022",
4
+ "module": "ESNext",
5
+ "moduleResolution": "Bundler",
6
+ "strict": true,
7
+ "skipLibCheck": true,
8
+ "declaration": true,
9
+ "types": ["node"]
10
+ },
11
+ "include": ["src"]
12
+ }