apache / arrow

Apache Arrow is a multi-language toolbox for accelerated data interchange and in-memory processing
https://arrow.apache.org/
Apache License 2.0
14.14k stars 3.45k forks source link

[JS] 'apache-arrow' adds a bunch of dev dependencies #42147

Open universalmind303 opened 2 months ago

universalmind303 commented 2 months ago

Describe the bug, including details regarding any error messages, version, and platform.

if you look at the 'apache-arrow' dependencies, there are a lot of dev dependencies listed as dependencies

  "dependencies": {
    "@swc/helpers": "^0.5.11",
    "@types/command-line-args": "^5.2.3",
    "@types/command-line-usage": "^5.0.4",
    "@types/node": "^20.13.0",
    "command-line-args": "^5.2.1",
    "command-line-usage": "^7.0.1",
    "flatbuffers": "^24.3.25",
    "json-bignum": "^0.0.3",
    "tslib": "^2.6.2"
  },

It appears that the only runtime dependency is flatbuffers. The rest should be removed or moved to devDependencies.

Component(s)

JavaScript

AkashNegi1 commented 1 month ago

i've moved these dependencies to dev dependencies photo_2024-07-11_01-55-56

trxcllnt commented 1 month ago

I will look into whether it's possible to bundle these dependencies into arrow2csv.js. Alternatively, we could explicitly parse process.argv ourselves.