Skip to content

Commit 4438b51

Browse files
committed
fix: use ts-node and use es6 for config
1 parent 83f6654 commit 4438b51

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@ if (process.env.NODE_ENV === 'test') {
1111
admins.push(TEST_USER.userEmail)
1212
}
1313

14-
module.exports = {
14+
export default {
1515
admins
16-
};
16+
};

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"description": "A microservice backend for tracking proposed meetup topics and civic projects and voting on them",
55
"main": "server.js",
66
"scripts": {
7-
"start": "node_modules/.bin/nodemon server.ts",
7+
"start": "npx ts-node server.ts",
88
"test": "dotenvx run -f .env.test -- vitest watch",
99
"test:run": "vitest run",
1010
"db:seed": "npx ts-node ./database/seed.ts"

0 commit comments

Comments
 (0)