mirror of
https://github.com/zitadel/zitadel.git
synced 2025-12-12 07:24:51 +00:00
rm copy script, build depends on generate
This commit is contained in:
@@ -4,7 +4,7 @@ import {
|
||||
getServers,
|
||||
initializeServer,
|
||||
} from "@zitadel/server";
|
||||
import { getAuth } from "@zitadel/server/auth";
|
||||
// import { getAuth } from "@zitadel/server/auth";
|
||||
|
||||
export const zitadelConfig: ZitadelServerOptions = {
|
||||
apiUrl: process.env.ZITADEL_API_URL ?? "",
|
||||
@@ -17,8 +17,8 @@ if (!getServers().length) {
|
||||
|
||||
const server = getServer();
|
||||
|
||||
export async function getMyUser(): Promise<GetMyUserResponse> {
|
||||
const auth = await getAuth();
|
||||
const response = await auth.getMyUser({});
|
||||
return response;
|
||||
}
|
||||
// export async function getMyUser(): Promise<GetMyUserResponse> {
|
||||
// const auth = await getAuth();
|
||||
// const response = await auth.getMyUser({});
|
||||
// return response;
|
||||
// }
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
"./assets/*": "./dist/assets/*"
|
||||
},
|
||||
"scripts": {
|
||||
"build": "tsup && pnpm run copy-files",
|
||||
"build": "tsup",
|
||||
"dev": "tsup --watch",
|
||||
"lint": "eslint \"src/**/*.ts*\"",
|
||||
"clean": "rm -rf .turbo && rm -rf node_modules && rm -rf dist",
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
"pipeline": {
|
||||
"build": {
|
||||
"outputs": ["dist/**", ".next/**", "!.next/cache/**"],
|
||||
"dependsOn": ["^build"]
|
||||
"dependsOn": ["generate", "^build"]
|
||||
},
|
||||
"test": {
|
||||
"outputs": ["coverage/**"],
|
||||
|
||||
Reference in New Issue
Block a user