A general template project for node projects using:
Typescriptto developRollupto bundleeslintandprettierto lint code@microsoft/api-extractorand@microsoft/api-documenterto generate api docs
specified input in rollup.config.mjs to change bundling entry, default src/index.ts
specified name in package.json to change commonJS import name of your package
specified types in package.json to change path of output declaration file, default dist/index.d.ts
specified outDir and sourceMap in tsconfig.json to change output path and whether generating sourcemap file, default dist and true
Now you can start writing code in src directory and use npm run build to get bundling from dist