From 6b7a2d6e3ff25f475db7debb32a5639fe7844000 Mon Sep 17 00:00:00 2001 From: Shiv Rossi Date: Tue, 29 Sep 2026 13:47:57 -0600 Subject: [PATCH] =?UTF-8?q?fix:=20publish=20SDK=20under=20@techgod=20scope?= =?UTF-8?q?=20=E2=80=94=20npm=20org=20is=20techgod,=20not=20techgodhq?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit GitHub org is techgodhq (techgod was taken there); the npm org is the reverse: techgod. Rename the package, smoke-consumer refs, release guard, and README install lines. Typecheck/build/package:smoke green locally at the rename. --- .github/workflows/release.yml | 4 ++-- README.md | 4 ++-- generated/ts-client/README.md | 6 +++--- generated/ts-client/package.json | 2 +- generated/ts-client/scripts/package-smoke.mjs | 6 +++--- 5 files changed, 11 insertions(+), 11 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index dc8fde1..34e07d5 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -91,9 +91,9 @@ jobs: working-directory: generated/ts-client run: | version=$(node -p "require('./package.json').version") - if npm view "@techgodhq/iris-client@$version" version >/dev/null 2>&1; then + if npm view "@techgod/iris-client@$version" version >/dev/null 2>&1; then echo "skip=true" >> "$GITHUB_OUTPUT" - echo "@techgodhq/iris-client@$version already on npm — skipping publish" + echo "@techgod/iris-client@$version already on npm — skipping publish" else echo "skip=false" >> "$GITHUB_OUTPUT" fi diff --git a/README.md b/README.md index a910109..d4711f5 100644 --- a/README.md +++ b/README.md @@ -43,11 +43,11 @@ from the same `api/operations.yaml` contract. Release tags publish the package with the matching Iris version: ```bash -npm install @techgodhq/iris-client +npm install @techgod/iris-client ``` ```ts -import { IrisClient } from "@techgodhq/iris-client"; +import { IrisClient } from "@techgod/iris-client"; const client = new IrisClient({ baseUrl: process.env.IRIS_URL ?? "http://127.0.0.1:9876", diff --git a/generated/ts-client/README.md b/generated/ts-client/README.md index 886e36c..1f2eef2 100644 --- a/generated/ts-client/README.md +++ b/generated/ts-client/README.md @@ -1,4 +1,4 @@ -# `@techgodhq/iris-client` +# `@techgod/iris-client` The generated, zero-runtime-dependency TypeScript fetch client for [Iris](https://github.com/TechGodHQ/iris). The module is projected from Iris's @@ -7,7 +7,7 @@ The generated, zero-runtime-dependency TypeScript fetch client for ## Install ```bash -npm install @techgodhq/iris-client +npm install @techgod/iris-client ``` The package version is aligned with the Iris release tag that published it. @@ -17,7 +17,7 @@ fetch implementation for tests or custom runtimes. ## Use ```ts -import { IrisClient } from "@techgodhq/iris-client"; +import { IrisClient } from "@techgod/iris-client"; const client = new IrisClient({ baseUrl: process.env.IRIS_URL ?? "http://127.0.0.1:9876", diff --git a/generated/ts-client/package.json b/generated/ts-client/package.json index 9658cf4..97f87bb 100644 --- a/generated/ts-client/package.json +++ b/generated/ts-client/package.json @@ -1,5 +1,5 @@ { - "name": "@techgodhq/iris-client", + "name": "@techgod/iris-client", "version": "0.1.0", "description": "Generated TypeScript fetch client for Iris.", "license": "MIT", diff --git a/generated/ts-client/scripts/package-smoke.mjs b/generated/ts-client/scripts/package-smoke.mjs index a6c8a33..2728b14 100644 --- a/generated/ts-client/scripts/package-smoke.mjs +++ b/generated/ts-client/scripts/package-smoke.mjs @@ -44,7 +44,7 @@ try { private: true, type: "module", dependencies: { - "@techgodhq/iris-client": `file:${dependencyPath}`, + "@techgod/iris-client": `file:${dependencyPath}`, }, }, null, @@ -72,7 +72,7 @@ try { ); await writeFile( join(consumer, "smoke.ts"), - `import { IrisClient, type ListThreadsResult } from "@techgodhq/iris-client";\n\nconst client = new IrisClient({ baseUrl: "http://127.0.0.1:9876" });\nconst typedCall = (value: IrisClient): Promise =>\n value.listThreads({ limit: 1 });\nvoid typedCall;\nvoid client;\n`, + `import { IrisClient, type ListThreadsResult } from "@techgod/iris-client";\n\nconst client = new IrisClient({ baseUrl: "http://127.0.0.1:9876" });\nconst typedCall = (value: IrisClient): Promise =>\n value.listThreads({ limit: 1 });\nvoid typedCall;\nvoid client;\n`, ); run("npm", ["install", "--ignore-scripts", "--no-audit", "--no-fund"], consumer); @@ -85,7 +85,7 @@ try { run(tsc, ["--project", "tsconfig.json", "--pretty", "false"], consumer); const runtimeProbe = ` -const pkg = await import("@techgodhq/iris-client"); +const pkg = await import("@techgod/iris-client"); if (typeof pkg.IrisClient !== "function") throw new Error("IrisClient export missing"); const baseUrl = process.env.IRIS_URL; if (!baseUrl) {