TypeScript Node.js project template. Updated for Node.js 18.
As a template, license is internally set to private but feel free to use this template as your new project starter.
Base on project type, the following amendment on the project files can be considered.
For all projects:
- Review lint rules in
.eslintrc.json
and remove unwanted lint rules. - If no test will be implemented, consider adding flag
--no-error-on-unmatched-pattern
toeslint
in npm scriptslint
andfix
to avoid error due to unmatched pattern.
For application projects:
- In
tsconfig-base.json
, the following options can consider to be removed.compilerOptions.declaration
compilerOptions.declarationMap
- In
package.json
, NPM scriptscripts.prepack
can consider to be removed. - File
.npmignore
can consider to be removed.
For library projects intended for publish:
- In
tsconfig-base.json
, the following options can consider to be removed.compilerOptions.declaration
compilerOptions.declarationMap
For library projects within a monorepo:
- In
tsconfig-base.json
, optioncompilerOptions.sourceMap
can consider to be removed.