init repo from library-template

This commit is contained in:
2025-09-11 09:45:24 +02:00
commit 30970d257d
11 changed files with 123 additions and 0 deletions
+8
View File
@@ -0,0 +1,8 @@
# Library template
Basic template to create a TypeScript library that works properly when included
## How to split in multiple file
Technically, there is nothing to do, but if you want to allow sub-imports, you have to :
1. In `package.json`, under `exports`, add `"./submodule": "./src/submodule.ts"`
2. In `tsconfig.json`, under `paths`, add `"lib-name/*": ["./src/*"]`