Replies: 3 comments
-
Finished updating the the working branch. Improves code structure for imports/exports across workspaces. Necessary for production staging of methane portal to heroku. Will be helpful for future production deployment |
Beta Was this translation helpful? Give feedback.
-
@brioux This sounds good, but I cannot understand in which cases "references" should be used And how it is helpful for production deployment ? |
Beta Was this translation helpful? Give feedback.
-
I used references to help track the workspace structure while debugging issues with the production build (see below) TBH i'm haven't fully grasped the full benefit of references. And, as you point out, I did not implement it for the client... I faced the following issue when deploying production build of the methane app to heroku. issues included missing or bad tsconfig.json ... Importing from subdirs was not working in production builds. Probably a missing a package config option ... ? These were the real fixes, references was a byproduct of debugging... |
Beta Was this translation helpful? Give feedback.
-
@sichen1234
I propose we add references with the composite tsconfig.json setting to help structure the sub-typescript programs across the project... https://www.typescriptlang.org/docs/handbook/project-references.html
How to split up a large TypeScript project
I have setup a working branch here
This should help with production deployments improve code structure fro imports/exports across workspaces.
Will require significant refactoring throughout so wanted opinions from other contributors...
Beta Was this translation helpful? Give feedback.
All reactions