Paths/Frontend Engineer/TypeScript Essentials / Project & Tooling
Wire the Scripts
If the checks are not in package.json, nobody runs them. Write the scripts that make typecheck, lint, test and build one command each.
Validator
IDLE — checks run live as you type commands; submit when done
01Requirements
live checks- File ~/frontend/package.json exists○
- The manifest declares the scripts○
- The scripts cover typecheck, lint, test and build○
02Walkthrough
2 steps- 01
Write the manifest
The scripts are the contract with your team - every command they run should be one they can run locally.
echo '{\n "name": "orders-web",\n "private": true,\n "scripts": {\n "dev": "vite",\n "build": "vite build",\n "typecheck": "tsc --noEmit",\n "lint": "eslint src",\n "test": "vitest run"\n }\n}' > ~/frontend/package.json - 02
Verify and submit
cat the manifest, then submit for validation.
cat ~/frontend/package.json
03Stuck?
0 of 3 revealedTake a hint without losing the lab — each one points at the thing to look at, not at the answer.
04AI Tutor
guides, never solvesTell me what you're stuck on — I'll nudge, not solve. Which requirement are you looking at?
04Notebook
saved locally in this browserlearner@lab — ubuntu:24.04
Session is disposable
↑/↓ recalls commands · Ctrl+Enter submits · type help for the command list