@saikrishnaambeti/docker-sandbox 1.0.0 → 1.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@saikrishnaambeti/docker-sandbox",
3
- "version": "1.0.0",
3
+ "version": "1.2.0",
4
4
  "description": "A Docker-based sandbox for running isolated code execution environments",
5
5
  "keywords": [
6
6
  "docker",
@@ -25,7 +25,7 @@
25
25
  "module": "./dist/index.js",
26
26
  "types": "./dist/index.d.ts",
27
27
  "bin": {
28
- "docker-sandbox": "./dist/cli/index.js"
28
+ "@saikrishnaambeti/docker-sandbox": "./dist/cli/index.js"
29
29
  },
30
30
  "exports": {
31
31
  ".": {
@@ -53,13 +53,14 @@
53
53
  "dev": "bun run src/cli/index.ts",
54
54
  "build": "bun run build:clean && bun run build:esm && bun run build:cli && bun run build:types && bun run build:shebang",
55
55
  "build:clean": "rm -rf dist",
56
- "build:esm": "bun build ./src/index.ts ./src/sdk/index.ts ./src/server/index.ts --outdir ./dist --target bun --splitting --format esm",
57
- "build:cli": "bun build ./src/cli/index.ts --outdir ./dist/cli --target bun --format esm",
56
+ "build:esm": "bun build ./src/index.ts ./src/sdk/index.ts ./src/server/index.ts --outdir ./dist --target node --splitting --format esm",
57
+ "build:cli": "bun build ./src/cli/index.ts --outdir ./dist/cli --target node --format esm",
58
58
  "build:types": "tsc --emitDeclarationOnly --declaration --outDir dist",
59
59
  "build:shebang": "node -e \"const fs=require('fs');const f='dist/cli/index.js';let c=fs.readFileSync(f,'utf8');c=c.replace(/^(#!.*)?/,'#!/usr/bin/env node\\n');fs.writeFileSync(f,c);\" && chmod +x dist/cli/index.js",
60
60
  "prepublishOnly": "bun run build",
61
61
  "example": "bun run examples/usage.ts",
62
- "test": "echo \"No tests yet\""
62
+ "test": "echo \"No tests yet\"",
63
+ "start": "bun dist/cli/index.js"
63
64
  },
64
65
  "devDependencies": {
65
66
  "@types/bun": "latest",
@@ -70,7 +71,9 @@
70
71
  "typescript": "^5"
71
72
  },
72
73
  "dependencies": {
74
+ "@hono/node-server": "^1.19.9",
73
75
  "dockerode": "^4.0.9",
76
+ "hono": "^4.11.4",
74
77
  "ms": "^2.1.3"
75
78
  },
76
79
  "engines": {