Skip to content

Commit

Permalink
match seed command to package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
rubys committed Jan 19, 2025
1 parent 9a4f7ac commit e6b1416
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
Binary file modified bun.lockb
Binary file not shown.
2 changes: 1 addition & 1 deletion fly.js
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ GDF.extend(class extends GDF {
this.flyToml += `\n[deploy]\n release_command = ${JSON.stringify(command)}\n`

if (this.prismaSeed) {
this.flyToml += ' seed_command = "npx prisma db seed"\n'
this.flyToml += ` seed_command = ${JSON.stringify(this.prismaSeed)}\n`
}

fs.writeFileSync(this.flyTomlFile, this.flyToml)
Expand Down
12 changes: 6 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@flydotio/dockerfile",
"version": "0.7.0",
"version": "0.7.1",
"description": "Dockerfile generator",
"main": "./index.js",
"bin": {
Expand All @@ -10,7 +10,7 @@
"scripts": {
"eslint": "eslint .",
"eslint:fix": "eslint --fix .",
"test": "mocha --spec test/test.js",
"test": "mocha --spec test/test.js --timeout 5000",
"test:capture": "TEST_CAPTURE=1 mocha"
},
"author": "Sam Ruby",
Expand All @@ -20,7 +20,7 @@
},
"dependencies": {
"@flydotio/litestream": "^1.0.1",
"@sveltejs/adapter-node": "^5.2.11",
"@sveltejs/adapter-node": "^5.2.12",
"chalk": "^5.3.0",
"diff": "^5.2.0",
"ejs": "^3.1.10",
Expand Down
2 changes: 1 addition & 1 deletion test/frameworks/remix-blues/fly.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ swap_size_mb = 512

[deploy]
release_command = "npx prisma migrate deploy"
seed_command = "npx prisma db seed"
seed_command = "ts-node --require tsconfig-paths/register prisma/seed.ts"

0 comments on commit e6b1416

Please sign in to comment.