Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
chore: Updated the dev setup with build script.
  • Loading branch information
hanoak20 committed Mar 13, 2024
commit 9b4e69107a4a73641b4eb2dd261f02f5ff261dd3
5 changes: 5 additions & 0 deletions nodemon.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"watch": ["src"],
"ext": "ts",
"exec": "concurrently \"npx tsc --watch\" \"ts-node src/server.ts\""
}
9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"start": "npx tsc && NODE_ENV=production node dist/server.js",
"dev": "NODE_ENV=development ts-node-dev --respawn ./src/server.ts",
"build": "npx tsc",
"start": "NODE_ENV=production node dist/server.js",
"dev": "NODE_ENV=development nodemon ./src/server.ts",
"precommit": "lint-staged --concurrent false"
},
"type": "commonjs",
Expand All @@ -21,7 +22,6 @@
},
"homepage": "https://github.com/contentstack-expert-services/migration-v2-node-server#readme",
"dependencies": {
"@types/express": "^4.17.21",
"axios": "^1.6.5",
"cors": "^2.8.5",
"dotenv": "^16.3.1",
Expand All @@ -35,10 +35,12 @@
},
"devDependencies": {
"@types/cors": "^2.8.17",
"@types/express": "^4.17.21",
"@types/jsonwebtoken": "^9.0.5",
"@types/node": "^20.10.4",
"@typescript-eslint/eslint-plugin": "^6.15.0",
"@typescript-eslint/parser": "^6.15.0",
"concurrently": "^8.2.2",
"eslint": "^8.56.0",
"eslint-config-airbnb": "^19.0.0",
"eslint-config-prettier": "^8.3.0",
Expand All @@ -47,7 +49,6 @@
"nodemon": "^3.0.2",
"prettier": "^2.4.1",
"ts-node": "^10.9.2",
"ts-node-dev": "^2.0.0",
"typescript": "^5.3.3",
"validate-branch-name": "^1.3.0"
},
Expand Down