Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
6 changes: 3 additions & 3 deletions generated/ts-client/README.md
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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.
Expand All @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion generated/ts-client/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
6 changes: 3 additions & 3 deletions generated/ts-client/scripts/package-smoke.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ try {
private: true,
type: "module",
dependencies: {
"@techgodhq/iris-client": `file:${dependencyPath}`,
"@techgod/iris-client": `file:${dependencyPath}`,
},
},
null,
Expand Down Expand Up @@ -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<ListThreadsResult> =>\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<ListThreadsResult> =>\n value.listThreads({ limit: 1 });\nvoid typedCall;\nvoid client;\n`,
);

run("npm", ["install", "--ignore-scripts", "--no-audit", "--no-fund"], consumer);
Expand All @@ -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) {
Expand Down
Loading