Pipexlul
SIASapphire - Imagine a framework
•Created by Pipexlul on 3/7/2024 in #sapphire-support
Optimal way of developing with typescript
Hello!
I've been using sapphire for some days now, and one thing that I'm trying to achieve is to not change anything in the source code of my bot when being done with my developing and deploying to production, or going back to developing after deploying.
I may be completely wrong, but in the documentation, it says that sapphire needs the "main" property of the package.json to point to the main file of my bot. But the issue I'm personally having is that when developing in typescript, I point the "main" property to something like "src/index.ts", but before deploying to production, I manually change that to "dist/index.js".
Is there a way to avoid manually changing the "main" property when developing->deploying?
11 replies