Skip to content

Commit 7467685

Browse files
committed
add config files for nodejs
1 parent d2a3f1a commit 7467685

File tree

2 files changed

+38
-0
lines changed

2 files changed

+38
-0
lines changed

package.json

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"name": "@nimisha.gj/mikrotik-wireguard-client-manager",
3+
"version": "1.0.0",
4+
"description": "A Node.js package for managing WireGuard VPN clients on MikroTik routers via SSH",
5+
"main": "dist/index.js",
6+
"scripts": {
7+
"build": "tsc",
8+
"start": "node dist/index.js",
9+
"dev": "nodemon --watch src --exec ts-node src/index.ts"
10+
},
11+
"author": "Nimisha G J",
12+
"license": "ISC",
13+
"devDependencies": {
14+
"@types/node": "^22.7.5",
15+
"nodemon": "^3.1.7",
16+
"ts-node": "^10.9.2",
17+
"typescript": "^5.6.3"
18+
},
19+
"dependencies": {
20+
"ssh2": "^1.16.0"
21+
}
22+
}

tsconfig.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"include": ["src/**/*"],
3+
"exclude": ["node_modules", "dist"],
4+
"compilerOptions": {
5+
"allowJs": false,
6+
"declaration": true,
7+
"emitDeclarationOnly": false,
8+
"outDir": "dist",
9+
"declarationMap": true,
10+
"strict": true,
11+
"esModuleInterop": true,
12+
"moduleResolution": "node",
13+
"target": "es6",
14+
"module": "commonjs"
15+
}
16+
}

0 commit comments

Comments
 (0)