Skip to content

Commit

Permalink
refactor(knex): support js and ts
Browse files Browse the repository at this point in the history
  • Loading branch information
cerinoligutom committed Nov 15, 2020
1 parent ac2f406 commit f36c508
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions knexfile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ const config: Config = {
useNullAsDefault: true,
migrations: {
directory: './src/db/migrations',
loadExtensions: ['.js', '.ts'],
},
seeds: {
directory: './src/db/seeds',
Expand Down
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@
"nodemon": "nodemon -L",
"lint": "eslint ./src",
"prettier": "prettier --write \"src/**/*.{js,ts,json,css,scss,md}\"",
"migrate:make": "knex --knexfile ./knexfile.ts migrate:make -x ts",
"migrate:latest": "knex --knexfile ./knexfile.ts migrate:latest",
"migrate:rollback": "knex --knexfile ./knexfile.ts migrate:rollback",
"seed:make": "knex --knexfile ./knexfile.ts seed:make -x ts",
"seed": "knex --knexfile ./knexfile.ts seed:run",
"migrate:make": "knex --knexfile ./knexfile.* migrate:make -x ts",
"migrate:latest": "knex --knexfile ./knexfile.* migrate:latest",
"migrate:rollback": "knex --knexfile ./knexfile.* migrate:rollback",
"seed:make": "knex --knexfile ./knexfile.* seed:make -x ts",
"seed": "knex --knexfile ./knexfile.* seed:run",
"test": "echo \"No test specified\" && exit 0",
"tsc-check": "npx tsc --noEmit",
"generate:gql-types": "graphql-codegen --watch",
Expand Down

0 comments on commit f36c508

Please sign in to comment.