Skip to content

Commit

Permalink
Fix: scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
kmc7468 committed Nov 26, 2024
1 parent 8bf1599 commit 5172ea5
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 6 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@
"preinstall": "npx only-allow pnpm",
"start": "nodemon",
"mocha": "cross-env TZ='Asia/Seoul' NODE_ENV=test mocha --require ts-node/register --require tsconfig-paths/register --recursive --reporter spec --exit",
"test": "npm run sample && cross-env TZ='Asia/Seoul' npm run mocha",
"build": "tsc && tsc-alias",
"test": "pnpm run sample && cross-env TZ='Asia/Seoul' pnpm run mocha",
"build": "tsc --project tsconfig.build.json && tsc-alias",
"clean": "rimraf dist/",
"serve": "cross-env TZ='Asia/Seoul' NODE_ENV=production node dist/index.js",
"lint": "pnpm eslint .",
"runscript": "cross-env TZ='Asia/Seoul' NODE_ENV=production node",
"runscript": "cross-env TZ='Asia/Seoul' NODE_ENV=production ts-node --require tsconfig-paths/register",
"sample": "cross-env NODE_ENV=test ts-node --require tsconfig-paths/register src/sampleGenerator/index.js",
"dumpDB": "cross-env NODE_ENV=test ts-node --require tsconfig-paths/register src/sampleGenerator/tools/dump.js",
"restoreDB": "cross-env NODE_ENV=test ts-node --require tsconfig-paths/register src/sampleGenerator/tools/restore.js"
Expand Down
2 changes: 1 addition & 1 deletion scripts/chatPaymentSettlementUpdater.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// https://github.com/sparcs-kaist/taxi-back/issues/449

const { MongoClient } = require("mongodb");
const { mongo: mongoUrl } = require("../loadenv");
const { mongo: mongoUrl } = require("@/loadenv");

const client = new MongoClient(mongoUrl);
const db = client.db("taxi");
Expand Down
2 changes: 1 addition & 1 deletion scripts/profileImageUrlUpdater.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// https://github.com/sparcs-kaist/taxi-back/issues/173

const { MongoClient } = require("mongodb");
const { mongo: mongoUrl, aws: awsEnv } = require("../loadenv"); // FIXME: 올바른 경로로 수정해야 합니다.
const { mongo: mongoUrl, aws: awsEnv } = require("@/loadenv");

const time = Date.now();

Expand Down
4 changes: 4 additions & 0 deletions tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"extends": "./tsconfig.json",
"include": ["src"],
}
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"@/*": ["./*"]
}
},
"include": ["src"],
"include": ["src", "scripts"],
"exclude": ["dist", "node_modules"],
"ts-node": {
"files": true
Expand Down

0 comments on commit 5172ea5

Please sign in to comment.