Skip to content

Commit ff9799d

Browse files
authored
Update npm org from hyperlight to hyperlight-dev (#99)
Signed-off-by: Simon Davies <simongdavies@users.noreply.github.com>
1 parent 43b7bbf commit ff9799d

File tree

9 files changed

+33
-33
lines changed

9 files changed

+33
-33
lines changed

.github/workflows/npm-publish.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ jobs:
194194
const fs = require('fs');
195195
const pkg = JSON.parse(fs.readFileSync('package.json', 'utf8'));
196196
for (const dep of Object.keys(pkg.optionalDependencies || {})) {
197-
if (dep.startsWith('@hyperlight/js-host-api-')) {
197+
if (dep.startsWith('@hyperlight-dev/js-host-api-')) {
198198
pkg.optionalDependencies[dep] = process.env.VERSION;
199199
}
200200
}
@@ -252,14 +252,14 @@ jobs:
252252
run: |
253253
echo "=== DRY RUN - Would publish the following packages ==="
254254
echo ""
255-
echo "--- @hyperlight/js-host-api-linux-x64-gnu ---"
255+
echo "--- @hyperlight-dev/js-host-api-linux-x64-gnu ---"
256256
npm pack ./npm/linux-x64-gnu --dry-run
257257
echo ""
258-
echo "--- @hyperlight/js-host-api-linux-x64-musl ---"
258+
echo "--- @hyperlight-dev/js-host-api-linux-x64-musl ---"
259259
npm pack ./npm/linux-x64-musl --dry-run
260260
echo ""
261-
echo "--- @hyperlight/js-host-api-win32-x64-msvc ---"
261+
echo "--- @hyperlight-dev/js-host-api-win32-x64-msvc ---"
262262
npm pack ./npm/win32-x64-msvc --dry-run
263263
echo ""
264-
echo "--- @hyperlight/js-host-api ---"
264+
echo "--- @hyperlight-dev/js-host-api ---"
265265
npm pack --dry-run

src/js-host-api/README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ Node.js bindings for hyperlight-js
55
## Installation
66

77
```bash
8-
npm install @hyperlight/js-host-api
8+
npm install @hyperlight-dev/js-host-api
99
```
1010

1111
## Quick Start
1212

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

1616
// Create and build a sandbox
1717
const builder = new SandboxBuilder();
@@ -334,7 +334,7 @@ sequenceDiagram
334334
### Quick Start
335335

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

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

@@ -633,7 +633,7 @@ just test-all release
633633

634634
## Publishing to npm
635635

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

638638
### Automated Release
639639

@@ -668,10 +668,10 @@ The npm release consists of the following packages:
668668

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

676676
### How Platform Selection Works
677677

src/js-host-api/TYPE_NAMING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ impl SandboxBuilderWrapper {
5959
## JavaScript Usage
6060

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

6464
// Build the sandbox pipeline
6565
const builder = new SandboxBuilder();

src/js-host-api/npm/linux-x64-gnu/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "@hyperlight/js-host-api-linux-x64-gnu",
2+
"name": "@hyperlight-dev/js-host-api-linux-x64-gnu",
33
"version": "0.2.0",
44
"os": [
55
"linux"

src/js-host-api/npm/linux-x64-musl/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "@hyperlight/js-host-api-linux-x64-musl",
2+
"name": "@hyperlight-dev/js-host-api-linux-x64-musl",
33
"version": "0.2.0",
44
"os": [
55
"linux"

src/js-host-api/npm/win32-x64-msvc/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "@hyperlight/js-host-api-win32-x64-msvc",
2+
"name": "@hyperlight-dev/js-host-api-win32-x64-msvc",
33
"version": "0.2.0",
44
"os": [
55
"win32"

src/js-host-api/package-lock.json

Lines changed: 8 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/js-host-api/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "@hyperlight/js-host-api",
2+
"name": "@hyperlight-dev/js-host-api",
33
"version": "0.2.0",
44
"description": "Node.js API bindings for Hyperlight JS",
55
"main": "lib.js",
@@ -22,9 +22,9 @@
2222
},
2323
"license": "Apache-2.0",
2424
"optionalDependencies": {
25-
"@hyperlight/js-host-api-linux-x64-gnu": "0.2.0",
26-
"@hyperlight/js-host-api-linux-x64-musl": "0.2.0",
27-
"@hyperlight/js-host-api-win32-x64-msvc": "0.2.0"
25+
"@hyperlight-dev/js-host-api-linux-x64-gnu": "0.2.0",
26+
"@hyperlight-dev/js-host-api-linux-x64-musl": "0.2.0",
27+
"@hyperlight-dev/js-host-api-win32-x64-msvc": "0.2.0"
2828
},
2929
"devDependencies": {
3030
"@eslint/js": "^10.0.1",

src/js-host-api/test-pack.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22
# Validate npm packages by packing to /tmp and installing into a clean project.
3-
# Simulates what a consumer would experience after `npm install @hyperlight/js-host-api`.
3+
# Simulates what a consumer would experience after `npm install @hyperlight-dev/js-host-api`.
44
#
55
# Prerequisites:
66
# - Native .node binary must exist (via `npm run build`)
@@ -115,9 +115,9 @@ npm install "${MAIN_TGZ_PATH}" --no-save 2>&1 | sed 's/^/ /'
115115

116116
# ── Step 7: Smoke test — require and check exports ──────────────────
117117
echo ""
118-
echo "🧪 Smoke test: require('@hyperlight/js-host-api')..."
118+
echo "🧪 Smoke test: require('@hyperlight-dev/js-host-api')..."
119119
EXPORTS=$(node -e "
120-
const h = require('@hyperlight/js-host-api');
120+
const h = require('@hyperlight-dev/js-host-api');
121121
const keys = Object.keys(h);
122122
if (keys.length === 0) {
123123
console.error('ERROR: No exports found');
@@ -131,7 +131,7 @@ echo " ${EXPORTS}"
131131
echo ""
132132
echo "🧪 Hello World: create sandbox, load handler, call it..."
133133
node -e "
134-
const { SandboxBuilder } = require('@hyperlight/js-host-api');
134+
const { SandboxBuilder } = require('@hyperlight-dev/js-host-api');
135135
136136
async function main() {
137137
const builder = new SandboxBuilder();

0 commit comments

Comments
 (0)