A simplest starter template for typescript lib
MIT License
If you’re looking to transpile your TypeScript code into ESM code for your codebase, you can use the starter template to initialize your project.
This will help you get started quickly and easily with your project by providing you with a pre-configured environment that includes all the necessary tools and dependencies for building and running your TypeScript code as ESM modules. Additionally, the starter template provides you with a set of best practices and guidelines for structuring your codebase in a way that’s easy to maintain and scale as your project grows.
Because moduleResolution needs to be nodenext, relative import paths require explicit file extensions in EcmaScript imports
Please use degit to download template
mkdir your-project-name
cd your-project-name
npx degit brandonxiang/ts-lib-starter
# or
npx degit brandonxiang/ts-lib-starter your-project-name
pnpm i
pnpm run dev
# http://localhost:3000/
# live
pnpm run build