mirror of
https://github.com/knex/knex.git
synced 2025-12-13 16:00:53 +00:00
20 lines
396 B
JavaScript
20 lines
396 B
JavaScript
/**
|
|
* Dynamic ESM 'js' import from commonjs
|
|
* esm: migrations/seeds
|
|
* @returns {Promise<import("../../../").Config>}
|
|
* */
|
|
module.exports = async () => {
|
|
const { default: config } = await import(
|
|
'../knexfile-esm/knexfile.default.js'
|
|
);
|
|
return {
|
|
...config,
|
|
migrations: {
|
|
directory: './esm/migrations',
|
|
},
|
|
seeds: {
|
|
directory: './esm/seeds',
|
|
},
|
|
};
|
|
};
|