Skip to content

Commit

Permalink
Move init out of lib
Browse files Browse the repository at this point in the history
  • Loading branch information
akelsch committed Jul 15, 2020
1 parent cd2b38a commit a00f910
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions lib/database-init.js → init.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import db from './database'
import * as rki from './utils/rki'
import { CountyCase, CountyGeometry, StateCase, StateGeometry } from './models'
import { updateNormalizedValues, convertGermanDate } from './scheduler'
import db from './lib/database'
import * as rki from './lib/utils/rki'
import { CountyCase, CountyGeometry, StateCase, StateGeometry } from './lib/models'
import { updateNormalizedValues, convertGermanDate } from './lib/scheduler'

db.drop()
.then(() => {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"main": "./lib/app.js",
"scripts": {
"start": "node --experimental-specifier-resolution=node lib/app.js",
"init": "node --experimental-specifier-resolution=node lib/database-init.js",
"init": "node --experimental-specifier-resolution=node init.js",
"watch": "nodemon --experimental-specifier-resolution=node lib/app.js",
"test": "echo \"Error: no test specified\" && exit 1"
},
Expand Down

0 comments on commit a00f910

Please sign in to comment.