In order to achieve standardization with our other libraries, we should:
- Remove
browserify as a dependency
- Add
tsup as a dependency (copy version from module template)
- Remove
build.sh
- Add the
build:types package script (copy from module template)
- Update the
build package script to use tsup to compile the TypeScript code to JavaScript and tsc to create TypeScript declaration files.
- Rename the
typings field in package.json to types
- Add
exports field to package.json (copy from module template)
- Add
module field to package.json (copy from module template)
- Add
sideEffects field to package.json (copy from module template)
- Remove trailing slash from
dist/ in files field
In order to achieve standardization with our other libraries, we should:
browserifyas a dependencytsupas a dependency (copy version from module template)build.shbuild:typespackage script (copy from module template)buildpackage script to usetsupto compile the TypeScript code to JavaScript andtscto create TypeScript declaration files.typingsfield inpackage.jsontotypesexportsfield topackage.json(copy from module template)modulefield topackage.json(copy from module template)sideEffectsfield topackage.json(copy from module template)dist/infilesfield