diff --git a/bun.lock b/bun.lock index 915a8f9..80b6c38 100644 --- a/bun.lock +++ b/bun.lock @@ -4,22 +4,18 @@ "workspaces": { "": { "name": "kuber", - "dependencies": { + "devDependencies": { "@bomb.sh/tab": "^0.0.22", "@cliffy/table": "npm:@jsr/cliffy__table", "@kubernetes/client-node": "^1.4.0", - "citty": "^0.2.2", - "listr2": "^11.0.0", - "zod": "^4.4.3", - }, - "devDependencies": { "@types/bun": "latest", + "citty": "^0.2.2", "json-schema-to-typescript": "^15.0.4", + "listr2": "^11.0.0", "oxfmt": "^0.62.0", "oxlint": "^1.77.0", - }, - "peerDependencies": { "typescript": "^5", + "zod": "^4.4.3", }, }, }, diff --git a/docker-compose.yml b/docker-compose.yml deleted file mode 100755 index 2ff3b35..0000000 --- a/docker-compose.yml +++ /dev/null @@ -1,48 +0,0 @@ -version: "3.9" - -services: - app: - image: registry.neko-piranha.ts.net/astral/buzz:frontend - deploy: - replicas: 2 - resources: - limits: - cpus: "1.0" - memory: 1024M - labels: - - "swarm.autoscale=true" - restart_policy: - condition: any - stop_grace_period: 1s - healthcheck: - test: ["CMD", "bun", "-e", "fetch('http://localhost:3000/')"] - interval: 60s - timeout: 5s - retries: 3 - start_period: 5s - ports: - - "8604:3000" - networks: - - buzz - - backend: - image: registry.neko-piranha.ts.net/astral/buzz:backend - environment: - NO_AUTH_CHECK: "true" - deploy: - resources: - limits: - cpus: "1.0" - memory: 512M - restart_policy: - condition: any - update_config: - monitor: 5s - failure_action: rollback - stop_grace_period: 1s - networks: - - buzz - -networks: - buzz: - driver: overlay diff --git a/fixtures/erika b/fixtures/erika deleted file mode 160000 index 285187c..0000000 --- a/fixtures/erika +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 285187ca411186e082054ac23c9464e5c8c06421 diff --git a/index.ts b/index.ts index 44ef10a..65a875d 100644 --- a/index.ts +++ b/index.ts @@ -1,3 +1,5 @@ +#!/usr/bin/env bun + import { createMain } from "citty"; import { initializeCompletion, main } from "./command/main"; import { provideContext } from "./lib/context"; diff --git a/package.json b/package.json index c987d3c..9ce5414 100644 --- a/package.json +++ b/package.json @@ -1,26 +1,33 @@ { - "name": "kuber", - "module": "index.ts", + "name": "@dmgnr/kuber", + "version": "1.0.0", + "description": "Docker Compose to Kubernetes translation layer", "type": "module", - "private": true, + "bin": { + "kuber": "dist/index.js" + }, + "files": [ + "dist/index.js" + ], + "engines": { + "bun": ">=1.0.0" + }, "devDependencies": { - "@types/bun": "latest", - "json-schema-to-typescript": "^15.0.4", - "oxfmt": "^0.62.0", - "oxlint": "^1.77.0" - }, - "peerDependencies": { - "typescript": "^5" - }, - "dependencies": { "@bomb.sh/tab": "^0.0.22", "@cliffy/table": "npm:@jsr/cliffy__table", "@kubernetes/client-node": "^1.4.0", + "@types/bun": "latest", "citty": "^0.2.2", + "json-schema-to-typescript": "^15.0.4", "listr2": "^11.0.0", + "oxfmt": "^0.62.0", + "oxlint": "^1.77.0", + "typescript": "^5", "zod": "^4.4.3" }, "scripts": { + "build": "bun build index.ts --target bun --minify --outdir dist", + "prepack": "bun run build", "test": "bun test tests", "typecheck": "tsc --noEmit", "prod": "bun run build && cp dist/kuber ~/.bun/bin/ && scp dist/kuber-arm64 root@astral:/usr/bin/kuber"