chore: update package.json scripts and add new dependencies

- Replaced the test script to run test-providers.js.
- Updated the build script to run build-simple.js.
- Added new scripts for development: dev, dev:build, watch, watch:dev, dev:auto, and auto.
- Updated start script to build and then run the dev server.
- Added new devDependencies: concurrently, cors, express, and nodemon.
This commit is contained in:
himanshu8443
2025-06-21 16:15:30 +05:30
parent 5a795fa2dc
commit 30c5d316ee
3 changed files with 1537 additions and 2 deletions

16
nodemon.json Normal file
View File

@@ -0,0 +1,16 @@
{
"watch": ["providers"],
"ext": "ts",
"ignore": ["node_modules", "dist", "*.test.ts"],
"exec": "node build-simple.js",
"env": {
"NODE_ENV": "development"
},
"delay": "1000",
"verbose": true,
"colours": true,
"events": {
"restart": "echo '\n🔄 File changes detected, rebuilding providers...\n'",
"crash": "echo '\n❌ Build crashed, waiting for file changes...\n'"
}
}

1508
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -7,12 +7,23 @@
"type": "commonjs",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"build": "rimraf dist && tsc"
"test": "node test-providers.js",
"build": "node build-simple.js",
"dev": "node dev-server.js",
"dev:build": "npm run build && npm run dev",
"watch": "nodemon",
"watch:dev": "nodemon --watch providers --ext ts --exec \"npm run build\" & npm run dev",
"dev:auto": "concurrently \"npm run watch\" \"npm run dev\"",
"auto": "node auto-dev.js",
"start": "npm run build && npm run dev"
},
"devDependencies": {
"@types/cheerio": "^0.22.35",
"@types/node": "^24.0.1",
"concurrently": "^8.2.2",
"cors": "^2.8.5",
"express": "^4.21.2",
"nodemon": "^3.1.10",
"typescript": "^5.8.3"
},
"dependencies": {