Reconfigure the project for your needs.
rm package.json yarn.lock tsconfig.json biome.json
# Init project
yarn init
yarn add -D typescript nodemon ts-node @types/node
yarn run tsc --init
# Add biome(formatter, linter)
yarn add -D @biomejs/biome
yarn run biome init
# Add nodemon(dev server)
yarn add -D nodemon
"scripts": {
"build": "tsc",
"lint": "biome lint",
"lint:fix": "biome lint --write",
"format": "biome format",
"format:fix": "biome format --write",
}
Add scripts to package.json
:
"scripts": {
"dev": "nodemon --watch 'src/**/*.ts' --exec 'ts-node' src/index.ts",
}
yarn add express @types/express
yarn dev