Skip to content

Commit a6782a6

Browse files
authored
Merge pull request #10 from smooth-code/various-fixes
Various fixes
2 parents 3d56d6e + 8a62f54 commit a6782a6

File tree

5 files changed

+2529
-1982
lines changed

5 files changed

+2529
-1982
lines changed

.travis.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ notifications:
33
email: false
44
services:
55
- postgresql
6-
addons:
7-
postgresql: '9.6'
86
node_js:
97
- 10
108
- 12

package.json

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -17,33 +17,33 @@
1717
"knex-scripts": "bin/knex-scripts"
1818
},
1919
"dependencies": {
20-
"chalk": "^2.4.2",
21-
"commander": "^3.0.0",
22-
"interpret": "^1.2.0",
20+
"chalk": "^3.0.0",
21+
"commander": "^5.0.0",
22+
"interpret": "^2.0.0",
2323
"liftoff": "^3.1.0",
24-
"minimist": "^1.2.0",
25-
"mkdirp": "^0.5.1",
24+
"minimist": "^1.2.5",
25+
"mkdirp": "^1.0.3",
2626
"mz": "^2.7.0",
2727
"tildify": "^2.0.0",
2828
"tiny-glob": "^0.2.6",
2929
"v8flags": "^3.1.3"
3030
},
3131
"devDependencies": {
32-
"@babel/cli": "^7.5.5",
33-
"@babel/core": "^7.5.5",
34-
"@babel/plugin-proposal-class-properties": "^7.5.5",
35-
"@babel/preset-env": "^7.5.5",
36-
"babel-eslint": "^10.0.3",
37-
"babel-jest": "^24.9.0",
32+
"@babel/cli": "^7.8.4",
33+
"@babel/core": "^7.9.0",
34+
"@babel/plugin-proposal-class-properties": "^7.8.3",
35+
"@babel/preset-env": "^7.9.0",
36+
"babel-eslint": "^10.1.0",
37+
"babel-jest": "^25.2.3",
3838
"conventional-github-releaser": "^3.1.3",
39-
"eslint": "^6.2.2",
40-
"eslint-config-airbnb-base": "^14.0.0",
41-
"eslint-config-prettier": "^6.1.0",
42-
"eslint-plugin-import": "^2.18.2",
43-
"jest": "^24.9.0",
44-
"knex": "^0.19.2",
45-
"pg": "^7.12.1",
46-
"prettier": "^1.18.2",
47-
"standard-version": "^7.0.0"
39+
"eslint": "^6.8.0",
40+
"eslint-config-airbnb-base": "^14.1.0",
41+
"eslint-config-prettier": "^6.10.1",
42+
"eslint-plugin-import": "^2.20.2",
43+
"jest": "^25.2.3",
44+
"knex": "^0.20.13",
45+
"pg": "^7.18.2",
46+
"prettier": "^2.0.2",
47+
"standard-version": "^7.1.0"
4848
}
4949
}

src/load.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,10 @@ async function load(options) {
1212
preventEnv('production', options.env)
1313

1414
const env = getCommandEnv(options)
15-
const command = `${getCommand(options, 'psql')} < ${structurePath}`
15+
const command = `${getCommand(
16+
options,
17+
'psql',
18+
)} -v ON_ERROR_STOP=1 -f ${structurePath}`
1619

1720
return exec(wrapDockerCommand(options, command), { env })
1821
}

src/utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export async function getInsertsFromMigrations(migrationsPath) {
55
if (!(await exists(migrationsPath))) return []
66
const migrations = await glob('*.js', { cwd: migrationsPath })
77
return migrations.map(
8-
migration =>
8+
(migration) =>
99
`INSERT INTO public.knex_migrations(name, batch, migration_time) VALUES ('${migration}', 1, NOW());`,
1010
)
1111
}

0 commit comments

Comments
 (0)