move to subfolder

This commit is contained in:
Max Peintner
2025-01-02 14:54:51 +01:00
parent f12709e97f
commit a91e147532
7 changed files with 10 additions and 6 deletions

View File

@@ -1,6 +1,6 @@
"use server";
import { createServerTransport } from "@zitadel/client";
import { createServerTransport } from "@zitadel/client/node";
import { createUserServiceClient } from "@zitadel/client/v2";
import { getSessionCookieById } from "./cookies";
import { getSession } from "./zitadel";

View File

@@ -14,7 +14,8 @@ import {
setPassword,
setUserPassword,
} from "@/lib/zitadel";
import { create, createServerTransport } from "@zitadel/client";
import { create } from "@zitadel/client";
import { createServerTransport } from "@zitadel/client/node";
import { createUserServiceClient } from "@zitadel/client/v2";
import {
Checks,

View File

@@ -1,4 +1,4 @@
import { createServerTransport } from "@zitadel/client";
import { createServerTransport } from "@zitadel/client/node";
import {
createIdpServiceClient,
createOIDCServiceClient,

View File

@@ -27,6 +27,11 @@
"types": "./dist/v3alpha.d.ts",
"import": "./dist/v3alpha.js",
"require": "./dist/v3alpha.cjs"
},
"./node": {
"types": "./dist/node.d.ts",
"import": "./dist/node.js",
"require": "./dist/node.cjs"
}
},
"files": [

View File

@@ -5,5 +5,3 @@ export { NewAuthorizationBearerInterceptor } from "./interceptors";
export { create, fromJson, toJson } from "@bufbuild/protobuf";
export { TimestampSchema, timestampDate, timestampFromDate, timestampFromMs, timestampMs } from "@bufbuild/protobuf/wkt";
export type { Duration, Timestamp } from "@bufbuild/protobuf/wkt";
export { createServerTransport, newSystemToken } from "./grpc";

View File

@@ -1,7 +1,7 @@
import { defineConfig, Options } from "tsup";
export default defineConfig((options: Options) => ({
entry: ["src/index.ts", "src/v1.ts", "src/v2.ts", "src/v3alpha.ts"],
entry: ["src/index.ts", "src/v1.ts", "src/v2.ts", "src/v3alpha.ts", "src/node.ts"],
format: ["esm", "cjs"],
treeshake: false,
splitting: true,