Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
I mainly followed the recommendations from https://github.com/frehner/modern-guide-to-packaging-js-library with one exception: We don't use `browser` anymore, but consider the browser-versions the default. Node 12+ will automatically resolve to the node-version as it supports the new `exports` syntax. `arethetypeswrong` and `publint` are also happy: ``` $ npx @arethetypeswrong/cli --pack . tus-js-client v4.1.0 Build tools: - typescript@^5.4.5 No problems found 🌟 ┌───────────────────┬─────────────────┬──────────────────────────────┐ │ │ "tus-js-client" │ "tus-js-client/package.json" │ ├───────────────────┼─────────────────┼──────────────────────────────┤ │ node10 │ 🟢 │ 🟢 (JSON) │ ├───────────────────┼─────────────────┼──────────────────────────────┤ │ node16 (from CJS) │ 🟢 (CJS) │ 🟢 (JSON) │ ├───────────────────┼─────────────────┼──────────────────────────────┤ │ node16 (from ESM) │ 🟢 (ESM) │ 🟢 (JSON) │ ├───────────────────┼─────────────────┼──────────────────────────────┤ │ bundler │ 🟢 │ 🟢 (JSON) │ └───────────────────┴─────────────────┴──────────────────────────────┘ $ npx publint tus-js-client lint results: All good! ```
- Loading branch information