mirror of
https://github.com/umami-software/umami.git
synced 2026-02-04 04:37:11 +01:00
Updated Prisma build.
This commit is contained in:
parent
7abfa1cb5b
commit
eabdd18604
6 changed files with 63 additions and 125 deletions
|
|
@ -2,13 +2,17 @@ import esbuild from 'esbuild';
|
|||
|
||||
esbuild
|
||||
.build({
|
||||
entryPoints: ['src/generated/prisma/client.js'], // Adjust this to your entry file
|
||||
entryPoints: ['src/generated/prisma/client.ts'], // Adjust this to your entry file
|
||||
bundle: true, // Bundle all files into one (optional)
|
||||
outfile: 'dist/generated/prisma/client.js', // Output file
|
||||
platform: 'node', // For Node.js compatibility
|
||||
target: 'es2020', // Target version of Node.js
|
||||
format: 'esm', // Use ESM format
|
||||
sourcemap: true, // Optional: generates source maps for debugging
|
||||
external: [], // Optional: Exclude external dependencies from bundling
|
||||
external: [
|
||||
'../src/generated/prisma', // exclude generated client
|
||||
'@prisma/client', // just in case
|
||||
'.prisma/client',
|
||||
], // Optional: Exclude external dependencies from bundling
|
||||
})
|
||||
.catch(() => process.exit(1));
|
||||
|
|
|
|||
|
|
@ -1,10 +1,9 @@
|
|||
/* eslint-disable no-console */
|
||||
import 'dotenv/config';
|
||||
|
||||
import { execSync } from 'node:child_process';
|
||||
import chalk from 'chalk';
|
||||
import semver from 'semver';
|
||||
import { PrismaClient } from '@prisma/client';
|
||||
import { PrismaClient } from '../dist/generated/prisma/client.js';
|
||||
import { PrismaPg } from '@prisma/adapter-pg';
|
||||
|
||||
const MIN_VERSION = '9.4.0';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue