📦 build: add operator workspace package

This commit is contained in:
2026-08-13 02:33:35 +07:00
parent f3e303ed18
commit cb6e046344
3 changed files with 13 additions and 2 deletions
+1
View File
@@ -11,6 +11,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
wget \ wget \
git \ git \
jq \ jq \
make \
unzip \ unzip \
ca-certificates \ ca-certificates \
gnupg \ gnupg \
+9
View File
@@ -0,0 +1,9 @@
{
"name": "@minikura/operator",
"private": true,
"scripts": {
"dev": "go run ./cmd --leader-elect=false",
"build": "go build -o bin/operator ./cmd",
"test": "go test ./... -race"
}
}
+3 -2
View File
@@ -3,7 +3,8 @@
"version": "0.0.1", "version": "0.0.1",
"workspaces": [ "workspaces": [
"apps/*", "apps/*",
"packages/*" "packages/*",
"operator"
], ],
"packageManager": "bun@1.3.6", "packageManager": "bun@1.3.6",
"scripts": { "scripts": {
@@ -20,7 +21,7 @@
"db:studio": "bun --filter @minikura/db studio", "db:studio": "bun --filter @minikura/db studio",
"db:push": "bun --filter @minikura/db push", "db:push": "bun --filter @minikura/db push",
"db:reset": "bun --filter @minikura/db reset", "db:reset": "bun --filter @minikura/db reset",
"operator:dev": "make -C operator run", "operator:dev": "bun --cwd operator run dev",
"operator:build": "make -C operator build", "operator:build": "make -C operator build",
"operator:test": "make -C operator test", "operator:test": "make -C operator test",
"operator:crds": "make -C operator install-crds", "operator:crds": "make -C operator install-crds",