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

why packages in Chance ts-2.0 are exposing js rather than ts files #588

Open
3aluw opened this issue Sep 4, 2023 · 1 comment
Open

why packages in Chance ts-2.0 are exposing js rather than ts files #588

3aluw opened this issue Sep 4, 2023 · 1 comment

Comments

@3aluw
Copy link

3aluw commented Sep 4, 2023

Following the README in ts-2.0 branch. all the internal modules couldn't be found.
for example Prime package need picker package but couldn't find it.
Capture

in the pick/package.json we find that main is a js file(doesn't contain any type declarations)
Capture2

simply by changing main to :"./src/index.ts"
Prime now can import picker package :
Capture3

small note : module field (look at the 1st picture) is not (& won't be) supported in node. look here

@Gunjan1109
Copy link

chance is build only on .js extension. .ts is not present. So i don't think we can change js to ts.

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