Skip to content

Commit

Permalink
Merge pull request #1584 from serlo/Zhvvd-kulla-2024-06-14-18-46
Browse files Browse the repository at this point in the history
fix(db-migrations): `db-migrate` does not recognize `cjs` files
  • Loading branch information
kulla authored Jun 14, 2024
2 parents 334eb2c + 36a1d08 commit ee94b47
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions packages/db-migrations/migrations/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"type": "commonjs"
}
2 changes: 1 addition & 1 deletion packages/db-migrations/scripts/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ async function main() {
}

const basename = path.basename(file, '.ts')
const outfile = path.join(outputDir, `${basename}.cjs`)
const outfile = path.join(outputDir, `${basename}.js`)

await esbuild.build({
entryPoints: [file],
Expand Down

0 comments on commit ee94b47

Please sign in to comment.