Closed nzakas closed 1 month ago
Updated the package.json
files per @fasttime's feedback.
@kecrily I'm leaving types.ts
where it is. It doesn't do any harm to leave it there, and given that it caused an error when it was removed from the JSR package, it likely would cause other issues. It's a small file that doesn't really affect the overall size of the package.
@fasttime @mdjermanovic ready for re-review.
I'm not worried about its current state, just that it might balloon in the future and the core still needs to be rewritten. Not sure how big core's types.ts
is but it must be a lot bigger than that.
When I tried publishing to JSR, I got several errors. Specifically:
types.ts
file to be present because it is referenced fromindex.js
. Because this is a TypeScript error, I also addedtypes.ts
to the npm package..d.ts
files and so couldn't find the type definitions for the packages, it needs a triple-slash directive. The triple-slash directive must be added aftertsc
is run, otherwise it looks for that file to verify the contents. So I had to add a new tool calledprepend-type-ref.js
that runs aftertsc
in each package.I verified locally via
npx jsr publish --dry-run
that the JSR publish will succeed with these changes.