[JS] Remove unnecessary production dependencies
@domoritz is already working on this.
Since Apr 18, 2024.
Assessment
This issue has not been assessed yet.
Description
Describe the enhancement requested
The Apache Arrow JS bundle includes a few unnecessary packages that increase the dependency graph. The culprits are:
- command-line-usage: used by integration.ts, json-to-arrow.ts, and arrowtocsv.ts. I think these can move to dev dependencies since it looks like the intent of the scripts is integration testing and benchmarking.
- @swc/helpers: Introduced in https://github.com/apache/arrow/pull/38500.
@swc/helpersis never imported. I think it's used for https://github.com/apache/arrow/blob/9b931af14e5a710cba0aaa6b899e2ca696bfd785/js/tsconfig.json#L22. If ts-node is only for development, this can move to devDependencies. - @types/node: Should move to devDependencies. I don't think there's any benefit to having it listed as a production dependency.
- @types/command-line-args: move to devDependencies
- @types/command-line-usage: move to devDepdencies
- json-bignum: used by integration.ts, json-to-arrow.ts, and arrowtocsv.ts. Can move to dev dependencies.
Here's the graph of the current dependencies.
Component(s)
JavaScript
- Dominant language
- TypeScript
- Stars
- 112
- Forks
- 23
- Avg merge
- 17h 55m
- Merged PRs (30d)
- 10
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from apache/arrow-js
-
Difficulty 3/5 1-2 days Newbie friendliness 68/100
-
Difficulty 3/5 1-2 days Newbie friendliness 55/100
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
-
Difficulty 5/5 Over a week Newbie friendliness 35/100
-
Difficulty 3/5 1-2 days Newbie friendliness 50/100
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
mksglu/context-mode#1200 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
jaegertracing/jaeger-ui#4506 ·
-
area:desktop area:ui bug platform:macos
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
anthropics/claude-code#96687 ·
-
good first issue
Difficulty 1/5 Under an hour Newbie friendliness 95/100
AOSSIE-Org/DebateAI#582 · 2 comments ·