strapi/packages/core/database/packup.config.ts
Josh 24b4aa0739
chore: pack-up database (#18331)
* chore: pack-up database

* fix(database): add knex direct imports as external
2023-10-10 10:43:52 +01:00

24 lines
541 B
TypeScript

// eslint-disable-next-line import/no-extraneous-dependencies
import { defineConfig } from '@strapi/pack-up';
export default defineConfig({
externals: [
'crypto',
'node:async_hooks',
'node:path',
'path',
'stream',
'timers',
'tty',
/**
* Knex dependencies, if we don't mark these as external
* they will be included in the bundle which means they
* will fail...
*/
'knex/lib/dialects/sqlite3/index',
'knex/lib/query/querybuilder',
'knex/lib/raw',
],
runtime: 'node',
});