Remove devDependencies from the RTS build. In process of building RTS, we used to copy node_modules to /dist (Build folder) But this is not ideal process which increases the build size by adding unwanted packages. Now as part of the solution, we are only moving only prodDependencies to /dist. This also resolves user request to exclude vulnerable package - `formidable`. Fixes #22182
45 lines
1.4 KiB
JSON
45 lines
1.4 KiB
JSON
{
|
|
"name": "appsmith-rts",
|
|
"version": "0.0.1",
|
|
"description": "Realtime component microservice for Appsmith",
|
|
"main": "index.js",
|
|
"author": "Appsmith Team",
|
|
"license": "Apache-2.0",
|
|
"private": true,
|
|
"engines": {
|
|
"node": "^16.14.0",
|
|
"npm": "^8.5.5"
|
|
},
|
|
"devDependencies": {
|
|
"@types/express": "^4.17.14",
|
|
"@types/jest": "^29.2.3",
|
|
"jest": "^29.3.1",
|
|
"supertest": "^6.3.3",
|
|
"ts-jest": "^29.0.3",
|
|
"tsc-alias": "^1.8.2",
|
|
"typescript": "^4.5.5"
|
|
},
|
|
"scripts": {
|
|
"test:unit": "export APPSMITH_API_BASE_URL=http && $(npm bin)/jest -b --colors --no-cache --silent --coverage --collectCoverage=true --coverageDirectory='./' --coverageReporters='json-summary'",
|
|
"test:jest": "export APPSMITH_API_BASE_URL=http && $(npm bin)/jest --watch ",
|
|
"preinstall": "CURRENT_SCOPE=rts node ../shared/build-shared-dep.js",
|
|
"build": "./build.sh",
|
|
"postinstall": "CURRENT_SCOPE=rts node ../shared/install-dependencies.js",
|
|
"start": "./start-server.sh"
|
|
},
|
|
"dependencies": {
|
|
"@babel/runtime": "^7.21.0",
|
|
"axios": "^1.2.0",
|
|
"astravel": "^0.6.1",
|
|
"escodegen": "^2.0.0",
|
|
"express": "^4.18.2",
|
|
"express-validator": "^6.14.2",
|
|
"http-status-codes": "^2.2.0",
|
|
"klona": "^2.0.5",
|
|
"loglevel": "^1.8.1",
|
|
"socket.io": "^4.5.4",
|
|
"socket.io-adapter": "^2.4.0",
|
|
"source-map-support": "^0.5.19"
|
|
}
|
|
}
|