Tooling suggestions #206
martines3000
started this conversation in
Ideas
Replies: 1 comment 2 replies
-
Hi @martines3000! Thanks for opening discussion. Let me share my thoughts
|
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I hope this is the correct place to open the discussion.
I am using this library and most of the
@iden3
TypeScript libraries in our project, and I greatly appreciate the work you are doing.When I was looking at the repository and code of the
js-sdk
and the@iden3
libraries, I noticed a couple of possible improvements mostly related to the build and tooling side of things. Furthermore, I wanted to avoid creating unnecessary issues, as these are only suggestions, so I opened this discussion first. If you agree with any of them, I am more than happy to help to prepare the initial PRs..nvmrc
file. Workflows can read from it and if you use a node version manager, you can easily switch to the correct version when working on a specific repository."type": "module"
(combined with point 4 and 5).outDir
intsconfig.json
and use"moduleResolution": "Bundler"
instead of"moduleResolution": "Node"
d.ts
andd.cts
declaration files and is fast. Bundling different declaration files ensures better compatibility for CJS and ESM. Tsup also allows for outputting theiife
format, but I don't think you can replace Rollup with it, as Rollup prepares the UMD bundle, which is not supported by Tsup.expect
compatible API, Chai is built in, etc… Replacing the existing testing library is probably not as big of a task as it sounds like because Vitest is almost plug-and-play with Jest.did-jwt
library is already 2 major versions behind the latest release. Perhaps this will help avoid future issues and make the transitions between updates smoother.peerDependencies
in package.json really needed, or would it be enough to just move those packages under thedependencies
field?These are just suggestions, so feel free to ignore them if you are happy with your current tooling.
Beta Was this translation helpful? Give feedback.
All reactions