├── .gitignore ├── package.json ├── pnpm-lock.yaml ├── src └── index.ts └── tsconfig.json /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | dist -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "esbuild-node", 3 | "version": "1.0.0", 4 | "description": "", 5 | "type": "module", 6 | "main": "dist/index.js", 7 | "scripts": { 8 | "dev": "pnpm run \"/dev:/\"", 9 | "dev:tsc": "tsc --watch --preserveWatchOutput", 10 | "dev:node": "node --enable-source-maps --watch dist/index.js" 11 | }, 12 | "keywords": [], 13 | "author": "Matt Pocock", 14 | "license": "MIT", 15 | "devDependencies": { 16 | "@types/node": "^20.8.6", 17 | "typescript": "^5.2.2" 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /pnpm-lock.yaml: -------------------------------------------------------------------------------- 1 | lockfileVersion: '6.0' 2 | 3 | settings: 4 | autoInstallPeers: true 5 | excludeLinksFromLockfile: false 6 | 7 | devDependencies: 8 | '@types/node': 9 | specifier: ^20.8.6 10 | version: 20.8.6 11 | typescript: 12 | specifier: ^5.2.2 13 | version: 5.2.2 14 | 15 | packages: 16 | 17 | /@types/node@20.8.6: 18 | resolution: {integrity: sha512-eWO4K2Ji70QzKUqRy6oyJWUeB7+g2cRagT3T/nxYibYcT4y2BDL8lqolRXjTHmkZCdJfIPaY73KbJAZmcryxTQ==} 19 | dependencies: 20 | undici-types: 5.25.3 21 | dev: true 22 | 23 | /typescript@5.2.2: 24 | resolution: {integrity: sha512-mI4WrpHsbCIcwT9cF4FZvr80QUeKvsUsUvKDoR+X/7XHQH98xYD8YHZg7ANtz2GtZt/CBq2QJ0thkGJMHfqc1w==} 25 | engines: {node: '>=14.17'} 26 | hasBin: true 27 | dev: true 28 | 29 | /undici-types@5.25.3: 30 | resolution: {integrity: sha512-Ga1jfYwRn7+cP9v8auvEXN1rX3sWqlayd4HP7OKk4mZWylEmu3KzXDUGrQUN6Ol7qo1gPvB2e5gX6udnyEPgdA==} 31 | dev: true 32 | -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- 1 | console.log("Hello Matt!"); 2 | -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | /* Base Options: */ 4 | "esModuleInterop": true, 5 | "skipLibCheck": true, 6 | "target": "es2022", 7 | "allowJs": true, 8 | "resolveJsonModule": true, 9 | "moduleDetection": "force", 10 | "isolatedModules": true, 11 | /* Strictness */ 12 | "strict": true, 13 | "noUncheckedIndexedAccess": true, 14 | /* If transpiling with TypeScript: */ 15 | "moduleResolution": "NodeNext", 16 | "module": "NodeNext", 17 | "outDir": "dist", 18 | "sourceMap": true, 19 | /* If your code doesn't run in the DOM: */ 20 | "lib": [ 21 | "es2022" 22 | ] 23 | } 24 | } --------------------------------------------------------------------------------