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