StackExchange / StackExchange/Stacks
Improve JS packaging
Open
Nobody has claimed this yet.
dependencies
javascript
- Dominant language
- TypeScript
- Stars
- 672
- Forks
- 107
- Avg merge
- 2d 12h
- Merged PRs (30d)
- 26
Description
We need to include some source JS files to aid in importing from NPM.
Tasks:
- Correct
exportsfield inpackage.json - No bundled dependencies in exported js. You can ship multiple/unminified files if you like, I can bundle on my end as long as there's an
importpapertrail. Unminified is way easier to debug. - Dependencies declared in package.json
- Correct
typesfield in package.json - Correct
d.tsfile
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.
Research direction
Start with package.json and the existing d.ts file, then inspect how the JavaScript package is currently produced and exported. Verify the exports and types fields, ensure dependencies are declared and exported JavaScript has no bundled dependencies, and confirm the resulting package supports the requested imports and type declarations.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, typescript
- Domain
- build-system, tooling
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100