Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ jobs:
const fs = require('fs');
const pkg = JSON.parse(fs.readFileSync('package.json', 'utf8'));
for (const dep of Object.keys(pkg.optionalDependencies || {})) {
if (dep.startsWith('@hyperlight/js-host-api-')) {
if (dep.startsWith('@hyperlight-dev/js-host-api-')) {
pkg.optionalDependencies[dep] = process.env.VERSION;
}
}
Expand Down Expand Up @@ -252,14 +252,14 @@ jobs:
run: |
echo "=== DRY RUN - Would publish the following packages ==="
echo ""
echo "--- @hyperlight/js-host-api-linux-x64-gnu ---"
echo "--- @hyperlight-dev/js-host-api-linux-x64-gnu ---"
npm pack ./npm/linux-x64-gnu --dry-run
echo ""
echo "--- @hyperlight/js-host-api-linux-x64-musl ---"
echo "--- @hyperlight-dev/js-host-api-linux-x64-musl ---"
npm pack ./npm/linux-x64-musl --dry-run
echo ""
echo "--- @hyperlight/js-host-api-win32-x64-msvc ---"
echo "--- @hyperlight-dev/js-host-api-win32-x64-msvc ---"
npm pack ./npm/win32-x64-msvc --dry-run
echo ""
echo "--- @hyperlight/js-host-api ---"
echo "--- @hyperlight-dev/js-host-api ---"
npm pack --dry-run
16 changes: 8 additions & 8 deletions src/js-host-api/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ Node.js bindings for hyperlight-js
## Installation

```bash
npm install @hyperlight/js-host-api
npm install @hyperlight-dev/js-host-api
```

## Quick Start

```javascript
import { SandboxBuilder } from '@hyperlight/js-host-api';
import { SandboxBuilder } from '@hyperlight-dev/js-host-api';

// Create and build a sandbox
const builder = new SandboxBuilder();
Expand Down Expand Up @@ -334,7 +334,7 @@ sequenceDiagram
### Quick Start

```javascript
const { SandboxBuilder } = require('@hyperlight/js-host-api');
const { SandboxBuilder } = require('@hyperlight-dev/js-host-api');

const proto = await new SandboxBuilder().build();

Expand Down Expand Up @@ -633,7 +633,7 @@ just test-all release

## Publishing to npm

The package is published to npmjs.com as `@hyperlight/js-host-api` with platform-specific binary packages.
The package is published to npmjs.com as `@hyperlight-dev/js-host-api` with platform-specific binary packages.

### Automated Release

Expand Down Expand Up @@ -668,10 +668,10 @@ The npm release consists of the following packages:

| Package | Description |
|---------|-------------|
| `@hyperlight/js-host-api` | Main package (installs correct binary automatically) |
| `@hyperlight/js-host-api-linux-x64-gnu` | Linux x86_64 (glibc) native binary |
| `@hyperlight/js-host-api-linux-x64-musl` | Linux x86_64 (musl/Alpine) native binary |
| `@hyperlight/js-host-api-win32-x64-msvc` | Windows x86_64 native binary |
| `@hyperlight-dev/js-host-api` | Main package (installs correct binary automatically) |
| `@hyperlight-dev/js-host-api-linux-x64-gnu` | Linux x86_64 (glibc) native binary |
| `@hyperlight-dev/js-host-api-linux-x64-musl` | Linux x86_64 (musl/Alpine) native binary |
| `@hyperlight-dev/js-host-api-win32-x64-msvc` | Windows x86_64 native binary |

### How Platform Selection Works

Expand Down
2 changes: 1 addition & 1 deletion src/js-host-api/TYPE_NAMING.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ impl SandboxBuilderWrapper {
## JavaScript Usage

```javascript
const { SandboxBuilder } = require('@hyperlight/js-host-api');
const { SandboxBuilder } = require('@hyperlight-dev/js-host-api');

// Build the sandbox pipeline
const builder = new SandboxBuilder();
Expand Down
2 changes: 1 addition & 1 deletion src/js-host-api/npm/linux-x64-gnu/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@hyperlight/js-host-api-linux-x64-gnu",
"name": "@hyperlight-dev/js-host-api-linux-x64-gnu",
"version": "0.2.0",
"os": [
"linux"
Expand Down
2 changes: 1 addition & 1 deletion src/js-host-api/npm/linux-x64-musl/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@hyperlight/js-host-api-linux-x64-musl",
"name": "@hyperlight-dev/js-host-api-linux-x64-musl",
"version": "0.2.0",
"os": [
"linux"
Expand Down
2 changes: 1 addition & 1 deletion src/js-host-api/npm/win32-x64-msvc/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@hyperlight/js-host-api-win32-x64-msvc",
"name": "@hyperlight-dev/js-host-api-win32-x64-msvc",
"version": "0.2.0",
"os": [
"win32"
Expand Down
16 changes: 8 additions & 8 deletions src/js-host-api/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions src/js-host-api/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@hyperlight/js-host-api",
"name": "@hyperlight-dev/js-host-api",
"version": "0.2.0",
"description": "Node.js API bindings for Hyperlight JS",
"main": "lib.js",
Expand All @@ -22,9 +22,9 @@
},
"license": "Apache-2.0",
"optionalDependencies": {
"@hyperlight/js-host-api-linux-x64-gnu": "0.2.0",
"@hyperlight/js-host-api-linux-x64-musl": "0.2.0",
"@hyperlight/js-host-api-win32-x64-msvc": "0.2.0"
"@hyperlight-dev/js-host-api-linux-x64-gnu": "0.2.0",
"@hyperlight-dev/js-host-api-linux-x64-musl": "0.2.0",
"@hyperlight-dev/js-host-api-win32-x64-msvc": "0.2.0"
},
"devDependencies": {
"@eslint/js": "^10.0.1",
Expand Down
8 changes: 4 additions & 4 deletions src/js-host-api/test-pack.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash
# Validate npm packages by packing to /tmp and installing into a clean project.
# Simulates what a consumer would experience after `npm install @hyperlight/js-host-api`.
# Simulates what a consumer would experience after `npm install @hyperlight-dev/js-host-api`.
#
# Prerequisites:
# - Native .node binary must exist (via `npm run build`)
Expand Down Expand Up @@ -115,9 +115,9 @@ npm install "${MAIN_TGZ_PATH}" --no-save 2>&1 | sed 's/^/ /'

# ── Step 7: Smoke test — require and check exports ──────────────────
echo ""
echo "🧪 Smoke test: require('@hyperlight/js-host-api')..."
echo "🧪 Smoke test: require('@hyperlight-dev/js-host-api')..."
EXPORTS=$(node -e "
const h = require('@hyperlight/js-host-api');
const h = require('@hyperlight-dev/js-host-api');
const keys = Object.keys(h);
if (keys.length === 0) {
console.error('ERROR: No exports found');
Expand All @@ -131,7 +131,7 @@ echo " ${EXPORTS}"
echo ""
echo "🧪 Hello World: create sandbox, load handler, call it..."
node -e "
const { SandboxBuilder } = require('@hyperlight/js-host-api');
const { SandboxBuilder } = require('@hyperlight-dev/js-host-api');

async function main() {
const builder = new SandboxBuilder();
Expand Down
Loading