Building and Deploying TypeScript Node.js Apps // NodeFlux Docs
Compile TypeScript projects locally or in CI pipelines and run optimized JavaScript bundles on NodeFlux. ## Steps 1. Configure tsconfig.json with target "ES2022", module "NodeNext", and outDir "./dist". 2. Add build scri NodeFlux documentation for free Minecraft, Node.js and application hosting.
Compile TypeScript projects locally or in CI pipelines and run optimized JavaScript bundles on NodeFlux. ## Steps 1. Configure tsconfig.json with target "ES2022", module "NodeNext", and outDir "./dist". 2. Add build scri
Compile TypeScript projects locally or in CI pipelines and run optimized JavaScript bundles on NodeFlux. ## Steps 1. Configure tsconfig.json with target "ES2022", module "NodeNext", and outDir "./dist". 2. Add build script in package.json: "build": "tsc". 3. Run npm run build locally or during deployment pipeline to output compiled JavaScript files into dist/. 4. Ensure package.json includes "scripts": { "start": "node dist/index.js" }. 5. Upload dist/, package.json, and package-lock.json to your NodeFlux application container. 6. Start service and verify clean execution from compiled JavaScript outputs. ## Notes - Deploying pre-compiled JavaScript dist/ files reduces runtime memory overhead and eliminates typescript compiler startup delays. - ts-node can be used for development, but compiled JS is strongly recommended for production runtime.