Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
Co-authored-by: Kay Gosho <ketsume0211@gmail.com>
  • Loading branch information
EspadaV8 and acro5piano authored Dec 19, 2023
1 parent bdf7b3b commit db9c912
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,12 @@ import pg from 'pg'
import { Kysely, Migrator, PostgresDialect, FileMigrationProvider } from 'kysely'
import { run } from 'kysely-migration-cli'

// For ESM environment
const migrationFolder = new URL('./migrations', import.meta.url).pathname

// For CJS environment
// const migrationFolder = path.join(__dirname, './migrations')

const db = new Kysely<any>({
dialect: new PostgresDialect({
pool: new pg.Pool({
Expand Down

0 comments on commit db9c912

Please sign in to comment.