Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Library build commands don't create ossos.cjs.js, must manually rename. #19

Open
ArsenicBismuth opened this issue Aug 20, 2023 · 1 comment

Comments

@ArsenicBismuth
Copy link

The build commands I use are:

npm run build
npm run build:types

But this creates the following files inside ./dist

image

So I have to either rename the ossos.js manually into ossos.cjs.js or replace every mention of ossos.cjs.js into ossos.js inside package.json. After this step, I can successfully include them in my node project.

Below is the patch. Let me know if I do anything wrong, thank you.
801a3c.patch

@trusktr
Copy link

trusktr commented Apr 25, 2024

I can help here, I have lots of experience with packaging.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants