init repo
This commit is contained in:
@@ -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/*"]`
|
||||
Reference in New Issue
Block a user