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"; "use server";
import { createServerTransport } from "@zitadel/client"; import { createServerTransport } from "@zitadel/client/node";
import { createUserServiceClient } from "@zitadel/client/v2"; import { createUserServiceClient } from "@zitadel/client/v2";
import { getSessionCookieById } from "./cookies"; import { getSessionCookieById } from "./cookies";
import { getSession } from "./zitadel"; import { getSession } from "./zitadel";

View File

@@ -14,7 +14,8 @@ import {
setPassword, setPassword,
setUserPassword, setUserPassword,
} from "@/lib/zitadel"; } 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 { createUserServiceClient } from "@zitadel/client/v2";
import { import {
Checks, Checks,

View File

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

View File

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

View File

@@ -5,5 +5,3 @@ export { NewAuthorizationBearerInterceptor } from "./interceptors";
export { create, fromJson, toJson } from "@bufbuild/protobuf"; export { create, fromJson, toJson } from "@bufbuild/protobuf";
export { TimestampSchema, timestampDate, timestampFromDate, timestampFromMs, timestampMs } from "@bufbuild/protobuf/wkt"; export { TimestampSchema, timestampDate, timestampFromDate, timestampFromMs, timestampMs } from "@bufbuild/protobuf/wkt";
export type { Duration, Timestamp } 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"; import { defineConfig, Options } from "tsup";
export default defineConfig((options: Options) => ({ 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"], format: ["esm", "cjs"],
treeshake: false, treeshake: false,
splitting: true, splitting: true,