Skip to content

Commit

Permalink
Merge pull request #4 from smooth-code/upgrade-dependencies
Browse files Browse the repository at this point in the history
feat: upgrade dependencies
  • Loading branch information
gregberge authored Aug 28, 2019
2 parents 3eab87c + 15da8f6 commit 23860cf
Show file tree
Hide file tree
Showing 6 changed files with 3,872 additions and 2,834 deletions.
6 changes: 3 additions & 3 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"presets": [
[
"env",
"@babel/preset-env",
{
"loose": true,
"targets": {
"node": "8.4"
"node": "10"
}
}
]
],
"plugins": ["transform-object-rest-spread", "transform-class-properties"]
"plugins": ["@babel/plugin-proposal-class-properties"]
}
4 changes: 4 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
node_modules/
/lib/
package.json
CHANGELOG.md
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ services:
addons:
postgresql: '9.6'
node_js:
- 8
- 9
- 10
- 12
45 changes: 23 additions & 22 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,39 +9,40 @@
"build": "babel -d lib src",
"lint": "eslint .",
"prebuild": "rm -rf lib",
"format": "prettier --write \"**/*.{js,md,mdx}\"",
"test": "yarn lint && yarn build && jest --ci && bin/knex-scripts create && bin/knex-scripts dump && bin/knex-scripts load && bin/knex-scripts drop && bin/knex-scripts check-structure",
"release": "yarn build && standard-version && conventional-github-releaser -p angular"
},
"bin": {
"knex-scripts": "bin/knex-scripts"
},
"dependencies": {
"chalk": "^2.3.0",
"commander": "^2.14.0",
"interpret": "^1.1.0",
"liftoff": "^2.5.0",
"chalk": "^2.4.2",
"commander": "^3.0.0",
"interpret": "^1.2.0",
"liftoff": "^3.1.0",
"minimist": "^1.2.0",
"mkdirp": "^0.5.1",
"mz": "^2.7.0",
"tildify": "^1.2.0",
"v8flags": "^3.0.1"
"tildify": "^2.0.0",
"v8flags": "^3.1.3"
},
"devDependencies": {
"babel-cli": "^6.26.0",
"babel-eslint": "^8.2.1",
"babel-jest": "^22.4.1",
"babel-plugin-transform-class-properties": "^6.24.1",
"babel-plugin-transform-object-rest-spread": "^6.26.0",
"babel-preset-env": "^1.6.1",
"conventional-github-releaser": "^2.0.0",
"eslint": "^4.17.0",
"eslint-config-airbnb-base": "^12.1.0",
"eslint-config-prettier": "^2.9.0",
"eslint-plugin-import": "^2.8.0",
"jest": "^22.4.2",
"knex": "^0.14.2",
"pg": "^7.4.1",
"prettier": "^1.10.2",
"standard-version": "^4.3.0"
"@babel/cli": "^7.5.5",
"@babel/core": "^7.5.5",
"@babel/plugin-proposal-class-properties": "^7.5.5",
"@babel/preset-env": "^7.5.5",
"babel-eslint": "^10.0.3",
"babel-jest": "^24.9.0",
"conventional-github-releaser": "^3.1.3",
"eslint": "^6.2.2",
"eslint-config-airbnb-base": "^14.0.0",
"eslint-config-prettier": "^6.1.0",
"eslint-plugin-import": "^2.18.2",
"jest": "^24.9.0",
"knex": "^0.19.2",
"pg": "^7.12.1",
"prettier": "^1.18.2",
"standard-version": "^7.0.0"
}
}
4 changes: 2 additions & 2 deletions src/utils.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { readFile, readdir, exists } from 'mz/fs'

export async function getInsertsFromMigrations(migrationsPath) {
if (!await exists(migrationsPath)) return []
if (!(await exists(migrationsPath))) return []
const migrations = await readdir(migrationsPath)
return migrations.map(
migration =>
Expand All @@ -10,7 +10,7 @@ export async function getInsertsFromMigrations(migrationsPath) {
}

export async function getInsertsFromStructure(structurePath) {
if (!await exists(structurePath)) return []
if (!(await exists(structurePath))) return []
const structure = await readFile(structurePath, 'utf-8')
const regExp = /INSERT INTO knex_migrations\(name, batch, migration_time\) VALUES \('.*', 1, NOW\(\)\);/g

Expand Down
Loading

0 comments on commit 23860cf

Please sign in to comment.