rm copy script, build depends on generate

This commit is contained in:
Max Peintner
2023-04-20 14:44:12 +02:00
parent 8b8cca08cd
commit fc3755cace
3 changed files with 8 additions and 8 deletions

View File

@@ -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;
// }

View File

@@ -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",

View File

@@ -3,7 +3,7 @@
"pipeline": {
"build": {
"outputs": ["dist/**", ".next/**", "!.next/cache/**"],
"dependsOn": ["^build"]
"dependsOn": ["generate", "^build"]
},
"test": {
"outputs": ["coverage/**"],