Skip to content

Commit

Permalink
dedupe exec
Browse files Browse the repository at this point in the history
  • Loading branch information
rubys committed Dec 22, 2024
1 parent c74b04c commit a28c9af
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions templates/docker-entrypoint.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<% tab = n => (usingTabs ? "\t" : " ").repeat(n) -%>

<% if (typeModule) { -%>
import { spawn<% if (prismaFile && prismaSeed && sqlite3) { -%>, exec<% } %> } from 'node:child_process'
import { spawn } from 'node:child_process'
<% if (options.swap && !flySetup()) { -%>
import { writeFileSync } from 'node:fs'
<% } -%>
Expand All @@ -11,7 +11,7 @@ import path = from 'node:path'
import fs from 'node:fs'
<% } -%>
<% } else { -%>
const { spawn<% if (prismaFile && prismaSeed && sqlite3) { -%>, exec<% } %> } = require('node:child_process')
const { spawn } = require('node:child_process')
<% if (options.swap && !flySetup()) { -%>
const { writeFileSync } = require('node:fs')
<% } -%>
Expand Down

0 comments on commit a28c9af

Please sign in to comment.