hyparam / hyparquet

parquet file parser for javascript
MIT License
213 stars 4 forks source link

[package] expose as a commonjs module? #35

Open severo opened 4 days ago

severo commented 4 days ago

https://arethetypeswrong.github.io/?p=hyparquet%401.5.0 reports an issue:

ESM (dynamic import only)

A require call resolved to an ESM JavaScript file, which is an error in Node and some bundlers. CommonJS consumers will need to use a dynamic import.

Two options:

severo commented 4 days ago

We could also add https://github.com/marketplace/actions/are-the-types-wrong-checker as a github action, here and in the other repos, to check the package

severo commented 3 days ago

Note also https://github.com/isaacs/tshy, which aims to help package publishers get the package.json right when the code is typescript. It's used now by Hugging Face at https://github.com/huggingface/huggingface.js/pull/1029