Compare commits
No commits in common. "f7d7f5e75f9693f68ed0cf387eb402c185bc1e1c" and "e5562efe3545012cfcddff7707891fff3f05ff1d" have entirely different histories.
f7d7f5e75f
...
e5562efe35
11
package.json
11
package.json
@ -50,13 +50,22 @@
|
|||||||
"@types/node": "^14.14.9",
|
"@types/node": "^14.14.9",
|
||||||
"@types/swagger-ui-express": "^4.1.2",
|
"@types/swagger-ui-express": "^4.1.2",
|
||||||
"dotenv-safe": "^8.2.0",
|
"dotenv-safe": "^8.2.0",
|
||||||
|
"husky": "^4.3.0",
|
||||||
"nodemon": "^2.0.6",
|
"nodemon": "^2.0.6",
|
||||||
|
"prettier": "^2.2.0",
|
||||||
|
"pretty-quick": "^3.1.0",
|
||||||
"sqlite3": "^5.0.0",
|
"sqlite3": "^5.0.0",
|
||||||
"ts-node": "^9.0.0",
|
"ts-node": "^9.0.0",
|
||||||
"typescript": "^4.1.2"
|
"typescript": "^4.1.2"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "nodemon src/app.ts",
|
"dev": "nodemon src/app.ts",
|
||||||
"build": "tsc"
|
"build": "tsc",
|
||||||
|
"format": "pretty-quick"
|
||||||
|
},
|
||||||
|
"husky": {
|
||||||
|
"hooks": {
|
||||||
|
"pre-commit": "pretty-quick --staged"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -1,6 +1,6 @@
|
|||||||
import { createConnection } from "typeorm";
|
import {createConnection} from "typeorm";
|
||||||
|
|
||||||
export default async () => {
|
export default async ()=> {
|
||||||
const connection = await createConnection();
|
const connection = await createConnection();
|
||||||
connection.synchronize();
|
connection.synchronize();
|
||||||
return connection;
|
return connection;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { Application } from "express";
|
import {Application} from "express";
|
||||||
import bodyParser from 'body-parser';
|
import bodyParser from 'body-parser';
|
||||||
import cors from 'cors';
|
import cors from 'cors';
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user