Skip to content

Commit

Permalink
feix: debug
Browse files Browse the repository at this point in the history
  • Loading branch information
Nico Benninger committed Jun 7, 2024
1 parent e9fadd6 commit d3241c4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 0 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,6 @@ RUN npm ci --omit=dev
#Generate @prisma/client
RUN npm run prisma:generate

#For debuging purposes
RUN ls ./node_modules


#Romve build dependencies
RUN rm -rf /enums
RUN rm -rf /src
Expand Down
4 changes: 2 additions & 2 deletions src/migrate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,10 @@ const findPrismaSchema = async (): Promise<string | null> => {
const findPrismaCli = async (): Promise<string | null> => {
console.log('Looking for prisma CLI..');

const fromCurrentDir = join(__dirname, 'node_modules', '.bin', 'prisma');
const fromCurrentDir = join(__dirname, 'node_modules', 'prisma');
if (await probe(fromCurrentDir)) return fromCurrentDir;

const fromParentDir = join(__dirname, '..', 'node_modules', '.bin', 'prisma');
const fromParentDir = join(__dirname, '..', 'node_modules', 'prisma');
if (await probe(fromParentDir)) return fromParentDir;

console.error(`Could not find prisma CLI`);
Expand Down

0 comments on commit d3241c4

Please sign in to comment.