Skip to content

Commit

Permalink
add copy script
Browse files Browse the repository at this point in the history
  • Loading branch information
coolchock committed Nov 14, 2024
1 parent 0c7b22e commit 736882c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions backend/src/utilities/schemaLoader.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {readFileSync, readdirSync, existsSync} from 'fs';
import {existsSync, readdirSync, readFileSync} from 'fs';
import {join} from 'path';
import {logger} from './logger';

Expand All @@ -10,7 +10,8 @@ export interface SchemaSource {
export class SchemaLoader {
private schemaDirectory: string;

constructor(schemaDirectory: string = join(process.cwd(), 'src/graphql/')) {
// TODO it's supposed to be src/graphql for dev env
constructor(schemaDirectory: string = join(process.cwd(), 'dist/graphql/')) {
this.schemaDirectory = process.env.SCHEMA_DIRECTORY || schemaDirectory;
logger.startup('SchemaLoader initialized', {
schemaDirectory: this.schemaDirectory,
Expand Down

0 comments on commit 736882c

Please sign in to comment.