PromucFlow_constructor/app/rts/package.json
Ayangade Adeoluwa 9566e54a19
fix: fix package.json file for ast build (#22119)
This issue fixes RTS build failure due to `(node:3527) [DEP0128]
DeprecationWarning: Invalid 'main' field in @shared/ast`. More
information can be found
[here](https://nodejs.org/api/deprecations.html#dep0128-modules-with-an-invalid-main-entry-and-an-indexjs-file).

The bug here was that, when the ast package was built, we were not
updating the package.json of the build to point to index.js directly,
instead it was pointing to `build/index.js`. This was not a problem in
nodejs 14, However new versions of nodejs requires we drop the "build/"
and simply make it `index.js`.

Before:
<img width="694" alt="Screenshot 2023-04-05 at 08 14 15"
src="https://user-images.githubusercontent.com/37867493/230008234-8fc9537a-e94f-4477-a4a5-8a7e857d481b.png">

After: 
<img width="694" alt="Screenshot 2023-04-05 at 08 14 29"
src="https://user-images.githubusercontent.com/37867493/230008259-be3bcee0-e68c-4240-b330-8fe49fda95d5.png">


Fixes #22118

- Bug fix (non-breaking change which fixes an issue)

- Manual

### Test Plan
> Add Testsmith test cases links that relate to this PR

### Issues raised during DP testing
> Link issues raised during DP testing for better visiblity and tracking
(copy link from comments dropped on this PR)


## Checklist:
### Dev activity
- [ ] My code follows the style guidelines of this project
- [ ] I have performed a self-review of my own code
- [ ] I have commented my code, particularly in hard-to-understand areas
- [ ] I have made corresponding changes to the documentation
- [ ] My changes generate no new warnings
- [ ] I have added tests that prove my fix is effective or that my
feature works
- [ ] New and existing unit tests pass locally with my changes
- [ ] PR is being merged under a feature flag


### QA activity:
- [ ] Test plan has been approved by relevant developers
- [ ] Test plan has been peer reviewed by QA
- [ ] Cypress test cases have been added and approved by either SDET or
manual QA
- [ ] Organized project review call with relevant stakeholders after
Round 1/2 of QA
- [ ] Added Test Plan Approved label after reveiwing all Cypress test
2023-04-05 14:14:36 +05:30

42 lines
1.3 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",
"axios": "^1.2.0",
"jest": "^29.3.1",
"source-map-support": "^0.5.19",
"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": {
"escodegen": "^2.0.0",
"express": "^4.18.2",
"express-validator": "^6.14.2",
"http-status-codes": "^2.2.0",
"loglevel": "^1.8.1",
"socket.io": "^4.5.4",
"socket.io-adapter": "^2.4.0"
}
}