Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Dec 4, 2025

Modernize the Node.js TypeScript template with current LTS runtime and standardized project organization.

Node.js Upgrade

  • .nvmrc: 16.14.2 → 22
  • Dockerfile: node:22-alpine with pnpm 9
  • @types/node: ^22.0.0

Folder Structure

Added organized directories under src/:

  • config/ - Environment configuration
  • constants/ - Static values, HTTP status codes
  • middleware/ - Request processing middleware
  • services/ - Business logic layer
  • types/ - TypeScript interfaces and types

Code Quality

  • Fixed ESLint error: replaced require('http') with ES6 import
  • Updated tsconfig.json target to ES2022

Documentation

Rewrote README.md with folder structure diagram, script reference, and path alias examples:

import { config } from '@/config';
import { HTTP_STATUS } from '@/constants';
import { getCurrentTimestamp } from '@/utils';
Original prompt

improve node template for typescript with folder strcture and upgrade stable lts node version


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI and others added 3 commits December 4, 2025 04:23
Co-authored-by: npv2k1 <73846954+npv2k1@users.noreply.github.com>
Co-authored-by: npv2k1 <73846954+npv2k1@users.noreply.github.com>
Co-authored-by: npv2k1 <73846954+npv2k1@users.noreply.github.com>
Copilot AI changed the title [WIP] Improve Node template for TypeScript with folder structure Upgrade Node.js to LTS 22 and improve project folder structure Dec 4, 2025
Copilot AI requested a review from npv2k1 December 4, 2025 04:30
@npv2k1 npv2k1 marked this pull request as ready for review December 6, 2025 03:57
@npv2k1 npv2k1 merged commit 69f1121 into master Dec 6, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants