Skip to content

Commit 41dc8c2

Browse files
committed
updated npm scripts
1 parent 7add2b1 commit 41dc8c2

3 files changed

Lines changed: 19 additions & 214 deletions

File tree

package-lock.json

Lines changed: 0 additions & 206 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,27 @@
11
{
22
"name": "signalling_server",
33
"version": "1.0.0",
4-
"description": "",
5-
"main": "index.ts",
4+
"description": "WebRTC signalling server using Express, Socket.IO, and TypeScript",
5+
"main": "dist/index.js",
66
"type": "module",
77
"scripts": {
88
"dev": "nodemon --watch index.ts",
9-
"start": "node index.ts"
9+
"build": "tsc -p tsconfig.json",
10+
"start": "node dist/index.js"
1011
},
11-
"keywords": [],
12-
"author": "",
12+
"keywords": [
13+
"webrtc",
14+
"signalling server",
15+
"socket.io",
16+
"typescript",
17+
"express",
18+
"real-time",
19+
"peer-to-peer"
20+
],
21+
"author": "Ahmed Mujtaba",
1322
"license": "ISC",
1423
"dependencies": {
1524
"express": "^5.1.0",
16-
"mongoose": "^8.18.1",
1725
"socket.io": "^4.8.1"
1826
},
1927
"devDependencies": {
@@ -22,5 +30,8 @@
2230
"nodemon": "^3.1.10",
2331
"ts-node": "^10.9.2",
2432
"typescript": "^5.9.3"
33+
},
34+
"engines": {
35+
"node": ">=18.0.0"
2536
}
2637
}

tsconfig.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
// Visit https://aka.ms/tsconfig to read more about this file
33
"compilerOptions": {
44
// File Layout
5-
// "rootDir": "./src",
6-
// "outDir": "./dist",
5+
"rootDir": "./",
6+
"outDir": "./dist",
77

88
// Environment Settings
99
// See also https://aka.ms/tsconfig/module

0 commit comments

Comments
 (0)