StackExchange / StackExchange/Stacks

Improve JS packaging

Open
#790 1 comment 0 reactions 0 assignees View on GitHub

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 exports field in package.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 import papertrail. Unminified is way easier to debug.
  • Dependencies declared in package.json
  • Correct types field in package.json
  • Correct d.ts file

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.