conventions.io

Tech Challenge

2026-08-27

🔷

Daily Tech Challenge

TypeScript

medium
Question 1 of 5

Given the tsconfig below, `src/lib/db.ts` exports `connect`. What happens when you run `tsc` and then `node dist/app.js`?

Example
// tsconfig.json
{
  "compilerOptions": {
    "target": "ES2022",
    "module": "CommonJS",
    "baseUrl": ".",
    "paths": { "@lib/*": ["src/lib/*"] },
    "rootDir": "src",
    "outDir": "dist",
    "strict": true
  }
}

// src/app.ts
import { connect } from "@lib/db";
connect();

Thursday, August 27, 2026 · A new challenge drops every day