13 lines
276 B
TypeScript
13 lines
276 B
TypeScript
|
import db from '../db';
|
||
|
|
||
|
db.connect('dev', () => {
|
||
|
console.info('dropping data...');
|
||
|
db.drop(() => { // reset database
|
||
|
console.info('loading data...');
|
||
|
db.loadJson(require('./db.json'), () => {
|
||
|
console.info('done');
|
||
|
process.exit(0);
|
||
|
});
|
||
|
});
|
||
|
});
|