-
Notifications
You must be signed in to change notification settings - Fork 25
Closed
Description
What
tshy takes almost all the configuration out of publishing TypeScript + CJS/ESM Hybrid packages.
I propose the template-oss detect package.json#devDependencies.tshy and if it exists sets a bunch of configuration automatically. This is a non-exhaustive list of what I can think of right now:
- Change
lib/directory tosrc/ - Don't write
package.json#files - Adds
package.json#prepare: tshy - Use
.cjsextension for commitlintrc and eslintrc - Change
contentto allow requiring or dynamic import of suppliedcontext/index.jsfile - Adds
typescript,@typescript-eslint/parser(and maybe other lint deps) as required devDependencies - Creates
tsconfig.json(and merges it with any existing file similar topackage.jsonnow) Fix issue with testing in lower bound of 16 and 18. Either polyfill is builtin OR always change lower bound to16.17.0and18.6.0.
References
- Manual setup in
npm/read: feat: convert to typescript and esm read#77
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels